Home
last modified time | relevance | path

Searched refs:xp (Results 1 – 7 of 7) sorted by relevance

/net/ipv6/ila/
Dila_xlat.c19 struct ila_xlat_params xp; member
58 return (ila->xp.ifindex && ila->xp.ifindex != ifindex); in ila_cmp_wildcards()
62 struct ila_xlat_params *xp) in ila_cmp_params() argument
64 return (ila->xp.ifindex != xp->ifindex); in ila_cmp_params()
72 return (ila->xp.ip.locator_match.v64 != *(__be64 *)arg->key); in ila_cmpfn()
79 if (ila->xp.ifindex) in ila_order()
88 .key_offset = offsetof(struct ila_map, xp.ip.locator_match),
97 struct ila_xlat_params *xp) in parse_nl_config() argument
99 memset(xp, 0, sizeof(*xp)); in parse_nl_config()
102 xp->ip.locator.v64 = (__force __be64)nla_get_u64( in parse_nl_config()
[all …]
/net/key/
Daf_key.c1913 static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) in check_reqid() argument
1918 for (i=0; i<xp->xfrm_nr; i++) { in check_reqid()
1919 if (xp->xfrm_vec[i].reqid == reqid) in check_reqid()
1947 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() argument
1950 struct net *net = xp_net(xp); in parse_ipsecrequest()
1951 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; in parse_ipsecrequest()
1954 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) in parse_ipsecrequest()
1990 t->encap_family = xp->family; in parse_ipsecrequest()
1994 xp->xfrm_nr++; in parse_ipsecrequest()
1999 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() argument
[all …]
/net/xfrm/
Dxfrm_user.c1511 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates() argument
1516 xp->xfrm_nr = nr; in copy_templates()
1518 struct xfrm_tmpl *t = &xp->xfrm_vec[i]; in copy_templates()
1629 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy() argument
1631 xp->priority = p->priority; in copy_from_user_policy()
1632 xp->index = p->index; in copy_from_user_policy()
1633 memcpy(&xp->selector, &p->sel, sizeof(xp->selector)); in copy_from_user_policy()
1634 memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); in copy_from_user_policy()
1635 xp->action = p->action; in copy_from_user_policy()
1636 xp->flags = p->flags; in copy_from_user_policy()
[all …]
Dxfrm_policy.c318 struct xfrm_policy *xp = from_timer(xp, t, timer); in xfrm_policy_timer() local
324 read_lock(&xp->lock); in xfrm_policy_timer()
326 if (unlikely(xp->walk.dead)) in xfrm_policy_timer()
329 dir = xfrm_policy_id2dir(xp->index); in xfrm_policy_timer()
331 if (xp->lft.hard_add_expires_seconds) { in xfrm_policy_timer()
332 time64_t tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer()
333 xp->curlft.add_time - now; in xfrm_policy_timer()
339 if (xp->lft.hard_use_expires_seconds) { in xfrm_policy_timer()
340 time64_t tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer()
341 (xp->curlft.use_time ? : xp->curlft.add_time) - now; in xfrm_policy_timer()
[all …]
Dxfrm_state.c2161 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify() argument
2168 km->notify_policy(xp, dir, c); in km_policy_notify()
/net/netfilter/
Dx_tables.c647 struct xt_af *xp = &xt[af]; in xt_compat_add_offset() local
651 if (WARN_ON(!xp->compat_tab)) in xt_compat_add_offset()
654 if (xp->cur >= xp->number) in xt_compat_add_offset()
657 if (xp->cur) in xt_compat_add_offset()
658 delta += xp->compat_tab[xp->cur - 1].delta; in xt_compat_add_offset()
659 xp->compat_tab[xp->cur].offset = offset; in xt_compat_add_offset()
660 xp->compat_tab[xp->cur].delta = delta; in xt_compat_add_offset()
661 xp->cur++; in xt_compat_add_offset()
/net/sunrpc/
Dxprtsock.c1411 __be32 *xp; in xs_udp_data_read_skb() local
1420 xp = skb_header_pointer(skb, 0, sizeof(_xid), &_xid); in xs_udp_data_read_skb()
1421 if (xp == NULL) in xs_udp_data_read_skb()
1426 rovr = xprt_lookup_rqst(xprt, *xp); in xs_udp_data_read_skb()