Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 24 of 24) sorted by relevance

/net/ipv4/
Dxfrm4_state.c26 __xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_init_tempsel() argument
30 sel->daddr.a4 = fl4->daddr; in __xfrm4_init_tempsel()
31 sel->saddr.a4 = fl4->saddr; in __xfrm4_init_tempsel()
32 sel->dport = xfrm_flowi_dport(fl, &fl4->uli); in __xfrm4_init_tempsel()
33 sel->dport_mask = htons(0xffff); in __xfrm4_init_tempsel()
34 sel->sport = xfrm_flowi_sport(fl, &fl4->uli); in __xfrm4_init_tempsel()
35 sel->sport_mask = htons(0xffff); in __xfrm4_init_tempsel()
36 sel->family = AF_INET; in __xfrm4_init_tempsel()
37 sel->prefixlen_d = 32; in __xfrm4_init_tempsel()
38 sel->prefixlen_s = 32; in __xfrm4_init_tempsel()
[all …]
Dxfrm4_mode_beet.c52 if (x->sel.family != AF_INET6) in xfrm4_beet_output()
120 iph->daddr = x->sel.daddr.a4; in xfrm4_beet_input()
121 iph->saddr = x->sel.saddr.a4; in xfrm4_beet_input()
Dipcomp.c72 memcpy(&t->sel, &x->sel, sizeof(t->sel)); in ipcomp_tunnel_create()
Dip_vti.c147 if (x->sel.family == AF_UNSPEC) { in vti_rcv_cb()
Desp4.c987 else if (x->props.mode == XFRM_MODE_BEET && x->sel.family != AF_INET6) in esp_init_state()
/net/ipv6/
Dxfrm6_state.c25 __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_init_tempsel() argument
31 *(struct in6_addr *)&sel->daddr = fl6->daddr; in __xfrm6_init_tempsel()
32 *(struct in6_addr *)&sel->saddr = fl6->saddr; in __xfrm6_init_tempsel()
33 sel->dport = xfrm_flowi_dport(fl, &fl6->uli); in __xfrm6_init_tempsel()
34 sel->dport_mask = htons(0xffff); in __xfrm6_init_tempsel()
35 sel->sport = xfrm_flowi_sport(fl, &fl6->uli); in __xfrm6_init_tempsel()
36 sel->sport_mask = htons(0xffff); in __xfrm6_init_tempsel()
37 sel->family = AF_INET6; in __xfrm6_init_tempsel()
38 sel->prefixlen_d = 128; in __xfrm6_init_tempsel()
39 sel->prefixlen_s = 128; in __xfrm6_init_tempsel()
[all …]
Dmip6.c215 struct xfrm_selector sel; in mip6_destopt_reject() local
238 memset(&sel, 0, sizeof(sel)); in mip6_destopt_reject()
239 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject()
240 sizeof(sel.daddr)); in mip6_destopt_reject()
241 sel.prefixlen_d = 128; in mip6_destopt_reject()
242 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in mip6_destopt_reject()
243 sizeof(sel.saddr)); in mip6_destopt_reject()
244 sel.prefixlen_s = 128; in mip6_destopt_reject()
245 sel.family = AF_INET6; in mip6_destopt_reject()
246 sel.proto = fl6->flowi6_proto; in mip6_destopt_reject()
[all …]
Dxfrm6_mode_beet.c52 if (x->sel.family != AF_INET6) in xfrm6_beet_output()
98 ip6h->daddr = x->sel.daddr.in6; in xfrm6_beet_input()
99 ip6h->saddr = x->sel.saddr.in6; in xfrm6_beet_input()
Dipcomp6.c101 memcpy(&t->sel, &x->sel, sizeof(t->sel)); in ipcomp6_tunnel_create()
Dipv6_sockglue.c62 int ip6_ra_control(struct sock *sk, int sel) in ip6_ra_control() argument
70 new_ra = (sel >= 0) ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; in ip6_ra_control()
75 if (sel >= 0) { in ip6_ra_control()
94 new_ra->sel = sel; in ip6_ra_control()
Dip6_output.c292 static int ip6_call_ra_chain(struct sk_buff *skb, int sel) in ip6_call_ra_chain() argument
300 if (sk && ra->sel == sel && in ip6_call_ra_chain()
Desp6.c891 if (x->sel.family != AF_INET6) in esp6_init_state()
Dip6_vti.c366 if (x->sel.family == AF_UNSPEC) { in vti6_rcv_cb()
/net/sched/
Dcls_u32.c78 struct tc_u32_sel sel; member
105 const struct tc_u32_sel *sel, in u32_hash_fold() argument
108 unsigned int h = ntohl(key & sel->hmask) >> fshift; in u32_hash_fold()
126 int sel = 0; in u32_classify() local
133 n = rcu_dereference_bh(ht->ht[sel]); in u32_classify()
137 struct tc_u32_key *key = n->sel.keys; in u32_classify()
158 for (i = n->sel.nkeys; i > 0; i--, key++) { in u32_classify()
181 if (n->sel.flags & TC_U32_TERMINAL) { in u32_classify()
213 sel = 0; in u32_classify()
217 data = skb_header_pointer(skb, off + n->sel.hoff, 4, in u32_classify()
[all …]
/net/xfrm/
Dxfrm_hash.h140 static inline unsigned int __sel_hash(const struct xfrm_selector *sel, in __sel_hash() argument
144 const xfrm_address_t *daddr = &sel->daddr; in __sel_hash()
145 const xfrm_address_t *saddr = &sel->saddr; in __sel_hash()
150 if (sel->prefixlen_d < dbits || in __sel_hash()
151 sel->prefixlen_s < sbits) in __sel_hash()
158 if (sel->prefixlen_d < dbits || in __sel_hash()
159 sel->prefixlen_s < sbits) in __sel_hash()
Dxfrm_policy.c72 __xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_selector_match() argument
76 return addr4_match(fl4->daddr, sel->daddr.a4, sel->prefixlen_d) && in __xfrm4_selector_match()
77 addr4_match(fl4->saddr, sel->saddr.a4, sel->prefixlen_s) && in __xfrm4_selector_match()
78 !((xfrm_flowi_dport(fl, &fl4->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm4_selector_match()
79 !((xfrm_flowi_sport(fl, &fl4->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm4_selector_match()
80 (fl4->flowi4_proto == sel->proto || !sel->proto) && in __xfrm4_selector_match()
81 (fl4->flowi4_oif == sel->ifindex || !sel->ifindex); in __xfrm4_selector_match()
85 __xfrm6_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_selector_match() argument
89 return addr_match(&fl6->daddr, &sel->daddr, sel->prefixlen_d) && in __xfrm6_selector_match()
90 addr_match(&fl6->saddr, &sel->saddr, sel->prefixlen_s) && in __xfrm6_selector_match()
[all …]
Dxfrm_user.c169 switch (p->sel.family) { in verify_newsa_info()
174 if (p->sel.prefixlen_d > 32 || p->sel.prefixlen_s > 32) in verify_newsa_info()
181 if (p->sel.prefixlen_d > 128 || p->sel.prefixlen_s > 128) in verify_newsa_info()
496 memcpy(&x->sel, &p->sel, sizeof(x->sel)); in copy_from_user_state()
506 if (!x->sel.family && !(p->flags & XFRM_STATE_AF_UNSPEC)) in copy_from_user_state()
507 x->sel.family = p->family; in copy_from_user_state()
786 memcpy(&p->sel, &x->sel, sizeof(p->sel)); in copy_to_user_state()
1417 switch (p->sel.family) { in verify_newpolicy_info()
1419 if (p->sel.prefixlen_d > 32 || p->sel.prefixlen_s > 32) in verify_newpolicy_info()
1426 if (p->sel.prefixlen_d > 128 || p->sel.prefixlen_s > 128) in verify_newpolicy_info()
[all …]
Dxfrm_state.c810 afinfo->init_tempsel(&x->sel, fl); in xfrm_init_tempstate()
911 if ((x->sel.family && in xfrm_state_look_at()
912 !xfrm_selector_match(&x->sel, fl, x->sel.family)) || in xfrm_state_look_at()
925 if (xfrm_selector_match(&x->sel, fl, x->sel.family) && in xfrm_state_look_at()
1229 x->sel.daddr.a4 = daddr->a4; in __find_acq_core()
1230 x->sel.saddr.a4 = saddr->a4; in __find_acq_core()
1231 x->sel.prefixlen_d = 32; in __find_acq_core()
1232 x->sel.prefixlen_s = 32; in __find_acq_core()
1238 x->sel.daddr.in6 = daddr->in6; in __find_acq_core()
1239 x->sel.saddr.in6 = saddr->in6; in __find_acq_core()
[all …]
Dxfrm_input.c211 if (x->sel.family == AF_UNSPEC) { in xfrm_prepare_input()
439 if (x->sel.family == AF_UNSPEC) { in xfrm_input()
Dxfrm_output.c267 if (x->sel.family == AF_UNSPEC) in xfrm_inner_extract_output()
Dxfrm_interface.c275 if (x->sel.family == AF_UNSPEC) { in xfrmi_rcv_cb()
/net/key/
Daf_key.c809 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family)) in __pfkey_xfrm_state2msg()
954 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, in __pfkey_xfrm_state2msg()
963 pfkey_proto_from_xfrm(x->sel.proto); in __pfkey_xfrm_state2msg()
964 addr->sadb_address_prefixlen = x->sel.prefixlen_s; in __pfkey_xfrm_state2msg()
967 pfkey_sockaddr_fill(&x->sel.saddr, x->sel.sport, in __pfkey_xfrm_state2msg()
1263 x->sel.family = pfkey_sadb_addr2xfrm_addr(addr, &x->sel.saddr); in pfkey_msg2xfrm_state()
1264 x->sel.prefixlen_s = addr->sadb_address_prefixlen; in pfkey_msg2xfrm_state()
1267 if (!x->sel.family) in pfkey_msg2xfrm_state()
1268 x->sel.family = x->props.family; in pfkey_msg2xfrm_state()
2362 struct xfrm_selector sel; in pfkey_spddelete() local
[all …]
/net/tipc/
Dnode.h78 int tipc_node_get_mtu(struct net *net, u32 addr, u32 sel);
Dnode.c169 static struct tipc_link *node_active_link(struct tipc_node *n, int sel) in node_active_link() argument
171 int bearer_id = n->active_links[sel & 1]; in node_active_link()
179 int tipc_node_get_mtu(struct net *net, u32 addr, u32 sel) in tipc_node_get_mtu() argument
189 bearer_id = n->active_links[sel & 1]; in tipc_node_get_mtu()