/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ip_nat_standalone.c | 46 #define HOOKNAME(hooknum) ((hooknum) == NF_IP_POST_ROUTING ? "POST_ROUTING" \ argument 47 : ((hooknum) == NF_IP_PRE_ROUTING ? "PRE_ROUTING" \ 48 : ((hooknum) == NF_IP_LOCAL_OUT ? "LOCAL_OUT" \ 49 : ((hooknum) == NF_IP_LOCAL_IN ? "LOCAL_IN" \ 54 unsigned int hooknum, in call_expect() argument 58 return master->nat.info.helper->expect(pskb, hooknum, ct, info); in call_expect() 62 ip_nat_fn(unsigned int hooknum, in ip_nat_fn() argument 72 enum ip_nat_manip_type maniptype = HOOK2MANIP(hooknum); in ip_nat_fn() 107 return icmp_reply_translation(*pskb, ct, hooknum, in ip_nat_fn() 124 hooknum, ct, info); in ip_nat_fn() [all …]
|
D | ip_nat_rule.c | 110 unsigned int hooknum, in ipt_snat_target() argument 119 IP_NF_ASSERT(hooknum == NF_IP_POST_ROUTING); in ipt_snat_target() 128 return ip_nat_setup_info(ct, targinfo, hooknum); in ipt_snat_target() 132 unsigned int hooknum, in ipt_dnat_target() argument 141 IP_NF_ASSERT(hooknum == NF_IP_PRE_ROUTING in ipt_dnat_target() 142 || hooknum == NF_IP_LOCAL_OUT); in ipt_dnat_target() 149 return ip_nat_setup_info(ct, targinfo, hooknum); in ipt_dnat_target() 226 unsigned int hooknum) in alloc_null_binding() argument 233 = (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC in alloc_null_binding() 241 return ip_nat_setup_info(conntrack, &mr, hooknum); in alloc_null_binding() [all …]
|
D | ip_nat_core.c | 267 unsigned int hooknum) in find_best_ips_proto() argument 278 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC) { in find_best_ips_proto() 318 if (hooknum == NF_IP_LOCAL_OUT in find_best_ips_proto() 357 unsigned int hooknum) in find_best_ips_proto_fast() argument 363 return find_best_ips_proto(tuple, mr, conntrack, hooknum); in find_best_ips_proto_fast() 366 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC) in find_best_ips_proto_fast() 372 && hooknum == NF_IP_LOCAL_OUT in find_best_ips_proto_fast() 389 unsigned int hooknum) in get_unique_tuple() argument 408 if (hooknum == NF_IP_POST_ROUTING) { in get_unique_tuple() 425 while ((rptr = find_best_ips_proto_fast(tuple, mr, conntrack, hooknum)) in get_unique_tuple() [all …]
|
D | ip_nat_amanda.c | 36 unsigned int hooknum, in amanda_nat_expected() argument 47 IP_NF_ASSERT(!(info->initialized & (1 << HOOK2MANIP(hooknum)))); in amanda_nat_expected() 49 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC) in amanda_nat_expected() 59 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_DST) { in amanda_nat_expected() 67 return ip_nat_setup_info(ct, &mr, hooknum); in amanda_nat_expected() 102 unsigned int hooknum, in help() argument 110 if (!((hooknum == NF_IP_POST_ROUTING && dir == IP_CT_DIR_ORIGINAL) in help() 111 || (hooknum == NF_IP_PRE_ROUTING && dir == IP_CT_DIR_REPLY))) in help()
|
D | ip_nat_irc.c | 53 unsigned int hooknum, in irc_nat_expected() argument 65 IP_NF_ASSERT(!(info->initialized & (1 << HOOK2MANIP(hooknum)))); in irc_nat_expected() 74 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC) in irc_nat_expected() 86 return ip_nat_setup_info(ct, &mr, hooknum); in irc_nat_expected() 151 unsigned int hooknum, in help() argument 168 if (!((hooknum == NF_IP_POST_ROUTING && dir == IP_CT_DIR_ORIGINAL) in help() 169 || (hooknum == NF_IP_PRE_ROUTING && dir == IP_CT_DIR_REPLY))) { in help() 172 hooknum == NF_IP_POST_ROUTING ? "POSTROUTING" in help() 173 : hooknum == NF_IP_PRE_ROUTING ? "PREROUTING" in help() 174 : hooknum == NF_IP_LOCAL_OUT ? "OUTPUT" : "???"); in help()
|
D | ip_nat_ftp.c | 31 unsigned int hooknum, in ftp_nat_expected() argument 44 IP_NF_ASSERT(!(info->initialized & (1<<HOOK2MANIP(hooknum)))); in ftp_nat_expected() 64 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC) in ftp_nat_expected() 78 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_DST) { in ftp_nat_expected() 84 return ip_nat_setup_info(ct, &mr, hooknum); in ftp_nat_expected() 220 unsigned int hooknum, in help() argument 237 if (!((hooknum == NF_IP_POST_ROUTING && dir == IP_CT_DIR_ORIGINAL) in help() 238 || (hooknum == NF_IP_PRE_ROUTING && dir == IP_CT_DIR_REPLY))) { in help() 241 hooknum == NF_IP_POST_ROUTING ? "POSTROUTING" in help() 242 : hooknum == NF_IP_PRE_ROUTING ? "PREROUTING" in help() [all …]
|
D | ipt_REDIRECT.c | 56 unsigned int hooknum, in redirect_target() argument 68 IP_NF_ASSERT(hooknum == NF_IP_PRE_ROUTING in redirect_target() 69 || hooknum == NF_IP_LOCAL_OUT); in redirect_target() 75 if (hooknum == NF_IP_LOCAL_OUT) in redirect_target() 96 return ip_nat_setup_info(ct, &newrange, hooknum); in redirect_target()
|
D | ip_nat_tftp.c | 56 unsigned int hooknum, in tftp_nat_help() argument 65 if (!((hooknum == NF_IP_POST_ROUTING && dir == IP_CT_DIR_ORIGINAL) in tftp_nat_help() 66 || (hooknum == NF_IP_PRE_ROUTING && dir == IP_CT_DIR_REPLY))) in tftp_nat_help() 96 unsigned int hooknum, in tftp_nat_expected() argument 113 IP_NF_ASSERT(!(info->initialized & (1 << HOOK2MANIP(hooknum)))); in tftp_nat_expected() 118 if (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC) { in tftp_nat_expected() 138 return ip_nat_setup_info(ct,&mr,hooknum); in tftp_nat_expected()
|
D | ip_fw_compat.c | 79 fw_in(unsigned int hooknum, in fw_in() argument 103 switch (hooknum) { in fw_in() 168 if (hooknum == NF_IP_PRE_ROUTING) { in fw_in() 171 } else if (hooknum == NF_IP_POST_ROUTING) { in fw_in() 181 if (hooknum == NF_IP_FORWARD) { in fw_in() 192 if (hooknum == NF_IP_PRE_ROUTING) in fw_in() 202 static unsigned int fw_confirm(unsigned int hooknum, in fw_confirm() argument
|
D | ipt_MASQUERADE.c | 60 unsigned int hooknum, in masquerade_target() argument 74 IP_NF_ASSERT(hooknum == NF_IP_POST_ROUTING); in masquerade_target() 124 return ip_nat_setup_info(ct, &newrange, hooknum); in masquerade_target()
|
D | ipt_MIRROR.c | 120 unsigned int hooknum, in ipt_mirror_target() argument 132 if (hooknum != NF_IP_FORWARD) { in ipt_mirror_target() 144 if ((rt = route_mirror(*pskb, hooknum == NF_IP_LOCAL_IN)) == NULL) in ipt_mirror_target()
|
D | ip_conntrack_standalone.c | 185 static unsigned int ip_confirm(unsigned int hooknum, in ip_confirm() argument 195 static unsigned int ip_refrag(unsigned int hooknum, in ip_refrag() argument 204 if (ip_confirm(hooknum, pskb, in, out, okfn) != NF_ACCEPT) in ip_refrag() 218 static unsigned int ip_conntrack_local(unsigned int hooknum, in ip_conntrack_local() argument 231 return ip_conntrack_in(hooknum, pskb, in, out, okfn); in ip_conntrack_local()
|
D | ip_nat_snmp_basic.c | 1221 unsigned int hooknum, in snmp_translate() argument 1263 unsigned int hooknum, in nat_help() argument 1276 if (!((dir == IP_CT_DIR_REPLY && hooknum == NF_IP_PRE_ROUTING && in nat_help() 1278 (dir == IP_CT_DIR_ORIGINAL && hooknum == NF_IP_POST_ROUTING && in nat_help() 1290 dir == IP_CT_DIR_REPLY ? "reply" : "orig", hooknum, in nat_help() 1291 HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC ? "snat" : in nat_help() 1308 int ret = snmp_translate(ct, info, ctinfo, hooknum, pskb); in nat_help()
|
D | ipt_MARK.c | 12 unsigned int hooknum, in target() argument
|
D | ipt_CLASSIFY.c | 20 unsigned int hooknum, in target() argument
|
D | ip_conntrack_core.c | 514 unsigned int hooknum) in icmp_error_track() argument 580 if (hooknum == NF_IP_LOCAL_OUT) in icmp_error_track() 766 unsigned int hooknum, in resolve_normal_ct() argument 814 unsigned int ip_conntrack_in(unsigned int hooknum, in ip_conntrack_in() argument 852 hooknum == NF_IP_PRE_ROUTING ? in ip_conntrack_in() 863 && icmp_error_track(*pskb, &ctinfo, hooknum)) in ip_conntrack_in() 866 if (!(ct = resolve_normal_ct(*pskb, proto,&set_reply,hooknum,&ctinfo))) in ip_conntrack_in()
|
D | ipt_ULOG.c | 159 unsigned int hooknum, in ipt_ulog_target() argument 218 pm->hook = hooknum; in ipt_ulog_target()
|
D | ipt_TOS.c | 12 unsigned int hooknum, in target() argument
|
/linux-2.4.37.9/include/linux/netfilter_ipv4/ |
D | ip_nat.h | 15 #define HOOK2MANIP(hooknum) ((hooknum) != NF_IP_POST_ROUTING && (hooknum) != NF_IP_LOCAL_IN) argument 67 u_int8_t hooknum; member 114 unsigned int hooknum);
|
D | ip_nat_rule.h | 12 unsigned int hooknum, 21 unsigned int hooknum); 26 unsigned int hooknum);
|
D | ip_nat_core.h | 14 unsigned int hooknum, 21 unsigned int hooknum,
|
D | ip_conntrack_core.h | 9 extern unsigned int ip_conntrack_in(unsigned int hooknum, 27 unsigned int hooknum);
|
D | ip_nat_helper.h | 32 unsigned int hooknum, 37 unsigned int hooknum,
|
/linux-2.4.37.9/include/linux/ |
D | netfilter.h | 39 typedef unsigned int nf_hookfn(unsigned int hooknum, 52 int hooknum; member
|
/linux-2.4.37.9/net/ipv6/netfilter/ |
D | ip6t_MARK.c | 12 unsigned int hooknum, in target() argument
|