Home
last modified time | relevance | path

Searched refs:xfrm_policy (Results 1 – 5 of 5) sorted by relevance

/net/xfrm/
Dxfrm_policy.c62 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
63 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
66 static inline bool xfrm_pol_hold_rcu(struct xfrm_policy *policy) in xfrm_pol_hold_rcu()
190 struct xfrm_policy *xp = (struct xfrm_policy *)data; in xfrm_policy_timer()
262 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
264 struct xfrm_policy *policy; in xfrm_policy_alloc()
266 policy = kzalloc(sizeof(struct xfrm_policy), gfp); in xfrm_policy_alloc()
287 struct xfrm_policy *policy = container_of(head, struct xfrm_policy, rcu); in xfrm_policy_destroy_rcu()
295 void xfrm_policy_destroy(struct xfrm_policy *policy) in xfrm_policy_destroy()
310 static void xfrm_policy_kill(struct xfrm_policy *policy) in xfrm_policy_kill()
[all …]
Dxfrm_user.c1447 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx()
1459 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates()
1537 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_tmpl()
1577 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy()
1589 static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) in copy_to_user_policy()
1604 static struct xfrm_policy *xfrm_policy_construct(struct net *net, struct xfrm_userpolicy_info *p, s… in xfrm_policy_construct()
1606 struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL); in xfrm_policy_construct()
1643 struct xfrm_policy *xp; in xfrm_add_policy()
1683 static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_tmpl()
1720 static inline int copy_to_user_sec_ctx(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_sec_ctx()
[all …]
DMakefile6 obj-$(CONFIG_XFRM) := xfrm_policy.o xfrm_state.o xfrm_hash.o \
Dxfrm_state.c174 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
894 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at()
934 struct xfrm_policy *pol, int *err, in xfrm_state_find()
1924 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify()
1963 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) in km_query()
1996 void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) in km_policy_expired()
2074 struct xfrm_policy *pol = NULL; in xfrm_user_policy()
/net/key/
Daf_key.c1909 static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) in check_reqid()
1943 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_ipsecrequest *rq) in parse_ipsecrequest()
1991 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests()
2013 static inline int pfkey_xfrm_policy2sec_ctx_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2sec_ctx_size()
2025 static int pfkey_xfrm_policy2msg_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_size()
2047 static struct sk_buff * pfkey_xfrm_policy2msg_prep(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_prep()
2061 static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) in pfkey_xfrm_policy2msg()
2211 static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) in key_notify_policy()
2247 struct xfrm_policy *xp; in pfkey_spdadd()
2361 struct xfrm_policy *xp; in pfkey_spddelete()
[all …]