| /net/netfilter/ |
| A D | nf_flow_table_ip.c | 380 dir = tuplehash->tuple.dir; in nf_flow_offload_forward() 381 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_forward() 402 nf_flow_encap_pop(skb, tuplehash); in nf_flow_offload_forward() 434 if (!tuplehash) in nf_flow_offload_ip_hook() 451 dir = tuplehash->tuple.dir; in nf_flow_offload_ip_hook() 452 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ip_hook() 659 dir = tuplehash->tuple.dir; in nf_flow_offload_ipv6_forward() 660 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in nf_flow_offload_ipv6_forward() 729 if (tuplehash == NULL) in nf_flow_offload_ipv6_hook() 746 dir = tuplehash->tuple.dir; in nf_flow_offload_ipv6_hook() [all …]
|
| A D | nf_flow_table_bpf.c | 39 struct flow_offload_tuple_rhash *tuplehash; in bpf_xdp_flow_tuple_lookup() local 47 tuplehash = flow_offload_lookup(nf_flow_table, tuple); in bpf_xdp_flow_tuple_lookup() 48 if (!tuplehash) in bpf_xdp_flow_tuple_lookup() 51 nf_flow = container_of(tuplehash, struct flow_offload, in bpf_xdp_flow_tuple_lookup() 52 tuplehash[tuplehash->tuple.dir]); in bpf_xdp_flow_tuple_lookup() 55 return tuplehash; in bpf_xdp_flow_tuple_lookup() 70 struct flow_offload_tuple_rhash *tuplehash; in bpf_xdp_flow_lookup() local 94 tuplehash = bpf_xdp_flow_tuple_lookup(xdp->rxq->dev, &tuple, proto); in bpf_xdp_flow_lookup() 95 if (IS_ERR(tuplehash)) { in bpf_xdp_flow_lookup() 96 opts->error = PTR_ERR(tuplehash); in bpf_xdp_flow_lookup() [all …]
|
| A D | nf_flow_table_core.c | 326 &flow->tuplehash[0].node, in flow_offload_add() 332 &flow->tuplehash[1].node, in flow_offload_add() 336 &flow->tuplehash[0].node, in flow_offload_add() 401 if (!tuplehash) in flow_offload_lookup() 404 dir = tuplehash->tuple.dir; in flow_offload_lookup() 405 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in flow_offload_lookup() 412 return tuplehash; in flow_offload_lookup() 431 if (IS_ERR(tuplehash)) { in nf_flow_table_iterate() 433 err = PTR_ERR(tuplehash); in nf_flow_table_iterate() 438 if (tuplehash->tuple.dir) in nf_flow_table_iterate() [all …]
|
| A D | nf_nat_sip.c | 109 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 D | nf_conntrack_h323_main.c | 234 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp() 235 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 244 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp() 245 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 250 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 303 &ct->tuplehash[!dir].tuple.src.u3, in expect_t120() 304 &ct->tuplehash[!dir].tuple.dst.u3, in expect_t120() 310 &ct->tuplehash[!dir].tuple.dst.u3, in expect_t120() 642 &ct->tuplehash[!dir].tuple.src.u3, in expect_h245() 643 &ct->tuplehash[!dir].tuple.dst.u3, in expect_h245() [all …]
|
| A D | nf_nat_proto.c | 559 &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmp_reply_translation() 734 if (ct->tuplehash[dir].tuple.src.u3.ip != in nf_nat_ipv4_out() 737 ct->tuplehash[dir].tuple.src.u.all != in nf_nat_ipv4_out() 765 if (ct->tuplehash[dir].tuple.dst.u3.ip != in nf_nat_ipv4_local_fn() 766 ct->tuplehash[!dir].tuple.src.u3.ip) { in nf_nat_ipv4_local_fn() 774 ct->tuplehash[dir].tuple.dst.u.all != in nf_nat_ipv4_local_fn() 775 ct->tuplehash[!dir].tuple.src.u.all) { in nf_nat_ipv4_local_fn() 873 &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmpv6_reply_translation() 996 ct->tuplehash[dir].tuple.src.u.all != in nf_nat_ipv6_out() 1034 ct->tuplehash[dir].tuple.dst.u.all != in nf_nat_ipv6_local_fn() [all …]
|
| A D | nf_flow_table_offload.c | 236 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_eth_src() 243 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_eth_src() 286 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_eth_dst() 293 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_eth_dst() 554 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_redirect() 557 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_redirect() 585 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_encap_tunnel() 610 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_decap_tunnel() 642 tuple = &flow->tuplehash[dir].tuple; in nf_flow_rule_route_common() 656 other_tuple = &flow->tuplehash[!dir].tuple; in nf_flow_rule_route_common() [all …]
|
| A 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()
|
| A D | nf_conntrack_core.c | 611 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in __nf_ct_delete_from_lists() 614 &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in __nf_ct_delete_from_lists() 706 &ct2->tuplehash[IP_CT_DIR_ORIGINAL].tuple) && in nf_ct_match() 708 &ct2->tuplehash[IP_CT_DIR_REPLY].tuple) && in nf_ct_match() 888 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_conntrack_hash_check_insert() 891 &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in nf_conntrack_hash_check_insert() 1016 &ct2->tuplehash[IP_CT_DIR_REPLY].tuple)) in nf_ct_match_reverse() 1235 &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in __nf_conntrack_confirm() 1694 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple = *orig; in __nf_conntrack_alloc() 1696 ct->tuplehash[IP_CT_DIR_REPLY].tuple = *repl; in __nf_conntrack_alloc() [all …]
|
| A 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()
|
| A 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()
|
| A D | nf_nat_core.c | 64 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session() 95 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv6_decode_session() 310 &ignored_ct->tuplehash[IP_CT_DIR_REPLY].tuple) && in nf_nat_used_tuple_new() 311 nf_ct_tuple_equal(&ct->tuplehash[IP_CT_DIR_REPLY].tuple, in nf_nat_used_tuple_new() 312 &ignored_ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple)) { in nf_nat_used_tuple_new() 470 t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in same_src() 493 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in find_appropriate_src() 806 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in nf_nat_setup_info() 833 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_setup_info() 860 ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3 : in __nf_nat_alloc_null_binding() [all …]
|
| A D | nft_flow_offload.c | 55 const void *daddr = &ct->tuplehash[!dir].tuple.src.u3; in nft_dev_fill_forward_path() 235 fl.u.ip4.daddr = ct->tuplehash[dir].tuple.src.u3.ip; in nft_flow_route() 236 fl.u.ip4.saddr = ct->tuplehash[!dir].tuple.src.u3.ip; in nft_flow_route() 244 fl.u.ip6.daddr = ct->tuplehash[dir].tuple.src.u3.in6; in nft_flow_route() 245 fl.u.ip6.saddr = ct->tuplehash[!dir].tuple.src.u3.in6; in nft_flow_route() 322 switch (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum) { in nft_flow_offload_eval() 338 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in nft_flow_offload_eval()
|
| A D | nf_conntrack_ftp.c | 442 memcpy(cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help() 484 daddr = &ct->tuplehash[!dir].tuple.dst.u3; in help() 488 memcmp(&cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help() 497 &ct->tuplehash[dir].tuple.src.u3.ip); in help() 501 ct->tuplehash[dir].tuple.src.u3.ip6); in help() 516 &ct->tuplehash[!dir].tuple.src.u3, daddr, in help()
|
| A D | nf_conntrack_pptp.c | 170 memcpy(&t, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, sizeof(t)); in pptp_destroy_siblings() 178 memcpy(&t, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, sizeof(t)); in pptp_destroy_siblings() 206 &ct->tuplehash[dir].tuple.src.u3, in exp_gre() 207 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre() 215 &ct->tuplehash[dir].tuple.src.u3, in exp_gre() 216 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre()
|
| A D | nf_conntrack_irc.c | 218 tuple = &ct->tuplehash[dir].tuple; in help() 220 ct->tuplehash[!dir].tuple.dst.u3.ip != dcc_ip) || in help() 235 tuple = &ct->tuplehash[!dir].tuple; in help()
|
| A 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()
|
| A D | nf_conntrack_ecache.c | 77 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in ecache_work_evict_list() 78 hlist_nulls_add_head(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode, &evicted_list); in ecache_work_evict_list() 97 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode); in ecache_work_evict_list()
|
| /net/ipv4/netfilter/ |
| A D | nf_nat_h323.c | 118 &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() 302 &ct->tuplehash[!dir].tuple.dst.u3, in nat_t120() 345 &ct->tuplehash[!dir].tuple.dst.u3, in nat_h245() 424 &ct->tuplehash[!dir].tuple.dst.u3, in nat_q931() 439 &ct->tuplehash[!dir].tuple.dst.u3, in nat_q931() [all …]
|
| A 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()
|
| A 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()
|
| A 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()
|
| /net/netfilter/ipvs/ |
| A 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()
|
| /net/ipv6/netfilter/ |
| A D | nf_socket_ipv6.c | 155 daddr = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.in6; in nf_sk_lookup_slow_v6() 157 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.tcp.port : in nf_sk_lookup_slow_v6() 158 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in nf_sk_lookup_slow_v6()
|
| /net/sched/ |
| A D | act_ct.c | 207 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcf_ct_flow_table_add_action_nat() 213 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); in tcf_ct_flow_table_add_action_nat() 403 entry->tuplehash[dir].tuple.xmit_type = FLOW_OFFLOAD_XMIT_TC; in tcf_ct_flow_tc_ifidx() 404 entry->tuplehash[dir].tuple.tc.iifidx = act_ct_ext->ifindex[dir]; in tcf_ct_flow_tc_ifidx() 492 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in tcf_ct_flow_table_process_conn() 657 struct flow_offload_tuple_rhash *tuplehash; in tcf_ct_flow_table_lookup() local 679 tuplehash = flow_offload_lookup(nf_ft, &tuple); in tcf_ct_flow_table_lookup() 680 if (!tuplehash) in tcf_ct_flow_table_lookup() 683 dir = tuplehash->tuple.dir; in tcf_ct_flow_table_lookup() 684 flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); in tcf_ct_flow_table_lookup()
|