/linux-4.4.14/net/netfilter/ |
D | nf_nat_sip.c | 105 if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, addr) && in map_addr() 106 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr() 107 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in map_addr() 108 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr() 109 } else if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, addr) && in map_addr() 110 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr() 111 newaddr = ct->tuplehash[!dir].tuple.src.u3; in map_addr() 113 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr() 187 &ct->tuplehash[dir].tuple.src.u3) || in nf_nat_sip() 188 port != ct->tuplehash[dir].tuple.src.u.udp.port) in nf_nat_sip() [all …]
|
D | nf_conntrack_h323_main.c | 275 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp() 287 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp() 288 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 297 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp() 298 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 301 if (memcmp(&ct->tuplehash[dir].tuple.src.u3, in expect_rtp_rtcp() 302 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 303 sizeof(ct->tuplehash[dir].tuple.src.u3)) && in expect_rtp_rtcp() 348 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_t120() 356 &ct->tuplehash[!dir].tuple.src.u3, in expect_t120() [all …]
|
D | xt_conntrack.c | 47 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc() 56 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst() 65 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3, in conntrack_mt_replsrc() 74 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3, in conntrack_mt_repldst() 84 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check() 101 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check() 128 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check_v3() 147 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check_v3()
|
D | nf_conntrack_core.c | 241 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in clean_from_lists() 242 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode); in clean_from_lists() 258 hlist_nulls_add_head(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, in nf_ct_add_to_dying_list() 273 hlist_nulls_add_head(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, in nf_ct_add_to_unconfirmed_list() 287 BUG_ON(hlist_nulls_unhashed(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode)); in nf_ct_del_from_dying_or_unconfirmed_list() 288 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in nf_ct_del_from_dying_or_unconfirmed_list() 380 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_ct_delete_from_lists() 382 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in nf_ct_delete_from_lists() 525 hlist_nulls_add_head_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, in __nf_conntrack_hash_insert() 527 hlist_nulls_add_head_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode, in __nf_conntrack_hash_insert() [all …]
|
D | nf_conntrack_tftp.c | 59 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help() 60 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_help() 67 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_help()
|
D | nf_nat_core.c | 69 family = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in __nf_nat_decode_session() 179 t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in same_src() 205 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in find_appropriate_src() 403 &ct->tuplehash[IP_CT_DIR_REPLY].tuple); in nf_nat_setup_info() 428 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_setup_info() 457 ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3 : in __nf_nat_alloc_null_binding() 458 ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3); in __nf_nat_alloc_null_binding() 500 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple); in nf_nat_packet()
|
D | nf_conntrack_pptp.c | 186 memcpy(&t, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, sizeof(t)); in pptp_destroy_siblings() 194 memcpy(&t, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, sizeof(t)); in pptp_destroy_siblings() 222 &ct->tuplehash[dir].tuple.src.u3, in exp_gre() 223 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre() 231 &ct->tuplehash[dir].tuple.src.u3, in exp_gre() 232 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre()
|
D | nf_conntrack_ftp.c | 455 memcpy(cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help() 497 daddr = &ct->tuplehash[!dir].tuple.dst.u3; in help() 501 memcmp(&cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, in help() 510 &ct->tuplehash[dir].tuple.src.u3.ip); in help() 514 ct->tuplehash[dir].tuple.src.u3.ip6); in help() 529 &ct->tuplehash[!dir].tuple.src.u3, daddr, in help()
|
D | xt_cluster.c | 21 return (__force u32)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip; in nf_ct_orig_ipv4_src() 26 return (__force u32 *)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip6; in nf_ct_orig_ipv6_src()
|
D | nf_nat_helper.c | 202 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in nf_nat_follow_master() 209 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in nf_nat_follow_master()
|
D | nf_nat_tftp.c | 28 = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in help()
|
D | nf_conntrack_irc.c | 187 tuple = &ct->tuplehash[dir].tuple; in help() 203 tuple = &ct->tuplehash[!dir].tuple; in help()
|
D | nf_conntrack_broadcast.c | 62 exp->tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in nf_conntrack_broadcast_help()
|
D | xt_socket.c | 194 daddr = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip; in xt_socket_lookup_slow_v4() 196 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.tcp.port : in xt_socket_lookup_slow_v4() 197 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in xt_socket_lookup_slow_v4()
|
D | nf_nat_irc.c | 43 newaddr = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3; in help()
|
D | nf_nat_ftp.c | 77 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in nf_nat_ftp()
|
D | xt_HMARK.c | 90 otuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in hmark_ct_set_htuple() 91 rtuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in hmark_ct_set_htuple()
|
D | nf_conntrack_sip.c | 863 if (!nf_inet_addr_cmp(daddr, &ct->tuplehash[dir].tuple.src.u3)) in set_expected_rtp_rtcp() 865 saddr = &ct->tuplehash[!dir].tuple.src.u3; in set_expected_rtp_rtcp() 1221 if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, &daddr)) in process_register_request() 1248 saddr = &ct->tuplehash[!dir].tuple.src.u3; in process_register_request() 1325 if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, &addr)) in process_register_response() 1427 port != ct->tuplehash[dir].tuple.src.u.udp.port && in process_sip_request() 1428 nf_inet_addr_cmp(&addr, &ct->tuplehash[dir].tuple.src.u3)) in process_sip_request()
|
D | nf_conntrack_sane.c | 146 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in help()
|
D | nf_conntrack_standalone.c | 231 print_tuple(s, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in ct_seq_show() 245 print_tuple(s, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in ct_seq_show()
|
D | nf_conntrack_amanda.c | 149 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in amanda_help()
|
D | nft_ct.c | 122 tuple = &ct->tuplehash[priv->dir].tuple; in nft_ct_get_eval()
|
D | nf_conntrack_proto_gre.c | 278 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in gre_new()
|
D | nf_conntrack_helper.c | 213 helper = __nf_ct_helper_find(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in __nf_ct_try_assign_helper()
|
D | xt_connlimit.c | 332 tuple_ptr = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in connlimit_mt()
|
D | nf_conntrack_proto_tcp.c | 513 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcp_in_window() 838 tuple = &ct->tuplehash[dir].tuple; in tcp_packet()
|
D | nf_conntrack_netlink.c | 381 #define master_tuple(ct) &(ct->master->tuplehash[IP_CT_DIR_ORIGINAL].tuple) 2496 &master->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in ctnetlink_exp_dump_expect()
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 106 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr() 119 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr() 123 &ct->tuplehash[!dir]. in set_sig_addr() 126 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr() 131 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr() 135 &ct->tuplehash[!dir]. in set_sig_addr() 158 addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_ras_addr() 159 port == ct->tuplehash[dir].tuple.src.u.udp.port) { in set_ras_addr() 162 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_ras_addr() 163 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr() [all …]
|
D | nf_nat_l3proto_ipv4.c | 38 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session() 235 l4proto, &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmp_reply_translation() 248 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple); in nf_nat_icmp_reply_translation() 394 if ((ct->tuplehash[dir].tuple.src.u3.ip != in nf_nat_ipv4_out() 395 ct->tuplehash[!dir].tuple.dst.u3.ip) || in nf_nat_ipv4_out() 396 (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && in nf_nat_ipv4_out() 397 ct->tuplehash[dir].tuple.src.u.all != in nf_nat_ipv4_out() 398 ct->tuplehash[!dir].tuple.dst.u.all)) { in nf_nat_ipv4_out() 432 if (ct->tuplehash[dir].tuple.dst.u3.ip != in nf_nat_ipv4_local_fn() 433 ct->tuplehash[!dir].tuple.src.u3.ip) { in nf_nat_ipv4_local_fn() [all …]
|
D | nf_nat_pptp.c | 61 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected() 63 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected() 70 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected() 72 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected() 94 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in pptp_nat_expected() 104 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in pptp_nat_expected() 146 new_callid = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u.tcp.port; in pptp_outbound_pkt()
|
D | nf_conntrack_proto_icmp.c | 117 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in icmp_new() 118 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in icmp_new() 121 ct->tuplehash[0].tuple.dst.u.icmp.type); in icmp_new() 122 nf_ct_dump_tuple_ip(&ct->tuplehash[0].tuple); in icmp_new()
|
D | nf_nat_masquerade_ipv4.c | 48 if (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip == 0) in nf_nat_masquerade_ipv4()
|
D | nf_nat_snmp_basic.c | 1197 map.from = NOCT1(&ct->tuplehash[dir].tuple.src.u3.ip); in snmp_translate() 1198 map.to = NOCT1(&ct->tuplehash[!dir].tuple.dst.u3.ip); in snmp_translate() 1201 map.from = NOCT1(&ct->tuplehash[!dir].tuple.src.u3.ip); in snmp_translate() 1202 map.to = NOCT1(&ct->tuplehash[dir].tuple.dst.u3.ip); in snmp_translate()
|
D | nf_conntrack_l3proto_ipv4.c | 283 sin.sin_port = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst() 285 sin.sin_addr.s_addr = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst()
|
D | nf_conntrack_l3proto_ipv4_compat.c | 153 print_tuple(s, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in ct_seq_show() 165 print_tuple(s, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, in ct_seq_show()
|
D | ipt_CLUSTERIP.c | 347 nf_ct_dump_tuple_ip(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in clusterip_tg()
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | nf_nat_l3proto_ipv6.c | 37 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv6_decode_session() 241 l4proto, &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmpv6_reply_translation() 255 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple); in nf_nat_icmpv6_reply_translation() 401 if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, in nf_nat_ipv6_out() 402 &ct->tuplehash[!dir].tuple.dst.u3) || in nf_nat_ipv6_out() 403 (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMPV6 && in nf_nat_ipv6_out() 404 ct->tuplehash[dir].tuple.src.u.all != in nf_nat_ipv6_out() 405 ct->tuplehash[!dir].tuple.dst.u.all)) { in nf_nat_ipv6_out() 438 if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, in nf_nat_ipv6_local_fn() 439 &ct->tuplehash[!dir].tuple.src.u3)) { in nf_nat_ipv6_local_fn() [all …]
|
D | nf_conntrack_proto_icmpv6.c | 127 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in icmpv6_new() 133 nf_ct_dump_tuple_ipv6(&ct->tuplehash[0].tuple); in icmpv6_new()
|
D | nf_conntrack_l3proto_ipv6.c | 259 sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u.tcp.port; in ipv6_getorigdst() 262 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3.in6, in ipv6_getorigdst()
|
/linux-4.4.14/include/net/netfilter/ |
D | nf_conntrack.h | 90 struct nf_conntrack_tuple_hash tuplehash[IP_CT_DIR_MAX]; member 125 tuplehash[hash->tuple.dst.dir]); in nf_ct_tuplehash_to_ctrack() 130 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num() 135 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum() 138 #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple)
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_nfct.c | 111 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack() 130 ARG_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple), in ip_vs_update_conntrack() 163 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback() 170 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback() 190 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback()
|
/linux-4.4.14/net/sched/ |
D | cls_flow.c | 142 ct->tuplehash[CTINFO2DIR(ctinfo)].tuple.member; \
|