aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-09-30 15:11:00 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-30 15:24:57 -0400
commit7b77d161ce7e480a660692cab079712fc0268ba2 (patch)
treeb48e40d0e619a1c1a82be374fbd458584a9d6094 /include
parent44a504c74ad338ccbbb9003f378d56576bdbf785 (diff)
parentaba8269588301f7778bea811d6f7ec74c2e37279 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
Conflicts: include/net/xfrm.h Simple conflict between Joe Perches "extern" removal for function declarations in header files and the changes in Steffen's tree. Steffen Klassert says: ==================== Two patches that are left from the last development cycle. Manual merging of include/net/xfrm.h is needed. The conflict can be solved as it is currently done in linux-next. 1) We announce the creation of temporary acquire state via an asyc event, so the deletion should be annunced too. From Nicolas Dichtel. 2) The VTI tunnels do not real tunning, they just provide a routable IPsec tunnel interface. So introduce and use xfrm_tunnel_notifier instead of xfrm_tunnel for xfrm tunnel mode callback. From Fan Du. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/xfrm.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 765746192724..b8a9ed849801 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1357,6 +1357,12 @@ struct xfrm_tunnel {
1357 int priority; 1357 int priority;
1358}; 1358};
1359 1359
1360struct xfrm_tunnel_notifier {
1361 int (*handler)(struct sk_buff *skb);
1362 struct xfrm_tunnel_notifier __rcu *next;
1363 int priority;
1364};
1365
1360struct xfrm6_tunnel { 1366struct xfrm6_tunnel {
1361 int (*handler)(struct sk_buff *skb); 1367 int (*handler)(struct sk_buff *skb);
1362 int (*err_handler)(struct sk_buff *skb, struct inet6_skb_parm *opt, 1368 int (*err_handler)(struct sk_buff *skb, struct inet6_skb_parm *opt,
@@ -1499,9 +1505,9 @@ int xfrm4_output(struct sk_buff *skb);
1499int xfrm4_output_finish(struct sk_buff *skb); 1505int xfrm4_output_finish(struct sk_buff *skb);
1500int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family); 1506int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family);
1501int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family); 1507int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family);
1502int xfrm4_mode_tunnel_input_register(struct xfrm_tunnel *handler);
1503int xfrm4_mode_tunnel_input_deregister(struct xfrm_tunnel *handler);
1504void xfrm4_local_error(struct sk_buff *skb, u32 mtu); 1508void xfrm4_local_error(struct sk_buff *skb, u32 mtu);
1509int xfrm4_mode_tunnel_input_register(struct xfrm_tunnel_notifier *handler);
1510int xfrm4_mode_tunnel_input_deregister(struct xfrm_tunnel_notifier *handler);
1505int xfrm6_extract_header(struct sk_buff *skb); 1511int xfrm6_extract_header(struct sk_buff *skb);
1506int xfrm6_extract_input(struct xfrm_state *x, struct sk_buff *skb); 1512int xfrm6_extract_input(struct xfrm_state *x, struct sk_buff *skb);
1507int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi); 1513int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi);
@@ -1509,9 +1515,9 @@ int xfrm6_transport_finish(struct sk_buff *skb, int async);
1509int xfrm6_rcv(struct sk_buff *skb); 1515int xfrm6_rcv(struct sk_buff *skb);
1510int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, 1516int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr,
1511 xfrm_address_t *saddr, u8 proto); 1517 xfrm_address_t *saddr, u8 proto);
1518void xfrm6_local_error(struct sk_buff *skb, u32 mtu);
1512int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family); 1519int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family);
1513int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, 1520int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family);
1514 unsigned short family);
1515__be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr); 1521__be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr);
1516__be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr); 1522__be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr);
1517int xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb); 1523int xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb);
@@ -1520,7 +1526,6 @@ int xfrm6_output(struct sk_buff *skb);
1520int xfrm6_output_finish(struct sk_buff *skb); 1526int xfrm6_output_finish(struct sk_buff *skb);
1521int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb, 1527int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb,
1522 u8 **prevhdr); 1528 u8 **prevhdr);
1523void xfrm6_local_error(struct sk_buff *skb, u32 mtu);
1524 1529
1525#ifdef CONFIG_XFRM 1530#ifdef CONFIG_XFRM
1526int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb); 1531int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb);