[XFRM]: Do not add a state whose SPI is zero to the SPI hash.
authorMasahide NAKAMURA <nakam@linux-ipv6.org>
Thu, 28 Sep 2006 05:21:52 +0000 (22:21 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:02:49 +0000 (18:02 -0700)
commit7b4dc3600e4877178ba94c7fbf7e520421378aa6
treece3d6601b8fd7748d3026a1aed042bba002ecac0
parent7fa6b06689085a3e2237cf810f5e0c114e00a2da
[XFRM]: Do not add a state whose SPI is zero to the SPI hash.

SPI=0 is used for acquired IPsec SA and MIPv6 RO state.
Such state should not be added to the SPI hash
because we do not care about it on deleting path.

Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/xfrm/xfrm_state.c