summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2019-10-04 00:21:57 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2019-10-09 06:55:32 +0200
commitfd1ac07f3f17fbbc2f08e3b43951bed937d86a7b (patch)
tree2c3287054759e9c68e2cfb0db28dc42887677abb /include/net
parent4361f5b6118ad77872f54f813321aa4905a7e9c1 (diff)
downloadlinux-fd1ac07f3f17fbbc2f08e3b43951bed937d86a7b.tar.gz
linux-fd1ac07f3f17fbbc2f08e3b43951bed937d86a7b.tar.bz2
linux-fd1ac07f3f17fbbc2f08e3b43951bed937d86a7b.zip
xfrm: ifdef setsockopt(UDP_ENCAP_ESPINUDP/UDP_ENCAP_ESPINUDP_NON_IKE)
If IPsec is not configured, there is no reason to delay the inevitable. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/xfrm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index aa08a7a5f6ac..dda3c025452e 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1613,13 +1613,6 @@ static inline int xfrm_user_policy(struct sock *sk, int optname, u8 __user *optv
{
return -ENOPROTOOPT;
}
-
-static inline int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
-{
- /* should not happen */
- kfree_skb(skb);
- return 0;
-}
#endif
struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, int oif,