Home
last modified time | relevance | path

Searched refs:hooknum (Results 1 – 25 of 40) sorted by relevance

12

/linux-2.4.37.9/net/ipv4/netfilter/
Dip_nat_standalone.c46 #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 …]
Dip_nat_rule.c110 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 …]
Dip_nat_core.c267 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 …]
Dip_nat_amanda.c36 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()
Dip_nat_irc.c53 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()
Dip_nat_ftp.c31 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 …]
Dipt_REDIRECT.c56 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()
Dip_nat_tftp.c56 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()
Dip_fw_compat.c79 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
Dipt_MASQUERADE.c60 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()
Dipt_MIRROR.c120 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()
Dip_conntrack_standalone.c185 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()
Dip_nat_snmp_basic.c1221 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()
Dipt_MARK.c12 unsigned int hooknum, in target() argument
Dipt_CLASSIFY.c20 unsigned int hooknum, in target() argument
Dip_conntrack_core.c514 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()
Dipt_ULOG.c159 unsigned int hooknum, in ipt_ulog_target() argument
218 pm->hook = hooknum; in ipt_ulog_target()
Dipt_TOS.c12 unsigned int hooknum, in target() argument
/linux-2.4.37.9/include/linux/netfilter_ipv4/
Dip_nat.h15 #define HOOK2MANIP(hooknum) ((hooknum) != NF_IP_POST_ROUTING && (hooknum) != NF_IP_LOCAL_IN) argument
67 u_int8_t hooknum; member
114 unsigned int hooknum);
Dip_nat_rule.h12 unsigned int hooknum,
21 unsigned int hooknum);
26 unsigned int hooknum);
Dip_nat_core.h14 unsigned int hooknum,
21 unsigned int hooknum,
Dip_conntrack_core.h9 extern unsigned int ip_conntrack_in(unsigned int hooknum,
27 unsigned int hooknum);
Dip_nat_helper.h32 unsigned int hooknum,
37 unsigned int hooknum,
/linux-2.4.37.9/include/linux/
Dnetfilter.h39 typedef unsigned int nf_hookfn(unsigned int hooknum,
52 int hooknum; member
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_MARK.c12 unsigned int hooknum, in target() argument

12