diff options
| author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2012-11-09 01:09:59 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-11-09 19:36:20 -0500 |
| commit | 0974658da47cb399b76794057823bf3cd22acf37 (patch) | |
| tree | 9db7dbe10459d9c7de24d3afd7ba6a82fe9fef33 /include/uapi/linux | |
| parent | 465b1678ebdf5dbd9bc0502358ae472343351c2c (diff) | |
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.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/if_tunnel.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tunnel.h b/include/uapi/linux/if_tunnel.h index 5db5942575fe..ccb21d585bf4 100644 --- a/include/uapi/linux/if_tunnel.h +++ b/include/uapi/linux/if_tunnel.h | |||
| @@ -37,6 +37,17 @@ struct ip_tunnel_parm { | |||
| 37 | struct iphdr iph; | 37 | struct iphdr iph; |
| 38 | }; | 38 | }; |
| 39 | 39 | ||
| 40 | enum { | ||
| 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 0x0001 | 52 | #define SIT_ISATAP 0x0001 |
| 42 | 53 | ||
