aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-06-23 14:17:31 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-23 14:17:31 -0400
commit93bbbfbb4a5aa32a2375a86f3a23e48ea75e05db (patch)
treefd34e9c7e0485615e63e0608cf81f9dfc62a1582 /include/net/xfrm.h
parent408cf83f70b8a3d7038c775452c50da010cc580b (diff)
parent8bafd73093f2f431f5a363f8057abc0ccc118853 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
Steffen Klassert says: ==================== pull request (net-next): ipsec-next 2017-06-23 1) Use memdup_user to spmlify xfrm_user_policy. From Geliang Tang. 2) Make xfrm_dev_register static to silence a sparse warning. From Wei Yongjun. 3) Use crypto_memneq to check the ICV in the AH protocol. From Sabrina Dubroca. 4) Remove some unused variables in esp6. From Stephen Hemminger. 5) Extend XFRM MIGRATE to allow to change the UDP encapsulation port. From Antony Antony. 6) Include the UDP encapsulation port to km_migrate announcements. From Antony Antony. Please pull or let me know if there are problems. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 7e7e2b0d2915..01f5bc144ee5 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -631,7 +631,8 @@ struct xfrm_mgr {
631 u8 dir, u8 type, 631 u8 dir, u8 type,
632 const struct xfrm_migrate *m, 632 const struct xfrm_migrate *m,
633 int num_bundles, 633 int num_bundles,
634 const struct xfrm_kmaddress *k); 634 const struct xfrm_kmaddress *k,
635 const struct xfrm_encap_tmpl *encap);
635 bool (*is_alive)(const struct km_event *c); 636 bool (*is_alive)(const struct km_event *c);
636}; 637};
637 638
@@ -1675,13 +1676,16 @@ int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol);
1675#ifdef CONFIG_XFRM_MIGRATE 1676#ifdef CONFIG_XFRM_MIGRATE
1676int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, 1677int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
1677 const struct xfrm_migrate *m, int num_bundles, 1678 const struct xfrm_migrate *m, int num_bundles,
1678 const struct xfrm_kmaddress *k); 1679 const struct xfrm_kmaddress *k,
1680 const struct xfrm_encap_tmpl *encap);
1679struct xfrm_state *xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net); 1681struct xfrm_state *xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net);
1680struct xfrm_state *xfrm_state_migrate(struct xfrm_state *x, 1682struct xfrm_state *xfrm_state_migrate(struct xfrm_state *x,
1681 struct xfrm_migrate *m); 1683 struct xfrm_migrate *m,
1684 struct xfrm_encap_tmpl *encap);
1682int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, 1685int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
1683 struct xfrm_migrate *m, int num_bundles, 1686 struct xfrm_migrate *m, int num_bundles,
1684 struct xfrm_kmaddress *k, struct net *net); 1687 struct xfrm_kmaddress *k, struct net *net,
1688 struct xfrm_encap_tmpl *encap);
1685#endif 1689#endif
1686 1690
1687int km_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport); 1691int km_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport);