Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 34) sorted by relevance

12

/net/ipv4/
Dipcomp.c66 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create()
69 t->props.family = AF_INET; in ipcomp_tunnel_create()
70 t->props.mode = x->props.mode; in ipcomp_tunnel_create()
71 t->props.saddr.a4 = x->props.saddr.a4; in ipcomp_tunnel_create()
72 t->props.flags = x->props.flags; in ipcomp_tunnel_create()
73 t->props.extra_flags = x->props.extra_flags; in ipcomp_tunnel_create()
102 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); in ipcomp_tunnel_attach()
122 x->props.header_len = 0; in ipcomp4_init_state()
123 switch (x->props.mode) { in ipcomp4_init_state()
127 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state()
[all …]
Desp4.c105 if (x->props.flags & XFRM_STATE_ESN) in esp_ssg_unref()
183 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_output_set_extra()
383 if (x->props.flags & XFRM_STATE_ESN) { in esp_output_tail()
445 if ((x->props.flags & XFRM_STATE_ESN)) in esp_output_tail()
469 if ((x->props.flags & XFRM_STATE_ESN)) in esp_output_tail()
612 if (iph->saddr != x->props.saddr.a4 || in esp_input_done2()
635 if (x->props.mode == XFRM_MODE_TRANSPORT) in esp_input_done2()
640 if (x->props.mode == XFRM_MODE_TUNNEL) in esp_input_done2()
676 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_input_set_header()
722 if (x->props.flags & XFRM_STATE_ESN) { in esp_input()
[all …]
Dah4.c176 if (x->props.flags & XFRM_STATE_ESN) { in ah_output()
215 if (x->props.flags & XFRM_STATE_ALIGN4) in ah_output()
229 if (x->props.flags & XFRM_STATE_ESN) { in ah_output()
294 if (x->props.mode == XFRM_MODE_TUNNEL) in ah_input_done()
334 if (x->props.flags & XFRM_STATE_ALIGN4) { in ah_input()
363 if (x->props.flags & XFRM_STATE_ESN) { in ah_input()
404 if (x->props.flags & XFRM_STATE_ESN) { in ah_input()
429 if (x->props.mode == XFRM_MODE_TUNNEL) in ah_input()
519 if (x->props.flags & XFRM_STATE_ALIGN4) in ah_init_state()
520 x->props.header_len = XFRM_ALIGN4(sizeof(struct ip_auth_hdr) + in ah_init_state()
[all …]
Dxfrm4_tunnel.c29 if (x->props.mode != XFRM_MODE_TUNNEL) in ipip_init_state()
35 x->props.header_len = sizeof(struct iphdr); in ipip_init_state()
Dip_vti.c186 if (!x || x->props.mode != XFRM_MODE_TUNNEL || in vti_state_check()
187 x->props.family != AF_INET) in vti_state_check()
191 return xfrm_addr_equal(saddr, &x->props.saddr, AF_INET); in vti_state_check()
/net/xfrm/
Dxfrm_state.c94 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
95 x->props.reqid, x->props.family, in xfrm_hash_transfer()
99 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
100 x->props.family, in xfrm_hash_transfer()
106 x->id.proto, x->props.family, in xfrm_hash_transfer()
909 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate()
910 if (x->props.saddr.a4 == 0) in xfrm_init_tempstate()
911 x->props.saddr.a4 = saddr->a4; in xfrm_init_tempstate()
916 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
917 if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) in xfrm_init_tempstate()
[all …]
Dxfrm_output.c65 skb_set_network_header(skb, -x->props.header_len); in xfrm4_transport_output()
93 (prevhdr - x->props.header_len) - skb->data); in xfrm6_transport_output()
94 skb_set_network_header(skb, -x->props.header_len); in xfrm6_transport_output()
123 (prevhdr - x->props.header_len) - skb->data); in xfrm6_ro_output()
124 skb_set_network_header(skb, -x->props.header_len); in xfrm6_ro_output()
153 skb_set_network_header(skb, -x->props.header_len - hdrlen + in xfrm4_beet_encap_add()
181 top_iph->saddr = x->props.saddr.a4; in xfrm4_beet_encap_add()
200 skb_set_network_header(skb, -x->props.header_len); in xfrm4_tunnel_encap_add()
212 if (x->props.extra_flags & XFRM_SA_XFLAG_DONT_ENCAP_DSCP) in xfrm4_tunnel_encap_add()
219 flags = x->props.flags; in xfrm4_tunnel_encap_add()
[all …]
Dxfrm_device.c29 skb->transport_header -= x->props.header_len; in __xfrm_transport_prep()
31 pskb_pull(skb, skb_transport_offset(skb) + x->props.header_len); in __xfrm_transport_prep()
44 pskb_pull(skb, skb->mac_len + x->props.header_len); in __xfrm_mode_tunnel_prep()
215 saddr = &x->props.saddr; in xfrm_dev_state_add()
219 daddr = &x->props.saddr; in xfrm_dev_state_add()
223 x->props.family, in xfrm_dev_state_add()
240 if (x->props.flags & XFRM_STATE_ESN && in xfrm_dev_state_add()
Dxfrm_user.c289 static int attach_one_algo(struct xfrm_algo **algpp, u8 *props, in attach_one_algo() argument
304 *props = algo->desc.sadb_alg_id; in attach_one_algo()
328 x->props.ealgo = algo->desc.sadb_alg_id; in attach_crypt()
340 static int attach_auth(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth() argument
355 *props = algo->desc.sadb_alg_id; in attach_auth()
370 static int attach_auth_trunc(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth_trunc() argument
386 *props = algo->desc.sadb_alg_id; in attach_auth_trunc()
413 x->props.ealgo = algo->desc.sadb_alg_id; in attach_aead()
499 x->props.mode = p->mode; in copy_from_user_state()
500 x->props.replay_window = min_t(unsigned int, p->replay_window, in copy_from_user_state()
[all …]
Dxfrm_replay.c17 if (!(x->props.flags & XFRM_STATE_ESN)) in xfrm_replay_seqhi()
112 if (!x->props.replay_window) in xfrm_replay_check()
122 if (diff >= x->props.replay_window) { in xfrm_replay_check()
143 if (!x->props.replay_window) in xfrm_replay_advance()
148 if (diff < x->props.replay_window) in xfrm_replay_advance()
737 if (x->props.flags & XFRM_STATE_ESN) { in xfrm_init_replay()
Dxfrm_input.c239 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in xfrm4_remove_tunnel_encap()
241 if (!(x->props.flags & XFRM_STATE_NOECN)) in xfrm4_remove_tunnel_encap()
276 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in xfrm6_remove_tunnel_encap()
278 if (!(x->props.flags & XFRM_STATE_NOECN)) in xfrm6_remove_tunnel_encap()
Dxfrm_policy.c283 xfrm_address_t *saddr = &x->props.saddr; in xfrm_dst_lookup()
2600 if (xfrm[i]->props.mode != XFRM_MODE_TRANSPORT) { in xfrm_bundle_create()
2603 if (xfrm[i]->props.smark.v || xfrm[i]->props.smark.m) in xfrm_bundle_create()
2606 family = xfrm[i]->props.family; in xfrm_bundle_create()
2634 header_len += xfrm[i]->props.header_len; in xfrm_bundle_create()
2636 nfheader_len += xfrm[i]->props.header_len; in xfrm_bundle_create()
2637 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create()
2659 header_len -= xdst_prev->u.dst.xfrm->props.header_len; in xfrm_bundle_create()
2660 trailer_len -= xdst_prev->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create()
3154 dst->xfrm->props.mode == XFRM_MODE_TUNNEL) in xfrm_lookup_with_ifid()
[all …]
/net/ipv6/
Dipcomp6.c84 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_create()
90 t->props.family = AF_INET6; in ipcomp6_tunnel_create()
91 t->props.mode = x->props.mode; in ipcomp6_tunnel_create()
92 memcpy(t->props.saddr.a6, x->props.saddr.a6, sizeof(struct in6_addr)); in ipcomp6_tunnel_create()
118 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach()
142 x->props.header_len = 0; in ipcomp6_init_state()
143 switch (x->props.mode) { in ipcomp6_init_state()
147 x->props.header_len += sizeof(struct ipv6hdr); in ipcomp6_init_state()
157 if (x->props.mode == XFRM_MODE_TUNNEL) { in ipcomp6_init_state()
Dmip6.c169 WARN_ON(len != x->props.header_len); in mip6_destopt_output()
170 dstopt->hdrlen = (x->props.header_len >> 3) - 1; in mip6_destopt_output()
304 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { in mip6_destopt_init_state()
306 __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); in mip6_destopt_init_state()
310 x->props.header_len = sizeof(struct ipv6_destopt_hdr) + in mip6_destopt_init_state()
313 WARN_ON(x->props.header_len != 24); in mip6_destopt_init_state()
371 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; in mip6_rthdr_output()
439 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { in mip6_rthdr_init_state()
441 __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); in mip6_rthdr_init_state()
445 x->props.header_len = sizeof(struct rt2_hdr); in mip6_rthdr_init_state()
Desp6.c113 if (x->props.flags & XFRM_STATE_ESN) in esp_ssg_unref()
186 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_output_set_esn()
325 if (x->props.flags & XFRM_STATE_ESN) { in esp6_output_tail()
386 if ((x->props.flags & XFRM_STATE_ESN)) in esp6_output_tail()
410 if ((x->props.flags & XFRM_STATE_ESN)) in esp6_output_tail()
540 if (x->props.mode == XFRM_MODE_TUNNEL) in esp6_input_done2()
575 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_input_set_header()
621 if (x->props.flags & XFRM_STATE_ESN) { in esp6_input()
668 if ((x->props.flags & XFRM_STATE_ESN)) in esp6_input()
680 if ((x->props.flags & XFRM_STATE_ESN)) in esp6_input()
[all …]
Dah6.c356 if (x->props.flags & XFRM_STATE_ESN) { in ah6_output()
420 if (x->props.flags & XFRM_STATE_ESN) { in ah6_output()
485 if (x->props.mode == XFRM_MODE_TUNNEL) in ah6_input_done()
568 if (x->props.flags & XFRM_STATE_ESN) { in ah6_input()
606 if (x->props.flags & XFRM_STATE_ESN) { in ah6_input()
633 if (x->props.mode == XFRM_MODE_TUNNEL) in ah6_input()
717 x->props.header_len = XFRM_ALIGN8(sizeof(struct ip_auth_hdr) + in ah6_init_state()
719 switch (x->props.mode) { in ah6_init_state()
724 x->props.header_len += sizeof(struct ipv6hdr); in ah6_init_state()
Dxfrm6_tunnel.c275 if (x->props.mode != XFRM_MODE_TUNNEL) in xfrm6_tunnel_init_state()
281 x->props.header_len = sizeof(struct ipv6hdr); in xfrm6_tunnel_init_state()
290 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr); in xfrm6_tunnel_destroy()
Dxfrm6_input.c129 if ((!i || (x->props.flags & XFRM_STATE_WILDRECV)) && in xfrm6_input_addr()
Dip6_vti.c420 if (!x || x->props.mode != XFRM_MODE_TUNNEL || in vti6_state_check()
421 x->props.family != AF_INET6) in vti6_state_check()
425 return xfrm_addr_equal(saddr, &x->props.saddr, AF_INET6); in vti6_state_check()
493 if (!ip6_tnl_xmit_ctl(t, (const struct in6_addr *)&x->props.saddr, in vti6_xmit()
/net/tipc/
Dbearer.c971 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in __tipc_nl_bearer_enable() local
974 props); in __tipc_nl_bearer_enable()
978 if (props[TIPC_NLA_PROP_PRIO]) in __tipc_nl_bearer_enable()
979 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in __tipc_nl_bearer_enable()
1075 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in __tipc_nl_bearer_set() local
1078 props); in __tipc_nl_bearer_set()
1082 if (props[TIPC_NLA_PROP_TOL]) { in __tipc_nl_bearer_set()
1083 b->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in __tipc_nl_bearer_set()
1086 if (props[TIPC_NLA_PROP_PRIO]) in __tipc_nl_bearer_set()
1087 b->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in __tipc_nl_bearer_set()
[all …]
Dbcast.c644 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in tipc_nl_bc_link_set() local
649 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_LINK_PROP], props); in tipc_nl_bc_link_set()
653 if (!props[TIPC_NLA_PROP_WIN] && in tipc_nl_bc_link_set()
654 !props[TIPC_NLA_PROP_BROADCAST] && in tipc_nl_bc_link_set()
655 !props[TIPC_NLA_PROP_BROADCAST_RATIO]) { in tipc_nl_bc_link_set()
659 if (props[TIPC_NLA_PROP_BROADCAST]) { in tipc_nl_bc_link_set()
660 bc_mode = nla_get_u32(props[TIPC_NLA_PROP_BROADCAST]); in tipc_nl_bc_link_set()
664 if (!err && props[TIPC_NLA_PROP_BROADCAST_RATIO]) { in tipc_nl_bc_link_set()
665 bc_ratio = nla_get_u32(props[TIPC_NLA_PROP_BROADCAST_RATIO]); in tipc_nl_bc_link_set()
669 if (!err && props[TIPC_NLA_PROP_WIN]) { in tipc_nl_bc_link_set()
[all …]
Dnode.c2246 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in tipc_nl_node_set_link() local
2249 props); in tipc_nl_node_set_link()
2255 if (props[TIPC_NLA_PROP_TOL]) { in tipc_nl_node_set_link()
2258 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in tipc_nl_node_set_link()
2261 if (props[TIPC_NLA_PROP_PRIO]) { in tipc_nl_node_set_link()
2264 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in tipc_nl_node_set_link()
2267 if (props[TIPC_NLA_PROP_WIN]) { in tipc_nl_node_set_link()
2270 win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); in tipc_nl_node_set_link()
/net/netfilter/
Dnft_xfrm.c123 state->props.family, in nft_xfrm_state_get_key()
124 state->props.mode)) { in nft_xfrm_state_get_key()
141 *dest = state->props.saddr.a4; in nft_xfrm_state_get_key()
144 memcpy(dest, &state->props.saddr.in6, sizeof(struct in6_addr)); in nft_xfrm_state_get_key()
147 *dest = state->props.reqid; in nft_xfrm_state_get_key()
Dxt_policy.c43 return MATCH_ADDR(saddr, smask, &x->props.saddr) && in match_xfrm_state()
46 MATCH(mode, x->props.mode) && in match_xfrm_state()
48 MATCH(reqid, x->props.reqid); in match_xfrm_state()
/net/key/
Daf_key.c785 sockaddr_size = pfkey_sockaddr_size(x->props.family); in __pfkey_xfrm_state2msg()
805 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family)) in __pfkey_xfrm_state2msg()
843 sa->sadb_sa_replay = x->props.replay_window; in __pfkey_xfrm_state2msg()
877 if (x->props.flags & XFRM_STATE_NOECN) in __pfkey_xfrm_state2msg()
879 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in __pfkey_xfrm_state2msg()
881 if (x->props.flags & XFRM_STATE_NOPMTUDISC) in __pfkey_xfrm_state2msg()
928 pfkey_sockaddr_fill(&x->props.saddr, 0, in __pfkey_xfrm_state2msg()
930 x->props.family); in __pfkey_xfrm_state2msg()
945 x->props.family); in __pfkey_xfrm_state2msg()
948 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, in __pfkey_xfrm_state2msg()
[all …]

12