]> git.baikalelectronics.ru Git - kernel.git/commit
[IPSEC] xfrm: Use IPPROTO_MAX instead of 256
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 28 May 2006 06:06:33 +0000 (23:06 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:28:43 +0000 (21:28 -0700)
commitb27b60721539250607222c3d6be68927141614b1
treef3aee3be0e35bb6012917b71ed77301de6b39ad4
parentc7ee0d1b4d3f44c4bd45239f06b44232f6a855a1
[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>
include/net/xfrm.h