diff options
author | Masahide NAKAMURA <nakam@linux-ipv6.org> | 2006-09-22 18:05:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-09-22 18:05:15 -0400 |
commit | 7e49e6de30efa716614e280d97963c570f3acf29 (patch) | |
tree | 8eaef9d40300d16a7675722e082c5d8ab2a53d40 /include/linux/xfrm.h | |
parent | 77d16f450ae0452d7d4b009f78debb1294fb435c (diff) |
[XFRM]: Add XFRM_MODE_xxx for future use.
Transformation mode is used as either IPsec transport or tunnel.
It is required to add two more items, route optimization and inbound trigger
for Mobile IPv6.
Based on MIPL2 kernel patch.
This patch was also written by: Ville Nuorvala <vnuorval@tcs.hut.fi>
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/xfrm.h')
-rw-r--r-- | include/linux/xfrm.h | 6 |
1 files changed, 4 insertions, 2 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 |