xfrm4_input.c (29a26a56803855a79dbd028cd61abee56237d6e5) | xfrm4_input.c (0c4b51f0054ce85c0ec578ab818f0631834573eb) |
---|---|
1/* 2 * xfrm4_input.c 3 * 4 * Changes: 5 * YOSHIFUJI Hideaki @USAGI 6 * Split up af-specific portion 7 * Derek Atkins <derek@ihtfp.com> 8 * Add Encapsulation support --- 8 unchanged lines hidden (view full) --- 17#include <net/ip.h> 18#include <net/xfrm.h> 19 20int xfrm4_extract_input(struct xfrm_state *x, struct sk_buff *skb) 21{ 22 return xfrm4_extract_header(skb); 23} 24 | 1/* 2 * xfrm4_input.c 3 * 4 * Changes: 5 * YOSHIFUJI Hideaki @USAGI 6 * Split up af-specific portion 7 * Derek Atkins <derek@ihtfp.com> 8 * Add Encapsulation support --- 8 unchanged lines hidden (view full) --- 17#include <net/ip.h> 18#include <net/xfrm.h> 19 20int xfrm4_extract_input(struct xfrm_state *x, struct sk_buff *skb) 21{ 22 return xfrm4_extract_header(skb); 23} 24 |
25static inline int xfrm4_rcv_encap_finish(struct sock *sk, struct sk_buff *skb) | 25static inline int xfrm4_rcv_encap_finish(struct net *net, struct sock *sk, 26 struct sk_buff *skb) |
26{ 27 if (!skb_dst(skb)) { 28 const struct iphdr *iph = ip_hdr(skb); 29 30 if (ip_route_input_noref(skb, iph->daddr, iph->saddr, 31 iph->tos, skb->dev)) 32 goto drop; 33 } --- 125 unchanged lines hidden --- | 27{ 28 if (!skb_dst(skb)) { 29 const struct iphdr *iph = ip_hdr(skb); 30 31 if (ip_route_input_noref(skb, iph->daddr, iph->saddr, 32 iph->tos, skb->dev)) 33 goto drop; 34 } --- 125 unchanged lines hidden --- |