/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ipt_conntrack.c | 37 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()
|
D | ip_nat_ftp.c | 52 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()
|
D | ip_nat_core.c | 78 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 …]
|
D | ip_conntrack_core.c | 299 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 …]
|
D | ip_nat_rule.c | 234 ? 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()
|
D | ip_fw_compat_masq.c | 230 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()
|
D | ip_conntrack_proto_icmp.c | 101 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()
|
D | ip_nat_tftp.c | 78 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()
|
D | ip_conntrack_ftp.c | 303 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()
|
D | ip_conntrack_tftp.c | 51 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()
|
D | ip_nat_amanda.c | 50 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()
|
D | ip_conntrack_irc.c | 195 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()
|
D | ip_conntrack_standalone.c | 44 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()
|
D | ip_nat_irc.c | 69 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()
|
D | ip_nat_snmp_basic.c | 1237 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()
|
D | ip_conntrack_amanda.c | 92 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/ |
D | ip_conntrack.h | 168 struct ip_conntrack_tuple_hash tuplehash[IP_CT_DIR_MAX]; member
|
D | ip_conntrack_tuple.h | 91 #define DIRECTION(h) ((enum ip_conntrack_dir)(&(h)->ctrack->tuplehash[1] == (h)))
|