diff options
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index ce3d96f752fd..af13599b60a0 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -349,6 +349,16 @@ int xfrm_state_unregister_afinfo(struct xfrm_state_afinfo *afinfo); | |||
349 | struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family); | 349 | struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family); |
350 | void xfrm_state_put_afinfo(struct xfrm_state_afinfo *afinfo); | 350 | void xfrm_state_put_afinfo(struct xfrm_state_afinfo *afinfo); |
351 | 351 | ||
352 | struct xfrm_input_afinfo { | ||
353 | unsigned int family; | ||
354 | struct module *owner; | ||
355 | int (*callback)(struct sk_buff *skb, u8 protocol, | ||
356 | int err); | ||
357 | }; | ||
358 | |||
359 | int xfrm_input_register_afinfo(struct xfrm_input_afinfo *afinfo); | ||
360 | int xfrm_input_unregister_afinfo(struct xfrm_input_afinfo *afinfo); | ||
361 | |||
352 | void xfrm_state_delete_tunnel(struct xfrm_state *x); | 362 | void xfrm_state_delete_tunnel(struct xfrm_state *x); |
353 | 363 | ||
354 | struct xfrm_type { | 364 | struct xfrm_type { |
@@ -1392,6 +1402,7 @@ void xfrm4_init(void); | |||
1392 | int xfrm_state_init(struct net *net); | 1402 | int xfrm_state_init(struct net *net); |
1393 | void xfrm_state_fini(struct net *net); | 1403 | void xfrm_state_fini(struct net *net); |
1394 | void xfrm4_state_init(void); | 1404 | void xfrm4_state_init(void); |
1405 | void xfrm4_protocol_init(void); | ||
1395 | #ifdef CONFIG_XFRM | 1406 | #ifdef CONFIG_XFRM |
1396 | int xfrm6_init(void); | 1407 | int xfrm6_init(void); |
1397 | void xfrm6_fini(void); | 1408 | void xfrm6_fini(void); |
@@ -1773,18 +1784,6 @@ static inline int xfrm_mark_put(struct sk_buff *skb, const struct xfrm_mark *m) | |||
1773 | return ret; | 1784 | return ret; |
1774 | } | 1785 | } |
1775 | 1786 | ||
1776 | static inline int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, | ||
1777 | u8 protocol, int err) | ||
1778 | { | ||
1779 | switch(family) { | ||
1780 | #ifdef CONFIG_INET | ||
1781 | case AF_INET: | ||
1782 | return xfrm4_rcv_cb(skb, protocol, err); | ||
1783 | #endif | ||
1784 | } | ||
1785 | return 0; | ||
1786 | } | ||
1787 | |||
1788 | static inline int xfrm_tunnel_check(struct sk_buff *skb, struct xfrm_state *x, | 1787 | static inline int xfrm_tunnel_check(struct sk_buff *skb, struct xfrm_state *x, |
1789 | unsigned int family) | 1788 | unsigned int family) |
1790 | { | 1789 | { |