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()
103 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); in ipcomp_tunnel_attach()
123 x->props.header_len = 0; in ipcomp4_init_state()
124 switch (x->props.mode) { in ipcomp4_init_state()
128 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state()
[all …]
Desp4.c107 if (x->props.flags & XFRM_STATE_ESN) in esp_ssg_unref()
166 dport, x->props.saddr.a4, sport, 0); in esp_find_tcp_sk()
315 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_output_set_extra()
554 if (x->props.flags & XFRM_STATE_ESN) { in esp_output_tail()
616 if ((x->props.flags & XFRM_STATE_ESN)) in esp_output_tail()
640 if ((x->props.flags & XFRM_STATE_ESN)) in esp_output_tail()
802 if (iph->saddr != x->props.saddr.a4 || in esp_input_done2()
825 if (x->props.mode == XFRM_MODE_TRANSPORT) in esp_input_done2()
830 if (x->props.mode == XFRM_MODE_TUNNEL) in esp_input_done2()
866 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_input_set_header()
[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()
Desp4_offload.c125 skb->transport_header += x->props.header_len; in xfrm4_transport_gso_segment()
142 skb->transport_header += x->props.header_len; in xfrm4_beet_gso_segment()
Dip_vti.c153 if (!x || x->props.mode != XFRM_MODE_TUNNEL || in vti_state_check()
154 x->props.family != AF_INET) in vti_state_check()
158 return xfrm_addr_equal(saddr, &x->props.saddr, AF_INET); in vti_state_check()
/net/xfrm/
Dxfrm_state.c93 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
94 x->props.reqid, x->props.family, in xfrm_hash_transfer()
98 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
99 x->props.family, in xfrm_hash_transfer()
105 x->id.proto, x->props.family, in xfrm_hash_transfer()
911 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate()
912 if (x->props.saddr.a4 == 0) in xfrm_init_tempstate()
913 x->props.saddr.a4 = saddr->a4; in xfrm_init_tempstate()
918 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
919 if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) in xfrm_init_tempstate()
[all …]
Dxfrm_output.c71 skb_set_network_header(skb, -x->props.header_len); in xfrm4_transport_output()
99 (prevhdr - x->props.header_len) - skb->data); in xfrm6_transport_output()
100 skb_set_network_header(skb, -x->props.header_len); in xfrm6_transport_output()
129 (prevhdr - x->props.header_len) - skb->data); in xfrm6_ro_output()
130 skb_set_network_header(skb, -x->props.header_len); in xfrm6_ro_output()
159 skb_set_network_header(skb, -x->props.header_len - hdrlen + in xfrm4_beet_encap_add()
187 top_iph->saddr = x->props.saddr.a4; in xfrm4_beet_encap_add()
206 skb_set_network_header(skb, -x->props.header_len); in xfrm4_tunnel_encap_add()
218 if (x->props.extra_flags & XFRM_SA_XFLAG_DONT_ENCAP_DSCP) in xfrm4_tunnel_encap_add()
225 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()
63 pskb_pull(skb, skb->mac_len + hsize + (x->props.header_len - phlen)); in __xfrm_mode_beet_prep()
245 saddr = &x->props.saddr; in xfrm_dev_state_add()
249 daddr = &x->props.saddr; in xfrm_dev_state_add()
253 x->props.family, in xfrm_dev_state_add()
270 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()
93 !(x->props.extra_flags & XFRM_SA_XFLAG_OSEQ_MAY_WRAP)) { in xfrm_replay_overflow()
113 if (!x->props.replay_window) in xfrm_replay_check()
123 if (diff >= x->props.replay_window) { in xfrm_replay_check()
144 if (!x->props.replay_window) in xfrm_replay_advance()
149 if (diff < x->props.replay_window) in xfrm_replay_advance()
173 !(x->props.extra_flags & XFRM_SA_XFLAG_OSEQ_MAY_WRAP)) { in xfrm_replay_overflow_bmp()
578 !(x->props.extra_flags & XFRM_SA_XFLAG_OSEQ_MAY_WRAP)) { in xfrm_replay_overflow_offload()
618 !(x->props.extra_flags & XFRM_SA_XFLAG_OSEQ_MAY_WRAP)) { in xfrm_replay_overflow_offload_bmp()
741 if (x->props.flags & XFRM_STATE_ESN) { in xfrm_init_replay()
Dxfrm_input.c243 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in xfrm4_remove_tunnel_encap()
245 if (!(x->props.flags & XFRM_STATE_NOECN)) in xfrm4_remove_tunnel_encap()
280 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in xfrm6_remove_tunnel_encap()
282 if (!(x->props.flags & XFRM_STATE_NOECN)) in xfrm6_remove_tunnel_encap()
Dxfrm_policy.c286 xfrm_address_t *saddr = &x->props.saddr; in xfrm_dst_lookup()
2603 if (xfrm[i]->props.mode != XFRM_MODE_TRANSPORT) { in xfrm_bundle_create()
2606 if (xfrm[i]->props.smark.v || xfrm[i]->props.smark.m) in xfrm_bundle_create()
2609 family = xfrm[i]->props.family; in xfrm_bundle_create()
2636 header_len += xfrm[i]->props.header_len; in xfrm_bundle_create()
2638 nfheader_len += xfrm[i]->props.header_len; in xfrm_bundle_create()
2639 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create()
2661 header_len -= xdst_prev->u.dst.xfrm->props.header_len; in xfrm_bundle_create()
2662 trailer_len -= xdst_prev->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create()
3167 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()
119 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach()
143 x->props.header_len = 0; in ipcomp6_init_state()
144 switch (x->props.mode) { in ipcomp6_init_state()
148 x->props.header_len += sizeof(struct ipv6hdr); in ipcomp6_init_state()
158 if (x->props.mode == XFRM_MODE_TUNNEL) { in ipcomp6_init_state()
Desp6.c124 if (x->props.flags & XFRM_STATE_ESN) in esp_ssg_unref()
182 dport, &x->props.saddr.in6, ntohs(sport), 0, 0); in esp6_find_tcp_sk()
350 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_output_set_esn()
588 if (x->props.flags & XFRM_STATE_ESN) { in esp6_output_tail()
650 if ((x->props.flags & XFRM_STATE_ESN)) in esp6_output_tail()
674 if ((x->props.flags & XFRM_STATE_ESN)) in esp6_output_tail()
846 if (!ipv6_addr_equal(&ip6h->saddr, &x->props.saddr.in6) || in esp6_input_done2()
869 if (x->props.mode == XFRM_MODE_TRANSPORT) in esp6_input_done2()
876 if (x->props.mode == XFRM_MODE_TUNNEL) in esp6_input_done2()
911 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_input_set_header()
[all …]
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()
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()
Desp6_offload.c159 skb->transport_header += x->props.header_len; in xfrm6_transport_gso_segment()
176 skb->transport_header += x->props.header_len; in xfrm6_beet_gso_segment()
Dxfrm6_output.c82 if (x->props.mode != XFRM_MODE_TUNNEL) in __xfrm6_output()
/net/tipc/
Dbearer.c1005 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in __tipc_nl_bearer_enable() local
1008 props); in __tipc_nl_bearer_enable()
1012 if (props[TIPC_NLA_PROP_PRIO]) in __tipc_nl_bearer_enable()
1013 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in __tipc_nl_bearer_enable()
1109 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in __tipc_nl_bearer_set() local
1112 props); in __tipc_nl_bearer_set()
1116 if (props[TIPC_NLA_PROP_TOL]) { in __tipc_nl_bearer_set()
1117 b->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in __tipc_nl_bearer_set()
1120 if (props[TIPC_NLA_PROP_PRIO]) in __tipc_nl_bearer_set()
1121 b->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in __tipc_nl_bearer_set()
[all …]
Dbcast.c656 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in tipc_nl_bc_link_set() local
661 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_LINK_PROP], props); in tipc_nl_bc_link_set()
665 if (!props[TIPC_NLA_PROP_WIN] && in tipc_nl_bc_link_set()
666 !props[TIPC_NLA_PROP_BROADCAST] && in tipc_nl_bc_link_set()
667 !props[TIPC_NLA_PROP_BROADCAST_RATIO]) { in tipc_nl_bc_link_set()
671 if (props[TIPC_NLA_PROP_BROADCAST]) { in tipc_nl_bc_link_set()
672 bc_mode = nla_get_u32(props[TIPC_NLA_PROP_BROADCAST]); in tipc_nl_bc_link_set()
676 if (!err && props[TIPC_NLA_PROP_BROADCAST_RATIO]) { in tipc_nl_bc_link_set()
677 bc_ratio = nla_get_u32(props[TIPC_NLA_PROP_BROADCAST_RATIO]); in tipc_nl_bc_link_set()
681 if (!err && props[TIPC_NLA_PROP_WIN]) { in tipc_nl_bc_link_set()
[all …]
/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