Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 154) sorted by relevance

1234567

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup_kern.c62 struct bpf_sock_tuple *tuple; in bpf_sk_lookup_test0() local
70 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in bpf_sk_lookup_test0()
71 if (!tuple || tuple + sizeof *tuple > data_end) in bpf_sk_lookup_test0()
74 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in bpf_sk_lookup_test0()
75 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test0()
85 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_test1() local
88 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test1()
97 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_uaf() local
101 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_uaf()
112 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_modptr() local
[all …]
Dconnect6_prog.c32 struct bpf_sock_tuple tuple = {}; in connect_v6_prog() local
37 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr)); in connect_v6_prog()
38 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog()
40 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog()
41 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog()
42 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog()
43 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog()
45 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog()
50 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog()
53 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog()
[all …]
Dtest_sk_assign.c91 handle_udp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_udp() argument
100 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp()
101 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_udp()
104 sk = bpf_sk_lookup_udp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_udp()
108 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_udp()
123 handle_tcp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_tcp() argument
132 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp()
133 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_tcp()
136 sk = bpf_skc_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_tcp()
143 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_tcp()
[all …]
Dcgroup_skb_sk_lookup_kern.c30 static inline void set_tuple(struct bpf_sock_tuple *tuple, in set_tuple() argument
34 set_ip(tuple->ipv6.saddr, &ip6h->daddr); in set_tuple()
35 set_ip(tuple->ipv6.daddr, &ip6h->saddr); in set_tuple()
36 tuple->ipv6.sport = tcph->dest; in set_tuple()
37 tuple->ipv6.dport = tcph->source; in set_tuple()
45 struct bpf_sock_tuple tuple; in is_allowed_peer_cg() local
46 size_t tuple_len = sizeof(tuple.ipv6); in is_allowed_peer_cg()
49 set_tuple(&tuple, ip6h, tcph); in is_allowed_peer_cg()
51 peer_sk = bpf_sk_lookup_tcp(skb, &tuple, tuple_len, in is_allowed_peer_cg()
Dconnect4_prog.c150 struct bpf_sock_tuple tuple = {}; in connect_v4_prog() local
154 memset(&tuple.ipv4.saddr, 0, sizeof(tuple.ipv4.saddr)); in connect_v4_prog()
155 memset(&tuple.ipv4.sport, 0, sizeof(tuple.ipv4.sport)); in connect_v4_prog()
157 tuple.ipv4.daddr = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog()
158 tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
173 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog()
176 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog()
182 if (sk->src_ip4 != tuple.ipv4.daddr || in connect_v4_prog()
Dtest_cls_redirect.c611 static INLINING uint64_t fill_tuple(struct bpf_sock_tuple *tuple, void *iph, in fill_tuple() argument
617 tuple->ipv4.daddr = ipv4->daddr; in fill_tuple()
618 tuple->ipv4.saddr = ipv4->saddr; in fill_tuple()
619 tuple->ipv4.sport = sport; in fill_tuple()
620 tuple->ipv4.dport = dport; in fill_tuple()
621 return sizeof(tuple->ipv4); in fill_tuple()
626 memcpy(&tuple->ipv6.daddr, &ipv6->daddr, in fill_tuple()
627 sizeof(tuple->ipv6.daddr)); in fill_tuple()
628 memcpy(&tuple->ipv6.saddr, &ipv6->saddr, in fill_tuple()
629 sizeof(tuple->ipv6.saddr)); in fill_tuple()
[all …]
/kernel/linux/linux-5.10/drivers/pcmcia/
Dcistpl.c447 tuple_t *tuple) in pccard_get_first_tuple() argument
454 tuple->TupleLink = tuple->Flags = 0; in pccard_get_first_tuple()
457 tuple->CISOffset = tuple->LinkOffset = 0; in pccard_get_first_tuple()
458 SPACE(tuple->Flags) = HAS_LINK(tuple->Flags) = 1; in pccard_get_first_tuple()
460 if ((s->functions > 1) && !(tuple->Attributes & TUPLE_RETURN_COMMON)) { in pccard_get_first_tuple()
461 cisdata_t req = tuple->DesiredTuple; in pccard_get_first_tuple()
462 tuple->DesiredTuple = CISTPL_LONGLINK_MFC; in pccard_get_first_tuple()
463 if (pccard_get_next_tuple(s, function, tuple) == 0) { in pccard_get_first_tuple()
464 tuple->DesiredTuple = CISTPL_LINKTARGET; in pccard_get_first_tuple()
465 if (pccard_get_next_tuple(s, function, tuple) != 0) in pccard_get_first_tuple()
[all …]
Dpcmcia_cis.c37 tuple_t tuple; in pccard_read_tuple() local
46 tuple.DesiredTuple = code; in pccard_read_tuple()
47 tuple.Attributes = 0; in pccard_read_tuple()
49 tuple.Attributes = TUPLE_RETURN_COMMON; in pccard_read_tuple()
50 ret = pccard_get_first_tuple(s, function, &tuple); in pccard_read_tuple()
53 tuple.TupleData = buf; in pccard_read_tuple()
54 tuple.TupleOffset = 0; in pccard_read_tuple()
55 tuple.TupleDataMax = 255; in pccard_read_tuple()
56 ret = pccard_get_tuple_data(s, &tuple); in pccard_read_tuple()
59 ret = pcmcia_parse_tuple(&tuple, parse); in pccard_read_tuple()
[all …]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dnf_nat_h323.c105 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr()
118 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr()
123 tuple.dst.u3, in set_sig_addr()
125 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr()
130 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr()
135 tuple.src.u3, in set_sig_addr()
157 addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_ras_addr()
158 port == ct->tuplehash[dir].tuple.src.u.udp.port) { in set_ras_addr()
161 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_ras_addr()
162 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr()
[all …]
/kernel/linux/linux-5.10/drivers/ssb/
Dsdio.c477 struct sdio_func_tuple *tuple; in ssb_sdio_get_invariants() local
484 tuple = bus->host_sdio->tuples; in ssb_sdio_get_invariants()
485 while (tuple) { in ssb_sdio_get_invariants()
486 switch (tuple->code) { in ssb_sdio_get_invariants()
488 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
490 GOTO_ERROR_ON((tuple->size != 7) && in ssb_sdio_get_invariants()
491 (tuple->data[1] != 6), in ssb_sdio_get_invariants()
494 mac = tuple->data + 2; in ssb_sdio_get_invariants()
503 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
505 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
[all …]
Dpcmcia.c597 tuple_t *tuple, in ssb_pcmcia_get_mac() argument
602 if (tuple->TupleData[0] != CISTPL_FUNCE_LAN_NODE_ID) in ssb_pcmcia_get_mac()
604 if (tuple->TupleDataLen != ETH_ALEN + 2) in ssb_pcmcia_get_mac()
606 if (tuple->TupleData[1] != ETH_ALEN) in ssb_pcmcia_get_mac()
608 memcpy(sprom->il0mac, &tuple->TupleData[2], ETH_ALEN); in ssb_pcmcia_get_mac()
613 tuple_t *tuple, in ssb_pcmcia_do_get_invariants() argument
621 GOTO_ERROR_ON(tuple->TupleDataLen < 1, "VEN tpl < 1"); in ssb_pcmcia_do_get_invariants()
622 switch (tuple->TupleData[0]) { in ssb_pcmcia_do_get_invariants()
624 GOTO_ERROR_ON((tuple->TupleDataLen != 5) && in ssb_pcmcia_do_get_invariants()
625 (tuple->TupleDataLen != 7), in ssb_pcmcia_do_get_invariants()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_nat_sip.c107 if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, addr) && in map_addr()
108 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr()
109 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in map_addr()
110 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr()
111 } else if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, addr) && in map_addr()
112 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr()
113 newaddr = ct->tuplehash[!dir].tuple.src.u3; in map_addr()
115 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr()
189 &ct->tuplehash[dir].tuple.src.u3) || in nf_nat_sip()
190 port != ct->tuplehash[dir].tuple.src.u.udp.port) in nf_nat_sip()
[all …]
Dnf_flow_table_ip.c97 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip()
102 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in nf_flow_snat_ip()
122 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v4.s_addr; in nf_flow_dnat_ip()
127 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_v4.s_addr; in nf_flow_dnat_ip()
163 struct flow_offload_tuple *tuple) in nf_flow_tuple_ip() argument
200 tuple->src_v4.s_addr = iph->saddr; in nf_flow_tuple_ip()
201 tuple->dst_v4.s_addr = iph->daddr; in nf_flow_tuple_ip()
202 tuple->src_port = ports->source; in nf_flow_tuple_ip()
203 tuple->dst_port = ports->dest; in nf_flow_tuple_ip()
204 tuple->l3proto = AF_INET; in nf_flow_tuple_ip()
[all …]
Dnf_nat_proto.c41 const struct nf_conntrack_tuple *tuple, in __udp_manip_pkt() argument
48 newport = tuple->src.u.udp.port; in __udp_manip_pkt()
52 newport = tuple->dst.u.udp.port; in __udp_manip_pkt()
56 nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in __udp_manip_pkt()
67 const struct nf_conntrack_tuple *tuple, in udp_manip_pkt() argument
76 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, !!hdr->check); in udp_manip_pkt()
83 const struct nf_conntrack_tuple *tuple, in udplite_manip_pkt() argument
93 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, true); in udplite_manip_pkt()
101 const struct nf_conntrack_tuple *tuple, in sctp_manip_pkt() argument
122 hdr->source = tuple->src.u.sctp.port; in sctp_manip_pkt()
[all …]
Dnf_conntrack_expect.c79 …tic unsigned int nf_ct_expect_dst_hash(const struct net *n, const struct nf_conntrack_tuple *tuple) in nf_ct_expect_dst_hash() argument
87 hash = jhash2(tuple->dst.u3.all, ARRAY_SIZE(tuple->dst.u3.all), in nf_ct_expect_dst_hash()
88 (((tuple->dst.protonum ^ tuple->src.l3num) << 16) | in nf_ct_expect_dst_hash()
89 (__force __u16)tuple->dst.u.all) ^ seed); in nf_ct_expect_dst_hash()
95 nf_ct_exp_equal(const struct nf_conntrack_tuple *tuple, in nf_ct_exp_equal() argument
100 return nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask) && in nf_ct_exp_equal()
119 const struct nf_conntrack_tuple *tuple) in __nf_ct_expect_find() argument
127 h = nf_ct_expect_dst_hash(net, tuple); in __nf_ct_expect_find()
129 if (nf_ct_exp_equal(tuple, i, zone, net)) in __nf_ct_expect_find()
140 const struct nf_conntrack_tuple *tuple) in nf_ct_expect_find_get() argument
[all …]
Dxt_conntrack.c44 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc()
53 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst()
62 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3, in conntrack_mt_replsrc()
71 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3, in conntrack_mt_repldst()
79 const struct nf_conntrack_tuple *tuple; in ct_proto_port_check() local
81 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check()
89 (tuple->src.u.all == info->origsrc_port) ^ in ct_proto_port_check()
94 (tuple->dst.u.all == info->origdst_port) ^ in ct_proto_port_check()
98 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check()
101 (tuple->src.u.all == info->replsrc_port) ^ in ct_proto_port_check()
[all …]
Dnf_nat_core.c61 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session()
94 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv6_decode_session()
190 hash_by_src(const struct net *n, const struct nf_conntrack_tuple *tuple) in hash_by_src() argument
197 hash = jhash2((u32 *)&tuple->src, sizeof(tuple->src) / sizeof(u32), in hash_by_src()
198 tuple->dst.protonum ^ nf_nat_hash_rnd ^ net_hash_mix(n)); in hash_by_src()
205 nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple() argument
216 nf_ct_invert_tuple(&reply, tuple); in nf_nat_used_tuple()
232 static bool l4proto_in_range(const struct nf_conntrack_tuple *tuple, in l4proto_in_range() argument
239 switch (tuple->dst.protonum) { in l4proto_in_range()
242 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range()
[all …]
Dnf_conntrack_proto.c243 struct nf_conntrack_tuple tuple; in getorigdst() local
245 memset(&tuple, 0, sizeof(tuple)); in getorigdst()
248 tuple.src.u3.ip = inet->inet_rcv_saddr; in getorigdst()
249 tuple.src.u.tcp.port = inet->inet_sport; in getorigdst()
250 tuple.dst.u3.ip = inet->inet_daddr; in getorigdst()
251 tuple.dst.u.tcp.port = inet->inet_dport; in getorigdst()
252 tuple.src.l3num = PF_INET; in getorigdst()
253 tuple.dst.protonum = sk->sk_protocol; in getorigdst()
257 if (tuple.dst.protonum != IPPROTO_TCP && in getorigdst()
258 tuple.dst.protonum != IPPROTO_SCTP) { in getorigdst()
[all …]
Dnf_conntrack_proto_icmp.c28 struct net *net, struct nf_conntrack_tuple *tuple) in icmp_pkt_to_tuple() argument
37 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
38 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple()
39 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple()
56 bool nf_conntrack_invert_icmp_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmp_tuple() argument
63 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmp_tuple()
64 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple()
65 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple()
89 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in nf_conntrack_icmp_packet()
90 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in nf_conntrack_icmp_packet()
[all …]
Dnf_conntrack_h323_main.c272 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp()
284 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
285 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
294 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
295 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
298 if (memcmp(&ct->tuplehash[dir].tuple.src.u3, in expect_rtp_rtcp()
299 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
300 sizeof(ct->tuplehash[dir].tuple.src.u3)) && in expect_rtp_rtcp()
311 nf_ct_dump_tuple(&rtp_exp->tuple); in expect_rtp_rtcp()
313 nf_ct_dump_tuple(&rtcp_exp->tuple); in expect_rtp_rtcp()
[all …]
Dnf_conntrack_core.c184 static u32 hash_conntrack_raw(const struct nf_conntrack_tuple *tuple, in hash_conntrack_raw() argument
197 n = (sizeof(tuple->src) + sizeof(tuple->dst.u3)) / sizeof(u32); in hash_conntrack_raw()
198 return jhash2((u32 *)tuple, n, seed ^ in hash_conntrack_raw()
199 (((__force __u16)tuple->dst.u.all << 16) | in hash_conntrack_raw()
200 tuple->dst.protonum)); in hash_conntrack_raw()
209 const struct nf_conntrack_tuple *tuple, in __hash_conntrack() argument
212 return reciprocal_scale(hash_conntrack_raw(tuple, net), size); in __hash_conntrack()
216 const struct nf_conntrack_tuple *tuple) in hash_conntrack() argument
218 return scale_hash(hash_conntrack_raw(tuple, net)); in hash_conntrack()
223 struct nf_conntrack_tuple *tuple) in nf_ct_get_tuple_ports() argument
[all …]
Dnf_conntrack_proto_icmpv6.c34 struct nf_conntrack_tuple *tuple) in icmpv6_pkt_to_tuple() argument
42 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
43 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple()
44 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple()
68 bool nf_conntrack_invert_icmpv6_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmpv6_tuple() argument
75 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmpv6_tuple()
76 tuple->dst.u.icmp.type = invmap[type] - 1; in nf_conntrack_invert_icmpv6_tuple()
77 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmpv6_tuple()
102 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in nf_conntrack_icmpv6_packet()
108 nf_ct_dump_tuple_ipv6(&ct->tuplehash[0].tuple); in nf_conntrack_icmpv6_packet()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c64 struct arfs_tuple tuple; member
440 struct arfs_tuple *tuple = &arfs_rule->tuple; in arfs_add_rule() local
458 ntohs(tuple->etype)); in arfs_add_rule()
459 arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype); in arfs_add_rule()
466 if (tuple->ip_proto == IPPROTO_TCP) { in arfs_add_rule()
472 ntohs(tuple->dst_port)); in arfs_add_rule()
474 ntohs(tuple->src_port)); in arfs_add_rule()
481 ntohs(tuple->dst_port)); in arfs_add_rule()
483 ntohs(tuple->src_port)); in arfs_add_rule()
485 if (tuple->etype == htons(ETH_P_IP)) { in arfs_add_rule()
[all …]
/kernel/linux/linux-5.10/net/netfilter/ipvs/
Dip_vs_nfct.c104 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack()
122 ARG_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)); in ip_vs_update_conntrack()
157 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback()
158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback()
167 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback()
183 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback()
233 __func__, ct, ARG_TUPLE(&exp->tuple)); in ip_vs_nfct_expect_related()
246 struct nf_conntrack_tuple tuple; in ip_vs_conn_drop_conntrack() local
251 tuple = (struct nf_conntrack_tuple) { in ip_vs_conn_drop_conntrack()
253 tuple.src.u3 = cp->caddr; in ip_vs_conn_drop_conntrack()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dsdio.c96 struct sdio_func_tuple *tuple; in b43_sdio_probe() local
101 tuple = func->tuples; in b43_sdio_probe()
102 while (tuple) { in b43_sdio_probe()
103 switch (tuple->code) { in b43_sdio_probe()
105 switch (tuple->data[0]) { in b43_sdio_probe()
107 if (tuple->size != 5) in b43_sdio_probe()
109 vendor = tuple->data[1] | (tuple->data[2]<<8); in b43_sdio_probe()
110 device = tuple->data[3] | (tuple->data[4]<<8); in b43_sdio_probe()
121 tuple = tuple->next; in b43_sdio_probe()

1234567