diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/xfrm.h | 6 | ||||
-rw-r--r-- | include/net/xfrm.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index 46a15c7a1a13..5154064b6d95 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h | |||
@@ -120,7 +120,9 @@ enum | |||
120 | 120 | ||
121 | #define XFRM_MODE_TRANSPORT 0 | 121 | #define XFRM_MODE_TRANSPORT 0 |
122 | #define XFRM_MODE_TUNNEL 1 | 122 | #define XFRM_MODE_TUNNEL 1 |
123 | #define XFRM_MODE_MAX 2 | 123 | #define XFRM_MODE_ROUTEOPTIMIZATION 2 |
124 | #define XFRM_MODE_IN_TRIGGER 3 | ||
125 | #define XFRM_MODE_MAX 4 | ||
124 | 126 | ||
125 | /* Netlink configuration messages. */ | 127 | /* Netlink configuration messages. */ |
126 | enum { | 128 | enum { |
@@ -247,7 +249,7 @@ struct xfrm_usersa_info { | |||
247 | __u32 seq; | 249 | __u32 seq; |
248 | __u32 reqid; | 250 | __u32 reqid; |
249 | __u16 family; | 251 | __u16 family; |
250 | __u8 mode; /* 0=transport,1=tunnel */ | 252 | __u8 mode; /* XFRM_MODE_xxx */ |
251 | __u8 replay_window; | 253 | __u8 replay_window; |
252 | __u8 flags; | 254 | __u8 flags; |
253 | #define XFRM_STATE_NOECN 1 | 255 | #define XFRM_STATE_NOECN 1 |
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 00bf86e6e82b..762795624b10 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -298,7 +298,7 @@ struct xfrm_tmpl | |||
298 | 298 | ||
299 | __u32 reqid; | 299 | __u32 reqid; |
300 | 300 | ||
301 | /* Mode: transport/tunnel */ | 301 | /* Mode: transport, tunnel etc. */ |
302 | __u8 mode; | 302 | __u8 mode; |
303 | 303 | ||
304 | /* Sharing mode: unique, this session only, this user only etc. */ | 304 | /* Sharing mode: unique, this session only, this user only etc. */ |