Home
last modified time | relevance | path

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

/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_conntrack.c37 if(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip != in match()
38 ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip) in match()
41 if(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip != in match()
42 ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip) in match()
51 …if (!ct || FWINV(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum != sinfo->tuple[IP_CT_DIR_OR… in match()
56 …if (!ct || FWINV((ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip&sinfo->sipmsk[IP_CT_DIR_ORIGINAL]… in match()
61 …if (!ct || FWINV((ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip&sinfo->dipmsk[IP_CT_DIR_ORIGINAL]… in match()
66 …if (!ct || FWINV((ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip&sinfo->sipmsk[IP_CT_DIR_REPLY].s_add… in match()
71 …if (!ct || FWINV((ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip&sinfo->dipmsk[IP_CT_DIR_REPLY].s_add… in match()
Dip_nat_ftp.c52 newdstip = master->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip; in ftp_nat_expected()
53 newsrcip = master->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip; in ftp_nat_expected()
58 newdstip = master->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip; in ftp_nat_expected()
59 newsrcip = master->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip; in ftp_nat_expected()
180 newip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip; in ftp_data_fixup()
183 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip; in ftp_data_fixup()
185 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip; in ftp_data_fixup()
188 newip = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip; in ftp_data_fixup()
191 ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip; in ftp_data_fixup()
193 ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip; in ftp_data_fixup()
Dip_nat_core.c78 hs = hash_by_src(&conn->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src, in ip_nat_cleanup_conntrack()
79 conn->tuplehash[IP_CT_DIR_ORIGINAL] in ip_nat_cleanup_conntrack()
82 hp = hash_by_ipsproto(conn->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip, in ip_nat_cleanup_conntrack()
83 conn->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip, in ip_nat_cleanup_conntrack()
84 conn->tuplehash[IP_CT_DIR_REPLY] in ip_nat_cleanup_conntrack()
173 return (i->conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum in src_cmp()
175 && i->conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip in src_cmp()
177 && i->conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.all in src_cmp()
180 &i->conntrack->tuplehash[IP_CT_DIR_ORIGINAL] in src_cmp()
196 return &i->conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src; in find_appropriate_src()
[all …]
Dip_conntrack_core.c299 ho = hash_conntrack(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in clean_from_lists()
300 hr = hash_conntrack(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in clean_from_lists()
301 LIST_DELETE(&ip_conntrack_hash[ho], &ct->tuplehash[IP_CT_DIR_ORIGINAL]); in clean_from_lists()
302 LIST_DELETE(&ip_conntrack_hash[hr], &ct->tuplehash[IP_CT_DIR_REPLY]); in clean_from_lists()
321 proto = ip_ct_find_proto(ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.protonum); in destroy_conntrack()
335 BUG_ON(list_empty(&ct->tuplehash[IP_CT_DIR_ORIGINAL].list)); in destroy_conntrack()
336 list_del(&ct->tuplehash[IP_CT_DIR_ORIGINAL].list); in destroy_conntrack()
448 hash = hash_conntrack(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in __ip_conntrack_confirm()
449 repl_hash = hash_conntrack(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in __ip_conntrack_confirm()
468 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, NULL) in __ip_conntrack_confirm()
[all …]
Dip_nat_rule.c234 ? conntrack->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip in alloc_null_binding()
235 : conntrack->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip); in alloc_null_binding()
251 ? conntrack->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip in alloc_null_binding_confirmed()
252 : conntrack->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip); in alloc_null_binding_confirmed()
255 ? conntrack->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u.all in alloc_null_binding_confirmed()
256 : conntrack->tuplehash[IP_CT_DIR_REPLY].tuple.src.u.all); in alloc_null_binding_confirmed()
Dip_fw_compat_masq.c230 masq_proto_name(conntrack->tuplehash[0].tuple.dst.protonum), in print_masq()
231 ntohl(conntrack->tuplehash[0].tuple.src.ip), in print_masq()
232 ntohs(conntrack->tuplehash[0].tuple.src.u.all), in print_masq()
233 ntohl(conntrack->tuplehash[0].tuple.dst.ip), in print_masq()
234 ntohs(conntrack->tuplehash[0].tuple.dst.u.all), in print_masq()
235 ntohs(conntrack->tuplehash[1].tuple.dst.u.all), in print_masq()
Dip_conntrack_proto_icmp.c101 if (conntrack->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) in icmp_new()
102 || !valid_new[conntrack->tuplehash[0].tuple.dst.u.icmp.type]) { in icmp_new()
105 conntrack->tuplehash[0].tuple.dst.u.icmp.type); in icmp_new()
106 DUMP_TUPLE(&conntrack->tuplehash[0].tuple); in icmp_new()
Dip_nat_tftp.c78 repl = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_nat_help()
80 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_nat_help()
81 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_nat_help()
102 &master->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in tftp_nat_expected()
106 &master->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_nat_expected()
Dip_conntrack_ftp.c303 array[0] = (ntohl(ct->tuplehash[dir].tuple.src.ip) >> 24) & 0xFF; in help()
304 array[1] = (ntohl(ct->tuplehash[dir].tuple.src.ip) >> 16) & 0xFF; in help()
305 array[2] = (ntohl(ct->tuplehash[dir].tuple.src.ip) >> 8) & 0xFF; in help()
306 array[3] = ntohl(ct->tuplehash[dir].tuple.src.ip) & 0xFF; in help()
342 == ct->tuplehash[dir].tuple.src.ip) { in help()
354 NIPQUAD(ct->tuplehash[dir].tuple.src.ip)); in help()
365 { { ct->tuplehash[!dir].tuple.src.ip, in help()
Dip_conntrack_tftp.c51 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help()
52 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_help()
55 exp.tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_help()
Dip_nat_amanda.c50 newip = master->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip; in amanda_nat_expected()
52 newip = master->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip; in amanda_nat_expected()
82 t.dst.ip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip; in amanda_data_fixup()
Dip_conntrack_irc.c195 if (ct->tuplehash[dir].tuple.src.ip != htonl(dcc_ip) in help()
196 && ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip != htonl(dcc_ip)) { in help()
201 NIPQUAD(ct->tuplehash[dir].tuple.src.ip), in help()
220 { ct->tuplehash[dir].tuple.src.ip, { .tcp = { htons(dcc_port) } }, in help()
Dip_conntrack_standalone.c44 return (i->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum == in kill_proto()
87 = __ip_ct_find_proto(conntrack->tuplehash[IP_CT_DIR_ORIGINAL] in print_conntrack()
92 conntrack->tuplehash[IP_CT_DIR_ORIGINAL] in print_conntrack()
99 &conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in print_conntrack()
104 &conntrack->tuplehash[IP_CT_DIR_REPLY].tuple, in print_conntrack()
Dip_nat_irc.c69 newdstip = master->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip; in irc_nat_expected()
70 newsrcip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip; in irc_nat_expected()
108 newip = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip; in irc_data_fixup()
Dip_nat_snmp_basic.c1237 map.from = NOCT1(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip); in snmp_translate()
1238 map.to = NOCT1(ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip); in snmp_translate()
1241 map.from = NOCT1(ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip); in snmp_translate()
1242 map.to = NOCT1(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip); in snmp_translate()
1295 NIPQUAD(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip), in nat_help()
1296 NIPQUAD(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip), in nat_help()
1297 NIPQUAD(ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip), in nat_help()
1298 NIPQUAD(ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip)); in nat_help()
Dip_conntrack_amanda.c92 exp.tuple.src.ip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip; in help()
93 exp.tuple.dst.ip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip; in help()
/linux-2.4.37.9/include/linux/netfilter_ipv4/
Dip_conntrack.h168 struct ip_conntrack_tuple_hash tuplehash[IP_CT_DIR_MAX]; member
Dip_conntrack_tuple.h91 #define DIRECTION(h) ((enum ip_conntrack_dir)(&(h)->ctrack->tuplehash[1] == (h)))