Skip to contentSkip to conversation

: Expand XFRM_MAX_DEPTH for routing header and destination options header.

PATCH In review Masahide NAKAMURA 2 participants 2 messages Jul 29, 2006 – Aug 2, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 13/23 : Expand XFRM_MAX_DEPTH for routing header and destination options header.

XFRM_MAX_DEPTH is a limit of transformation states to be applied to the same flow. Two extension headers are used by Mobile IPv6 transformation. Based on MIPL2 kernel patch.

---
 include/net/xfrm.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/net/xfrm.h +4 -0
index de62a8f..67fe834 100644
@@ -327,7 +327,11 @@ struct xfrm_tmpl
 	__u32			calgos;
 };
 
+#ifdef CONFIG_XFRM_ADVANCED
+#define XFRM_MAX_DEPTH		6
+#else
 #define XFRM_MAX_DEPTH		4
+#endif
 
 struct xfrm_policy
 {
Signature · 1 line
1.4.1
maintainer
#1 lore raw

From: Masahide NAKAMURA <[email protected]>
Date: Sat, 29 Jul 2006 18:30:36 +0900

include/net/xfrm.h struct xfrm_tmpl · line 334

Quoted 5 lines
include/net/xfrm.h +4 -0
+#ifdef CONFIG_XFRM_ADVANCED
+#define XFRM_MAX_DEPTH		6
+#else
 #define XFRM_MAX_DEPTH		4
+#endif

Since I suggest to eliminate XFRM_ADVANCED, we should do "6" always here if that is what is needed.