aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMasahide NAKAMURA <nakam@linux-ipv6.org>2006-09-22 18:05:15 -0400
committerDavid S. Miller <davem@davemloft.net>2006-09-22 18:05:15 -0400
commit7e49e6de30efa716614e280d97963c570f3acf29 (patch)
tree8eaef9d40300d16a7675722e082c5d8ab2a53d40 /include
parent77d16f450ae0452d7d4b009f78debb1294fb435c (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')
-rw-r--r--include/linux/xfrm.h6
-rw-r--r--include/net/xfrm.h2
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. */
126enum { 128enum {
@@ -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. */