aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-24 00:28:01 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-24 02:07:41 -0500
commit183cad12785ffc036571c4b789dc084ec61a1bad (patch)
tree85cdd5f0952b9404c24dcfae77f2f2158e19c8ad /include/net/xfrm.h
parentdd701754e7d230330adc0e212b94106bbfd34841 (diff)
xfrm: Const'ify pointer args to km_migrate() and implementations.
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 b60f9564fb8d..17b296b19982 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -556,7 +556,11 @@ struct xfrm_mgr {
556 int (*new_mapping)(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport); 556 int (*new_mapping)(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport);
557 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c); 557 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c);
558 int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr); 558 int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
559 int (*migrate)(struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_bundles, struct xfrm_kmaddress *k); 559 int (*migrate)(const struct xfrm_selector *sel,
560 u8 dir, u8 type,
561 const struct xfrm_migrate *m,
562 int num_bundles,
563 const struct xfrm_kmaddress *k);
560}; 564};
561 565
562extern int xfrm_register_km(struct xfrm_mgr *km); 566extern int xfrm_register_km(struct xfrm_mgr *km);
@@ -1483,9 +1487,9 @@ struct xfrm_state *xfrm_find_acq(struct net *net, struct xfrm_mark *mark,
1483extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); 1487extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol);
1484 1488
1485#ifdef CONFIG_XFRM_MIGRATE 1489#ifdef CONFIG_XFRM_MIGRATE
1486extern int km_migrate(struct xfrm_selector *sel, u8 dir, u8 type, 1490extern int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
1487 struct xfrm_migrate *m, int num_bundles, 1491 const struct xfrm_migrate *m, int num_bundles,
1488 struct xfrm_kmaddress *k); 1492 const struct xfrm_kmaddress *k);
1489extern struct xfrm_state * xfrm_migrate_state_find(struct xfrm_migrate *m); 1493extern struct xfrm_state * xfrm_migrate_state_find(struct xfrm_migrate *m);
1490extern struct xfrm_state * xfrm_state_migrate(struct xfrm_state *x, 1494extern struct xfrm_state * xfrm_state_migrate(struct xfrm_state *x,
1491 struct xfrm_migrate *m); 1495 struct xfrm_migrate *m);