/kernel/linux/linux-5.10/net/netfilter/ |
D | nf_flow_table_core.c | 24 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; in flow_offload_fill_dir() 25 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple; in flow_offload_fill_dir() 81 struct flow_offload_tuple *flow_tuple = &flow->tuplehash[dir].tuple; in flow_offload_fill_route() 172 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_cache); in flow_offload_route_release() 173 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_cache); in flow_offload_route_release() 199 const struct flow_offload_tuple_rhash *tuplehash = data; in flow_offload_hash_obj() local 201 return jhash(&tuplehash->tuple, offsetof(struct flow_offload_tuple, dir), seed); in flow_offload_hash_obj() 231 &flow->tuplehash[0].node, in flow_offload_add() 237 &flow->tuplehash[1].node, in flow_offload_add() 241 &flow->tuplehash[0].node, in flow_offload_add() [all …]
|
D | nf_flow_table_ip.c | 97 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() 245 struct flow_offload_tuple_rhash *tuplehash; in nf_flow_offload_ip_hook() local 262 tuplehash = flow_offload_lookup(flow_table, &tuple); in nf_flow_offload_ip_hook() 263 if (tuplehash == NULL) in nf_flow_offload_ip_hook() 266 dir = tuplehash->tuple.dir; in nf_flow_offload_ip_hook() 267 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ip_hook() 268 rt = (struct rtable *)flow->tuplehash[dir].tuple.dst_cache; in nf_flow_offload_ip_hook() [all …]
|
D | nf_nat_sip.c | 107 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 …]
|
D | nf_conntrack_h323_main.c | 272 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() 344 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_t120() 352 &ct->tuplehash[!dir].tuple.src.u3, in expect_t120() [all …]
|
D | nf_nat_proto.c | 426 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); in nf_nat_manip_pkt() 602 &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmp_reply_translation() 615 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); in nf_nat_icmp_reply_translation() 702 if (ct->tuplehash[dir].tuple.src.u3.ip != in nf_nat_ipv4_out() 703 ct->tuplehash[!dir].tuple.dst.u3.ip || in nf_nat_ipv4_out() 704 (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && in nf_nat_ipv4_out() 705 ct->tuplehash[dir].tuple.src.u.all != in nf_nat_ipv4_out() 706 ct->tuplehash[!dir].tuple.dst.u.all)) { in nf_nat_ipv4_out() 733 if (ct->tuplehash[dir].tuple.dst.u3.ip != in nf_nat_ipv4_local_fn() 734 ct->tuplehash[!dir].tuple.src.u3.ip) { in nf_nat_ipv4_local_fn() [all …]
|
D | xt_conntrack.c | 44 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()
|
D | nf_flow_table_offload.c | 178 const struct flow_offload_tuple *tuple = &flow->tuplehash[!dir].tuple; in flow_offload_eth_src() 211 const void *daddr = &flow->tuplehash[!dir].tuple.src_v4; in flow_offload_eth_dst() 219 dst_cache = flow->tuplehash[dir].tuple.dst_cache; in flow_offload_eth_dst() 261 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in flow_offload_ipv4_snat() 265 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in flow_offload_ipv4_snat() 288 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v4.s_addr; in flow_offload_ipv4_dnat() 292 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_v4.s_addr; in flow_offload_ipv4_dnat() 328 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v6.s6_addr32; in flow_offload_ipv6_snat() 332 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v6.s6_addr32; in flow_offload_ipv6_snat() 353 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v6.s6_addr32; in flow_offload_ipv6_dnat() [all …]
|
D | nf_conntrack_core.c | 472 d = (unsigned long)siphash(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_get_id() 473 sizeof(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple), in nf_ct_get_id() 487 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in clean_from_lists() 488 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode); in clean_from_lists() 504 hlist_nulls_add_head(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, in nf_ct_add_to_dying_list() 519 hlist_nulls_add_head(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, in nf_ct_add_to_unconfirmed_list() 533 BUG_ON(hlist_nulls_unhashed(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode)); in nf_ct_del_from_dying_or_unconfirmed_list() 534 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in nf_ct_del_from_dying_or_unconfirmed_list() 641 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_ct_delete_from_lists() 643 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in nf_ct_delete_from_lists() [all …]
|
D | nf_conntrack_tftp.c | 61 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()
|
D | nf_conntrack_proto_icmp.c | 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() 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()
|
D | nf_conntrack_ftp.c | 443 memcpy(cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help() 485 daddr = &ct->tuplehash[!dir].tuple.dst.u3; in help() 489 memcmp(&cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help() 498 &ct->tuplehash[dir].tuple.src.u3.ip); in help() 502 ct->tuplehash[dir].tuple.src.u3.ip6); in help() 517 &ct->tuplehash[!dir].tuple.src.u3, daddr, in help()
|
D | nf_conntrack_pptp.c | 192 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()
|
D | xt_cluster.c | 18 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()
|
D | nft_flow_offload.c | 34 fl.u.ip4.daddr = ct->tuplehash[dir].tuple.src.u3.ip; in nft_flow_route() 38 fl.u.ip6.daddr = ct->tuplehash[dir].tuple.src.u3.in6; in nft_flow_route() 91 switch (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum) { in nft_flow_offload_eval()
|
D | nf_nat_core.c | 61 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() 288 t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in same_src() 311 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in find_appropriate_src() 623 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in nf_nat_setup_info() 650 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_setup_info() 677 ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3 : in __nf_nat_alloc_null_binding() 678 ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3); in __nf_nat_alloc_null_binding() 818 h = hash_by_src(nf_ct_net(ct), &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in __nf_nat_cleanup_conntrack()
|
D | nf_nat_helper.c | 190 = 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()
|
D | nf_nat_tftp.c | 30 = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in help()
|
D | nf_conntrack_irc.c | 209 tuple = &ct->tuplehash[dir].tuple; in help() 225 tuple = &ct->tuplehash[!dir].tuple; in help()
|
D | nf_flow_table_inet.c | 29 const struct flow_offload_tuple *flow_tuple = &flow->tuplehash[dir].tuple; in nf_flow_rule_route_inet()
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 105 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() 122 &ct->tuplehash[!dir]. 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() 134 &ct->tuplehash[!dir]. 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 …]
|
D | nf_nat_pptp.c | 67 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()
|
D | nf_nat_snmp_basic_main.c | 136 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()
|
D | nf_socket_ipv4.c | 139 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()
|
/kernel/linux/linux-5.10/include/net/netfilter/ |
D | nf_conntrack.h | 78 struct nf_conntrack_tuple_hash tuplehash[IP_CT_DIR_MAX]; member 114 tuplehash[hash->tuple.dst.dir]); in nf_ct_tuplehash_to_ctrack() 119 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num() 124 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum() 127 #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple)
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
D | ip_vs_nfct.c | 104 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()
|