aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-05-28 02:06:33 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-18 00:28:43 -0400
commit73654d61e556483ad324b90989eae26b22df6ef6 (patch)
treef3aee3be0e35bb6012917b71ed77301de6b39ad4 /include/net/xfrm.h
parent31a4ab93025719e62e7cf7ce899f71c34ecde5a0 (diff)
[IPSEC] xfrm: Use IPPROTO_MAX instead of 256
The size of the type_map array (256) comes from the number of IP protocols, i.e., IPPROTO_MAX. This patch is based on a suggestion from Ingo Oeser. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index ed5bb34f817f..9c5ee9f20b65 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -207,7 +207,7 @@ struct xfrm_type;
207struct xfrm_dst; 207struct xfrm_dst;
208struct xfrm_policy_afinfo { 208struct xfrm_policy_afinfo {
209 unsigned short family; 209 unsigned short family;
210 struct xfrm_type *type_map[256]; 210 struct xfrm_type *type_map[IPPROTO_MAX];
211 struct xfrm_mode *mode_map[XFRM_MODE_MAX]; 211 struct xfrm_mode *mode_map[XFRM_MODE_MAX];
212 struct dst_ops *dst_ops; 212 struct dst_ops *dst_ops;
213 void (*garbage_collect)(void); 213 void (*garbage_collect)(void);