diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/rtnetlink.h | 8 | ||||
| -rw-r--r-- | include/linux/xfrm.h | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 32e52769a00b..91ac97c20777 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h | |||
| @@ -89,10 +89,14 @@ enum { | |||
| 89 | RTM_GETANYCAST = 62, | 89 | RTM_GETANYCAST = 62, |
| 90 | #define RTM_GETANYCAST RTM_GETANYCAST | 90 | #define RTM_GETANYCAST RTM_GETANYCAST |
| 91 | 91 | ||
| 92 | RTM_MAX, | 92 | __RTM_MAX, |
| 93 | #define RTM_MAX RTM_MAX | 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) | ||
| 98 | #define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2) | ||
| 99 | |||
| 96 | /* | 100 | /* |
| 97 | Generic structure for encapsulation of optional route information. | 101 | Generic structure for encapsulation of optional route information. |
| 98 | It is reminiscent of sockaddr, but with sa_family replaced | 102 | It is reminiscent of sockaddr, but with sa_family replaced |
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index f0df02ae68a4..fd2ef742a9fd 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h | |||
| @@ -140,8 +140,11 @@ enum { | |||
| 140 | XFRM_MSG_FLUSHPOLICY, | 140 | XFRM_MSG_FLUSHPOLICY, |
| 141 | #define XFRM_MSG_FLUSHPOLICY XFRM_MSG_FLUSHPOLICY | 141 | #define XFRM_MSG_FLUSHPOLICY XFRM_MSG_FLUSHPOLICY |
| 142 | 142 | ||
| 143 | XFRM_MSG_MAX | 143 | __XFRM_MSG_MAX |
| 144 | }; | 144 | }; |
| 145 | #define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1) | ||
| 146 | |||
| 147 | #define XFRM_NR_MSGTYPES (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE) | ||
| 145 | 148 | ||
| 146 | struct xfrm_user_tmpl { | 149 | struct xfrm_user_tmpl { |
| 147 | struct xfrm_id id; | 150 | struct xfrm_id id; |
