diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/xfrm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index d3a898b18fb4..ae959e950174 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -1003,7 +1003,7 @@ extern int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb, | |||
1003 | u8 **prevhdr); | 1003 | u8 **prevhdr); |
1004 | 1004 | ||
1005 | #ifdef CONFIG_XFRM | 1005 | #ifdef CONFIG_XFRM |
1006 | extern int xfrm4_rcv_encap(struct sk_buff *skb, __u16 encap_type); | 1006 | extern int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb); |
1007 | extern int xfrm_user_policy(struct sock *sk, int optname, u8 __user *optval, int optlen); | 1007 | extern int xfrm_user_policy(struct sock *sk, int optname, u8 __user *optval, int optlen); |
1008 | extern int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsigned short family); | 1008 | extern int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsigned short family); |
1009 | #else | 1009 | #else |
@@ -1012,12 +1012,13 @@ static inline int xfrm_user_policy(struct sock *sk, int optname, u8 __user *optv | |||
1012 | return -ENOPROTOOPT; | 1012 | return -ENOPROTOOPT; |
1013 | } | 1013 | } |
1014 | 1014 | ||
1015 | static inline int xfrm4_rcv_encap(struct sk_buff *skb, __u16 encap_type) | 1015 | static inline int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb) |
1016 | { | 1016 | { |
1017 | /* should not happen */ | 1017 | /* should not happen */ |
1018 | kfree_skb(skb); | 1018 | kfree_skb(skb); |
1019 | return 0; | 1019 | return 0; |
1020 | } | 1020 | } |
1021 | |||
1021 | static inline int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsigned short family) | 1022 | static inline int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsigned short family) |
1022 | { | 1023 | { |
1023 | return -EINVAL; | 1024 | return -EINVAL; |