Searched refs:pol (Results 1 – 5 of 5) sorted by relevance
/net/xfrm/ |
D | xfrm_policy.c | 58 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 247 struct xfrm_policy *pol = container_of(flo, struct xfrm_policy, flo); in xfrm_policy_flo_get() local 249 if (unlikely(pol->walk.dead)) in xfrm_policy_flo_get() 252 xfrm_pol_hold(pol); in xfrm_policy_flo_get() 259 struct xfrm_policy *pol = container_of(flo, struct xfrm_policy, flo); in xfrm_policy_flo_check() local 261 return !pol->walk.dead; in xfrm_policy_flo_check() 414 struct xfrm_policy *pol; in xfrm_dst_hash_transfer() local 420 hlist_for_each_entry_safe(pol, tmp, list, bydst) { in xfrm_dst_hash_transfer() 423 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer() 424 h = __addr_hash(&pol->selector.daddr, &pol->selector.saddr, in xfrm_dst_hash_transfer() [all …]
|
D | xfrm_state.c | 156 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 726 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at() argument 745 !security_xfrm_state_pol_flow_match(x, pol, fl)) in xfrm_state_look_at() 758 security_xfrm_state_pol_flow_match(x, pol, fl)) in xfrm_state_look_at() 766 struct xfrm_policy *pol, int *err, in xfrm_state_find() argument 770 struct net *net = xp_net(pol); in xfrm_state_find() 776 u32 mark = pol->mark.v & pol->mark.m; in xfrm_state_find() 793 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find() 809 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find() 842 memcpy(&x->mark, &pol->mark, sizeof(x->mark)); in xfrm_state_find() [all …]
|
D | xfrm_user.c | 1321 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx() argument 1330 return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); in copy_from_user_sec_ctx() 1391 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_tmpl() argument 1396 pol->xfrm_nr = 0; in copy_from_user_tmpl() 1402 err = validate_tmpl(nr, utmpl, pol->family); in copy_from_user_tmpl() 1406 copy_templates(pol, utmpl, nr); in copy_from_user_tmpl() 1997 struct xfrm_userpolicy_info *p = &up->pol; in xfrm_add_pol_expire() 2848 copy_to_user_policy(xp, &upe->pol, dir); in build_polexpire()
|
/net/key/ |
D | af_key.c | 1980 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument 1983 int len = pol->sadb_x_policy_len*8 - sizeof(struct sadb_x_policy); in parse_ipsecrequests() 1984 struct sadb_x_ipsecrequest *rq = (void*)(pol+1); in parse_ipsecrequests() 1986 if (pol->sadb_x_policy_len * 8 < sizeof(struct sadb_x_policy)) in parse_ipsecrequests() 2055 struct sadb_x_policy *pol; in pfkey_xfrm_policy2msg() local 2131 pol = (struct sadb_x_policy *) skb_put(skb, sizeof(struct sadb_x_policy)); in pfkey_xfrm_policy2msg() 2132 pol->sadb_x_policy_len = sizeof(struct sadb_x_policy)/sizeof(uint64_t); in pfkey_xfrm_policy2msg() 2133 pol->sadb_x_policy_exttype = SADB_X_EXT_POLICY; in pfkey_xfrm_policy2msg() 2134 pol->sadb_x_policy_type = IPSEC_POLICY_DISCARD; in pfkey_xfrm_policy2msg() 2137 pol->sadb_x_policy_type = IPSEC_POLICY_IPSEC; in pfkey_xfrm_policy2msg() [all …]
|
/net/netfilter/ |
D | xt_policy.c | 72 e = &info->pol[pos]; in match_policy_in() 100 e = &info->pol[pos]; in match_policy_out()
|