diff options
Diffstat (limited to 'include/uapi/linux/rtnetlink.h')
-rw-r--r-- | include/uapi/linux/rtnetlink.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index 5cc5d66bf519..974db03f7b1a 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h | |||
@@ -134,6 +134,8 @@ enum { | |||
134 | 134 | ||
135 | RTM_NEWNSID = 88, | 135 | RTM_NEWNSID = 88, |
136 | #define RTM_NEWNSID RTM_NEWNSID | 136 | #define RTM_NEWNSID RTM_NEWNSID |
137 | RTM_DELNSID = 89, | ||
138 | #define RTM_DELNSID RTM_DELNSID | ||
137 | RTM_GETNSID = 90, | 139 | RTM_GETNSID = 90, |
138 | #define RTM_GETNSID RTM_GETNSID | 140 | #define RTM_GETNSID RTM_GETNSID |
139 | 141 | ||
@@ -303,6 +305,9 @@ enum rtattr_type_t { | |||
303 | RTA_TABLE, | 305 | RTA_TABLE, |
304 | RTA_MARK, | 306 | RTA_MARK, |
305 | RTA_MFC_STATS, | 307 | RTA_MFC_STATS, |
308 | RTA_VIA, | ||
309 | RTA_NEWDST, | ||
310 | RTA_PREF, | ||
306 | __RTA_MAX | 311 | __RTA_MAX |
307 | }; | 312 | }; |
308 | 313 | ||
@@ -332,6 +337,7 @@ struct rtnexthop { | |||
332 | #define RTNH_F_DEAD 1 /* Nexthop is dead (used by multipath) */ | 337 | #define RTNH_F_DEAD 1 /* Nexthop is dead (used by multipath) */ |
333 | #define RTNH_F_PERVASIVE 2 /* Do recursive gateway lookup */ | 338 | #define RTNH_F_PERVASIVE 2 /* Do recursive gateway lookup */ |
334 | #define RTNH_F_ONLINK 4 /* Gateway is forced on link */ | 339 | #define RTNH_F_ONLINK 4 /* Gateway is forced on link */ |
340 | #define RTNH_F_EXTERNAL 8 /* Route installed externally */ | ||
335 | 341 | ||
336 | /* Macros to handle hexthops */ | 342 | /* Macros to handle hexthops */ |
337 | 343 | ||
@@ -344,6 +350,12 @@ struct rtnexthop { | |||
344 | #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len)) | 350 | #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len)) |
345 | #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) | 351 | #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) |
346 | 352 | ||
353 | /* RTA_VIA */ | ||
354 | struct rtvia { | ||
355 | __kernel_sa_family_t rtvia_family; | ||
356 | __u8 rtvia_addr[0]; | ||
357 | }; | ||
358 | |||
347 | /* RTM_CACHEINFO */ | 359 | /* RTM_CACHEINFO */ |
348 | 360 | ||
349 | struct rta_cacheinfo { | 361 | struct rta_cacheinfo { |
@@ -623,6 +635,10 @@ enum rtnetlink_groups { | |||
623 | #define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF | 635 | #define RTNLGRP_IPV6_NETCONF RTNLGRP_IPV6_NETCONF |
624 | RTNLGRP_MDB, | 636 | RTNLGRP_MDB, |
625 | #define RTNLGRP_MDB RTNLGRP_MDB | 637 | #define RTNLGRP_MDB RTNLGRP_MDB |
638 | RTNLGRP_MPLS_ROUTE, | ||
639 | #define RTNLGRP_MPLS_ROUTE RTNLGRP_MPLS_ROUTE | ||
640 | RTNLGRP_NSID, | ||
641 | #define RTNLGRP_NSID RTNLGRP_NSID | ||
626 | __RTNLGRP_MAX | 642 | __RTNLGRP_MAX |
627 | }; | 643 | }; |
628 | #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) | 644 | #define RTNLGRP_MAX (__RTNLGRP_MAX - 1) |