diff options
Diffstat (limited to 'include/linux/rtnetlink.h')
| -rw-r--r-- | include/linux/rtnetlink.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 05330fc5b436..58d44491880f 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h | |||
| @@ -7,6 +7,13 @@ | |||
| 7 | #include <linux/if_addr.h> | 7 | #include <linux/if_addr.h> |
| 8 | #include <linux/neighbour.h> | 8 | #include <linux/neighbour.h> |
| 9 | 9 | ||
| 10 | /* rtnetlink families. Values up to 127 are reserved for real address | ||
| 11 | * families, values above 128 may be used arbitrarily. | ||
| 12 | */ | ||
| 13 | #define RTNL_FAMILY_IPMR 128 | ||
| 14 | #define RTNL_FAMILY_IP6MR 129 | ||
| 15 | #define RTNL_FAMILY_MAX 129 | ||
| 16 | |||
| 10 | /**** | 17 | /**** |
| 11 | * Routing/neighbour discovery messages. | 18 | * Routing/neighbour discovery messages. |
| 12 | ****/ | 19 | ****/ |
| @@ -275,6 +282,7 @@ enum rtattr_type_t { | |||
| 275 | RTA_SESSION, /* no longer used */ | 282 | RTA_SESSION, /* no longer used */ |
| 276 | RTA_MP_ALGO, /* no longer used */ | 283 | RTA_MP_ALGO, /* no longer used */ |
| 277 | RTA_TABLE, | 284 | RTA_TABLE, |
| 285 | RTA_MARK, | ||
| 278 | __RTA_MAX | 286 | __RTA_MAX |
| 279 | }; | 287 | }; |
| 280 | 288 | ||
| @@ -362,6 +370,8 @@ enum { | |||
| 362 | #define RTAX_FEATURES RTAX_FEATURES | 370 | #define RTAX_FEATURES RTAX_FEATURES |
| 363 | RTAX_RTO_MIN, | 371 | RTAX_RTO_MIN, |
| 364 | #define RTAX_RTO_MIN RTAX_RTO_MIN | 372 | #define RTAX_RTO_MIN RTAX_RTO_MIN |
| 373 | RTAX_INITRWND, | ||
| 374 | #define RTAX_INITRWND RTAX_INITRWND | ||
| 365 | __RTAX_MAX | 375 | __RTAX_MAX |
| 366 | }; | 376 | }; |
| 367 | 377 | ||
| @@ -735,6 +745,9 @@ extern void rtnl_lock(void); | |||
| 735 | extern void rtnl_unlock(void); | 745 | extern void rtnl_unlock(void); |
| 736 | extern int rtnl_trylock(void); | 746 | extern int rtnl_trylock(void); |
| 737 | extern int rtnl_is_locked(void); | 747 | extern int rtnl_is_locked(void); |
| 748 | #ifdef CONFIG_PROVE_LOCKING | ||
| 749 | extern int lockdep_rtnl_is_held(void); | ||
| 750 | #endif /* #ifdef CONFIG_PROVE_LOCKING */ | ||
| 738 | 751 | ||
| 739 | extern void rtnetlink_init(void); | 752 | extern void rtnetlink_init(void); |
| 740 | extern void __rtnl_unlock(void); | 753 | extern void __rtnl_unlock(void); |
