Subject: Re: [RESEND][PATCH][XFRM] SAD info TLV aggregation

From: jamal <[email-masked]>
Date: Thu, 03 May 2007 21:44:56 -0400

On Thu, 2007-03-05 at 21:01 -0400, jamal wrote:
> On Thu, 2007-03-05 at 17:52 -0700, David Miller wrote:
> 
> > I'll sit tight and wait for the next version, whoever
> > creates it :-)
> 
> I could send you an incremental patch if that would work
> ( a 4+/- liner on the include). 
> 

i.e something along the lines of the attached ...
(so user space doesnt change)

Canucks going to survive tonight? ;->

cheers,
jamal

diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h
index 8a522d5..544613a 100644
--- a/include/linux/xfrm.h
+++ b/include/linux/xfrm.h
@@ -278,9 +278,9 @@ enum xfrm_sadattr_type_t {
 	XFRMA_SADUNSPEC,
 	XFRMA_SADCNT,
 	XFRMA_SADHINFO,
-	__XFRMA_SAD_MAX
+	__XFRMA_SADMAX
 
-#define XFRMA_SAD_MAX (__XFRMA_SAD_MAX - 1)
+#define XFRMA_SADMAX (__XFRMA_SADMAX - 1)
 };
 
 struct xfrmu_sadhinfo {
@@ -292,9 +292,9 @@ enum xfrm_spdattr_type_t {
 	XFRMA_SPDUNSPEC,
 	XFRMA_SPDINFO,
 	XFRMA_SPDHINFO,
-	__XFRMA_SPD_MAX
+	__XFRMA_SPDMAX
 
-#define XFRMA_SPD_MAX (__XFRMA_SPD_MAX - 1)
+#define XFRMA_SPDMAX (__XFRMA_SPDMAX - 1)
 };
 
 struct xfrmu_spdinfo {