Home
last modified time | relevance | path

Searched refs:tuplehash (Results 1 – 25 of 49) sorted by relevance

12

/linux/net/netfilter/
A Dnf_flow_table_ip.c321 tuplehash->tuple.out.h_source, skb->len); in nf_flow_queue_xmit()
352 if (tuplehash == NULL) in nf_flow_offload_ip_hook()
355 dir = tuplehash->tuple.dir; in nf_flow_offload_ip_hook()
356 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ip_hook()
372 nf_flow_encap_pop(skb, tuplehash); in nf_flow_offload_ip_hook()
392 switch (tuplehash->tuple.xmit_type) { in nf_flow_offload_ip_hook()
588 if (tuplehash == NULL) in nf_flow_offload_ipv6_hook()
591 dir = tuplehash->tuple.dir; in nf_flow_offload_ipv6_hook()
592 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ipv6_hook()
608 nf_flow_encap_pop(skb, tuplehash); in nf_flow_offload_ipv6_hook()
[all …]
A Dnf_flow_table_core.c300 &flow->tuplehash[0].node, in flow_offload_add()
306 &flow->tuplehash[1].node, in flow_offload_add()
310 &flow->tuplehash[0].node, in flow_offload_add()
385 if (!tuplehash) in flow_offload_lookup()
388 dir = tuplehash->tuple.dir; in flow_offload_lookup()
389 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in flow_offload_lookup()
396 return tuplehash; in flow_offload_lookup()
414 if (IS_ERR(tuplehash)) { in nf_flow_table_iterate()
416 err = PTR_ERR(tuplehash); in nf_flow_table_iterate()
421 if (tuplehash->tuple.dir) in nf_flow_table_iterate()
[all …]
A Dnf_nat_sip.c109 newaddr = ct->tuplehash[!dir].tuple.dst.u3; 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()
194 &ct->tuplehash[dir].tuple.dst.u3) || in nf_nat_sip()
216 &ct->tuplehash[!dir].tuple.dst.u3, in nf_nat_sip()
233 &ct->tuplehash[!dir].tuple.src.u3, in nf_nat_sip()
392 &ct->tuplehash[!dir].tuple.dst.u3)) in nf_nat_sip_expect()
395 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in nf_nat_sip_expect()
401 ct->tuplehash[dir].tuple.src.u.udp.port; in nf_nat_sip_expect()
[all …]
A Dnf_conntrack_h323_main.c285 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
286 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
295 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
296 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
300 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
353 &ct->tuplehash[!dir].tuple.src.u3, in expect_t120()
354 &ct->tuplehash[!dir].tuple.dst.u3, in expect_t120()
359 &ct->tuplehash[!dir].tuple.dst.u3, in expect_t120()
690 &ct->tuplehash[!dir].tuple.src.u3, in expect_h245()
691 &ct->tuplehash[!dir].tuple.dst.u3, in expect_h245()
[all …]
A Dnf_flow_table_offload.c225 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_eth_src()
232 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_eth_src()
275 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_eth_dst()
282 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_eth_dst()
543 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_redirect()
546 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_redirect()
574 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_encap_tunnel()
599 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_decap_tunnel()
631 tuple = &flow->tuplehash[dir].tuple; in nf_flow_rule_route_common()
645 other_tuple = &flow->tuplehash[!dir].tuple; in nf_flow_rule_route_common()
[all …]
A Dnf_nat_proto.c602 &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmp_reply_translation()
740 if (ct->tuplehash[dir].tuple.src.u3.ip != in nf_nat_ipv4_out()
743 ct->tuplehash[dir].tuple.src.u.all != in nf_nat_ipv4_out()
771 if (ct->tuplehash[dir].tuple.dst.u3.ip != in nf_nat_ipv4_local_fn()
772 ct->tuplehash[!dir].tuple.src.u3.ip) { in nf_nat_ipv4_local_fn()
780 ct->tuplehash[dir].tuple.dst.u.all != in nf_nat_ipv4_local_fn()
781 ct->tuplehash[!dir].tuple.src.u.all) { in nf_nat_ipv4_local_fn()
879 &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmpv6_reply_translation()
980 ct->tuplehash[dir].tuple.src.u.all != in nf_nat_ipv6_out()
1018 ct->tuplehash[dir].tuple.dst.u.all != in nf_nat_ipv6_local_fn()
[all …]
A 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()
81 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check()
98 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check()
125 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check_v3()
144 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check_v3()
A Dnf_conntrack_core.c662 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_delete_from_lists()
665 &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in nf_ct_delete_from_lists()
734 &ct2->tuplehash[IP_CT_DIR_ORIGINAL].tuple) && in nf_ct_match()
736 &ct2->tuplehash[IP_CT_DIR_REPLY].tuple) && in nf_ct_match()
879 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_conntrack_hash_check_insert()
882 &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in nf_conntrack_hash_check_insert()
1164 &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in __nf_conntrack_confirm()
1557 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple = *orig; in __nf_conntrack_alloc()
1559 ct->tuplehash[IP_CT_DIR_REPLY].tuple = *repl; in __nf_conntrack_alloc()
1703 return &ct->tuplehash[IP_CT_DIR_ORIGINAL]; in init_conntrack()
[all …]
A Dnf_conntrack_tftp.c61 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help()
62 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_help()
69 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_help()
A Dnf_conntrack_proto_icmp.c89 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()
93 ct->tuplehash[0].tuple.dst.u.icmp.type); in nf_conntrack_icmp_packet()
94 nf_ct_dump_tuple_ip(&ct->tuplehash[0].tuple); in nf_conntrack_icmp_packet()
170 ct_daddr = &ct->tuplehash[dir].tuple.dst.u3; in nf_conntrack_inet_error()
A Dnf_conntrack_ftp.c446 memcpy(cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help()
488 daddr = &ct->tuplehash[!dir].tuple.dst.u3; in help()
492 memcmp(&cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help()
501 &ct->tuplehash[dir].tuple.src.u3.ip); in help()
505 ct->tuplehash[dir].tuple.src.u3.ip6); in help()
520 &ct->tuplehash[!dir].tuple.src.u3, daddr, in help()
A Dnf_conntrack_pptp.c192 memcpy(&t, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, sizeof(t)); in pptp_destroy_siblings()
200 memcpy(&t, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, sizeof(t)); in pptp_destroy_siblings()
228 &ct->tuplehash[dir].tuple.src.u3, in exp_gre()
229 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre()
237 &ct->tuplehash[dir].tuple.src.u3, in exp_gre()
238 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre()
A 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()
268 t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in same_src()
291 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in find_appropriate_src()
603 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in nf_nat_setup_info()
630 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_setup_info()
657 ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3 : in __nf_nat_alloc_null_binding()
658 ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3); in __nf_nat_alloc_null_binding()
808 h = hash_by_src(nf_ct_net(ct), nf_ct_zone(ct), &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in __nf_nat_cleanup_conntrack()
A Dxt_cluster.c18 return (__force u32)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip; in nf_ct_orig_ipv4_src()
23 return (__force u32 *)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip6; in nf_ct_orig_ipv6_src()
A Dnf_nat_helper.c190 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in nf_nat_follow_master()
197 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in nf_nat_follow_master()
A Dnft_flow_offload.c45 const void *daddr = &ct->tuplehash[!dir].tuple.src.u3; in nft_dev_fill_forward_path()
229 fl.u.ip4.daddr = ct->tuplehash[dir].tuple.src.u3.ip; in nft_flow_route()
233 fl.u.ip6.daddr = ct->tuplehash[dir].tuple.src.u3.in6; in nft_flow_route()
292 switch (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum) { in nft_flow_offload_eval()
A Dnf_conntrack_irc.c190 tuple = &ct->tuplehash[dir].tuple; in help()
206 tuple = &ct->tuplehash[!dir].tuple; in help()
A Dnf_conntrack_proto.c288 sin.sin_port = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst()
290 sin.sin_addr.s_addr = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst()
357 sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u.tcp.port; in ipv6_getorigdst()
360 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3.in6, in ipv6_getorigdst()
/linux/net/ipv4/netfilter/
A Dnf_nat_h323.c118 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr()
122 &ct->tuplehash[!dir]. in set_sig_addr()
134 &ct->tuplehash[!dir]. in set_sig_addr()
161 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_ras_addr()
165 ct->tuplehash[!dir].tuple. in set_ras_addr()
252 &ct->tuplehash[!dir].tuple.dst.u3, in nat_rtp_rtcp()
315 &ct->tuplehash[!dir].tuple.dst.u3, in nat_t120()
371 &ct->tuplehash[!dir].tuple.dst.u3, in nat_h245()
463 &ct->tuplehash[!dir].tuple.dst.u3, in nat_q931()
478 &ct->tuplehash[!dir].tuple.dst.u3, in nat_q931()
[all …]
A Dnf_nat_pptp.c67 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
69 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected()
76 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
78 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected()
100 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in pptp_nat_expected()
110 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in pptp_nat_expected()
156 new_callid = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u.tcp.port; in pptp_outbound_pkt()
A Dnf_nat_snmp_basic_main.c136 ctx.from = ct->tuplehash[dir].tuple.src.u3.ip; in snmp_translate()
137 ctx.to = ct->tuplehash[!dir].tuple.dst.u3.ip; in snmp_translate()
139 ctx.from = ct->tuplehash[!dir].tuple.src.u3.ip; in snmp_translate()
140 ctx.to = ct->tuplehash[dir].tuple.dst.u3.ip; in snmp_translate()
A Dnf_socket_ipv4.c139 daddr = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip; in nf_sk_lookup_slow_v4()
141 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.tcp.port : in nf_sk_lookup_slow_v4()
142 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in nf_sk_lookup_slow_v4()
/linux/net/netfilter/ipvs/
A 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()
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()
/linux/include/net/netfilter/
A Dnf_conntrack.h92 struct nf_conntrack_tuple_hash tuplehash[IP_CT_DIR_MAX]; member
128 tuplehash[hash->tuple.dst.dir]); in nf_ct_tuplehash_to_ctrack()
133 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num()
138 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum()
141 #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple)
/linux/net/sched/
A Dact_ct.c201 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcf_ct_flow_table_add_action_nat()
207 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); in tcf_ct_flow_table_add_action_nat()
511 struct flow_offload_tuple_rhash *tuplehash; in tcf_ct_flow_table_lookup() local
537 tuplehash = flow_offload_lookup(nf_ft, &tuple); in tcf_ct_flow_table_lookup()
538 if (!tuplehash) in tcf_ct_flow_table_lookup()
541 dir = tuplehash->tuple.dir; in tcf_ct_flow_table_lookup()
542 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in tcf_ct_flow_table_lookup()

Completed in 48 milliseconds

12