aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-24 00:02:38 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-24 02:07:37 -0500
commit214e005bc32c7045b8554f9f0fb07b3fcce2cd42 (patch)
tree19549e83718646b6ec942f9c4aaf8ce5645cb0d0 /include/net/xfrm.h
parent55ae22d08fc9b531bc8a88b7306004e7053bb425 (diff)
xfrm: Pass km_event pointers around as const when possible.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index bb824a5d71bf..6ef5c374ef8a 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -284,8 +284,8 @@ struct xfrm_policy_afinfo {
284 284
285extern int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo); 285extern int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo);
286extern int xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo); 286extern int xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo);
287extern void km_policy_notify(struct xfrm_policy *xp, int dir, struct km_event *c); 287extern void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c);
288extern void km_state_notify(struct xfrm_state *x, struct km_event *c); 288extern void km_state_notify(struct xfrm_state *x, const struct km_event *c);
289 289
290struct xfrm_tmpl; 290struct xfrm_tmpl;
291extern int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 291extern int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
@@ -548,11 +548,11 @@ struct xfrm_migrate {
548struct xfrm_mgr { 548struct xfrm_mgr {
549 struct list_head list; 549 struct list_head list;
550 char *id; 550 char *id;
551 int (*notify)(struct xfrm_state *x, struct km_event *c); 551 int (*notify)(struct xfrm_state *x, const struct km_event *c);
552 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp, int dir); 552 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp, int dir);
553 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir); 553 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir);
554 int (*new_mapping)(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport); 554 int (*new_mapping)(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport);
555 int (*notify_policy)(struct xfrm_policy *x, int dir, struct km_event *c); 555 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c);
556 int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr); 556 int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
557 int (*migrate)(struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_bundles, struct xfrm_kmaddress *k); 557 int (*migrate)(struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_bundles, struct xfrm_kmaddress *k);
558}; 558};