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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -37,6 +37,17 @@ struct ip_tunnel_parm { · 36 unmodified lines | ||
| 37 | 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 | 51 | /* SIT-mode i_flags */ |
| 41 | 52 | #define SIT_ISATAP 0x0001 |
| 42 | 53 | |