Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/
Dnf_nat_sip.c105 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 …]
Dnf_conntrack_h323_main.c275 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 …]
Dxt_conntrack.c47 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()
Dnf_conntrack_core.c241 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 …]
Dnf_conntrack_tftp.c59 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()
Dnf_nat_core.c69 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()
Dnf_conntrack_pptp.c186 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()
Dnf_conntrack_ftp.c455 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()
Dxt_cluster.c21 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()
Dnf_nat_helper.c202 = 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()
Dnf_nat_tftp.c28 = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in help()
Dnf_conntrack_irc.c187 tuple = &ct->tuplehash[dir].tuple; in help()
203 tuple = &ct->tuplehash[!dir].tuple; in help()
Dnf_conntrack_broadcast.c62 exp->tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in nf_conntrack_broadcast_help()
Dxt_socket.c194 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()
Dnf_nat_irc.c43 newaddr = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3; in help()
Dnf_nat_ftp.c77 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in nf_nat_ftp()
Dxt_HMARK.c90 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()
Dnf_conntrack_sip.c863 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()
Dnf_conntrack_sane.c146 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in help()
Dnf_conntrack_standalone.c231 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()
Dnf_conntrack_amanda.c149 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in amanda_help()
Dnft_ct.c122 tuple = &ct->tuplehash[priv->dir].tuple; in nft_ct_get_eval()
Dnf_conntrack_proto_gre.c278 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in gre_new()
Dnf_conntrack_helper.c213 helper = __nf_ct_helper_find(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in __nf_ct_try_assign_helper()
Dxt_connlimit.c332 tuple_ptr = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in connlimit_mt()
Dnf_conntrack_proto_tcp.c513 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcp_in_window()
838 tuple = &ct->tuplehash[dir].tuple; in tcp_packet()
Dnf_conntrack_netlink.c381 #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/
Dnf_nat_h323.c106 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 …]
Dnf_nat_l3proto_ipv4.c38 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 …]
Dnf_nat_pptp.c61 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()
Dnf_conntrack_proto_icmp.c117 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()
Dnf_nat_masquerade_ipv4.c48 if (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip == 0) in nf_nat_masquerade_ipv4()
Dnf_nat_snmp_basic.c1197 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()
Dnf_conntrack_l3proto_ipv4.c283 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()
Dnf_conntrack_l3proto_ipv4_compat.c153 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()
Dipt_CLUSTERIP.c347 nf_ct_dump_tuple_ip(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in clusterip_tg()
/linux-4.4.14/net/ipv6/netfilter/
Dnf_nat_l3proto_ipv6.c37 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 …]
Dnf_conntrack_proto_icmpv6.c127 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()
Dnf_conntrack_l3proto_ipv6.c259 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/
Dnf_conntrack.h90 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/
Dip_vs_nfct.c111 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/
Dcls_flow.c142 ct->tuplehash[CTINFO2DIR(ctinfo)].tuple.member; \