aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_input.c
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2014-02-21 02:41:08 -0500
committerSteffen Klassert <steffen.klassert@secunet.com>2014-02-25 01:04:16 -0500
commit3328715e6c1fcb10cd86b0f3212d18290b7e4463 (patch)
tree15ba89891638afb7075b5a5046d357c9263ac265 /net/ipv4/xfrm4_input.c
parent51adfcc333e1490d3a22490f5b3504f64c7b28b4 (diff)
xfrm4: Add IPsec protocol multiplexer
This patch add an IPsec protocol multiplexer. With this it is possible to add alternative protocol handlers as needed for IPsec virtual tunnel interfaces. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/xfrm4_input.c')
-rw-r--r--net/ipv4/xfrm4_input.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/ipv4/xfrm4_input.c b/net/ipv4/xfrm4_input.c
index 1f12c8b45864..aac6197b7a71 100644
--- a/net/ipv4/xfrm4_input.c
+++ b/net/ipv4/xfrm4_input.c
@@ -37,15 +37,6 @@ drop:
37 return NET_RX_DROP; 37 return NET_RX_DROP;
38} 38}
39 39
40int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi,
41 int encap_type)
42{
43 XFRM_SPI_SKB_CB(skb)->family = AF_INET;
44 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr);
45 return xfrm_input(skb, nexthdr, spi, encap_type);
46}
47EXPORT_SYMBOL(xfrm4_rcv_encap);
48
49int xfrm4_transport_finish(struct sk_buff *skb, int async) 40int xfrm4_transport_finish(struct sk_buff *skb, int async)
50{ 41{
51 struct iphdr *iph = ip_hdr(skb); 42 struct iphdr *iph = ip_hdr(skb);