]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/xfrm4_input.c
[IPSEC]: Separate inner/outer mode processing on input
[linux-2.6-omap-h63xx.git] / net / ipv4 / xfrm4_input.c
index 5e95c8a07efbad59809f5370c62b317b58e1fe9c..c0323d05ab69c73ac6f8eb12bd7d514270e7ee43 100644 (file)
 #include <net/ip.h>
 #include <net/xfrm.h>
 
+int xfrm4_extract_input(struct xfrm_state *x, struct sk_buff *skb)
+{
+       return xfrm4_extract_header(skb);
+}
+
 #ifdef CONFIG_NETFILTER
 static inline int xfrm4_rcv_encap_finish(struct sk_buff *skb)
 {
@@ -91,7 +96,7 @@ int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi,
 
                xfrm_vec[xfrm_nr++] = x;
 
-               if (x->outer_mode->input(x, skb))
+               if (x->inner_mode->input(x, skb))
                        goto drop;
 
                if (x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL) {