diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/rtnetlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 1ecaea74d55a..91ac97c20777 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h | |||
@@ -93,6 +93,8 @@ enum { | |||
93 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) | 93 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) |
94 | }; | 94 | }; |
95 | 95 | ||
96 | #define RTM_NR_MSGTYPES (RTM_MAX + 1 - RTM_BASE) | ||
97 | #define RTM_NR_FAMILIES (RTM_NR_MSGTYPES >> 2) | ||
96 | #define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2) | 98 | #define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2) |
97 | 99 | ||
98 | /* | 100 | /* |