[IPSEC]: Use the correct family for input state lookup
commit2fcb45b6b87914f072314e5b5d9c196f45984683
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Dec 2007 06:54:12 +0000 (3 22:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:49 +0000 (28 14:55 -0800)
treee5a6cc4101a8b2693799fde9f47abaf480ae2dfc
parentbbca17680f82b1ba3122d41e8bc675aebf6d1cf2
[IPSEC]: Use the correct family for input state lookup

When merging the input paths of IPsec I accidentally left a hard-coded
AF_INET for the state lookup call.  This broke IPv6 obviously.  This
patch fixes by getting the input callers to specify the family through
skb->cb.

Credit goes to Kazunori Miyazawa for diagnosing this and providing an
initial patch.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/xfrm4_input.c
net/ipv6/xfrm6_input.c
net/xfrm/xfrm_input.c