History

ipip: advertise tunnel param via rtnl

It is usefull for daemons that monitor link event to have the full parameters of these interfaces when a rtnl message is sent. It allows also to dump them via rtnetlink. It is based on what is done for GRE tunnels.

Nicolas Dichtel committed 14 years ago

Commit 09746581 parent 465b1672 files · +67 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_tunnel.h+11−0
@@ -37,6 +37,17 @@ struct ip_tunnel_parm { · 36 unmodified lines
37 struct iphdr iph;37 struct iphdr iph;
38};38};
39 39
40enum {
41 IFLA_IPTUN_UNSPEC,
42 IFLA_IPTUN_LINK,
43 IFLA_IPTUN_LOCAL,
44 IFLA_IPTUN_REMOTE,
45 IFLA_IPTUN_TTL,
46 IFLA_IPTUN_TOS,
47 __IFLA_IPTUN_MAX,
48};
49#define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1)
50
40/* SIT-mode i_flags */51/* SIT-mode i_flags */
41#define SIT_ISATAP 0x000152#define SIT_ISATAP 0x0001
42 53