Searched refs:hooknum (Results 1 - 25 of 79) sorted by relevance

1234

/net/netfilter/
H A Dxt_repldata.h19 unsigned int bytes = 0, hooknum = 0, i = 0; \
37 for (; hook_mask != 0; hook_mask >>= 1, ++hooknum) { \
40 tbl->repl.hook_entry[hooknum] = bytes; \
41 tbl->repl.underflow[hooknum] = bytes; \
H A Dxt_NETMAP.c36 if (par->hooknum == NF_INET_PRE_ROUTING ||
37 par->hooknum == NF_INET_LOCAL_OUT)
54 return nf_nat_setup_info(ct, &newrange, HOOK2MANIP(par->hooknum));
75 NF_CT_ASSERT(par->hooknum == NF_INET_PRE_ROUTING ||
76 par->hooknum == NF_INET_POST_ROUTING ||
77 par->hooknum == NF_INET_LOCAL_OUT ||
78 par->hooknum == NF_INET_LOCAL_IN);
83 if (par->hooknum == NF_INET_PRE_ROUTING ||
84 par->hooknum == NF_INET_LOCAL_OUT)
99 return nf_nat_setup_info(ct, &newrange, HOOK2MANIP(par->hooknum));
[all...]
H A Dnft_reject_inet.c34 nf_send_reset(pkt->skb, pkt->ops->hooknum);
46 pkt->ops->hooknum);
49 nf_send_reset6(net, pkt->skb, pkt->ops->hooknum);
54 pkt->ops->hooknum);
H A Dxt_REDIRECT.c42 if (par->hooknum == NF_INET_LOCAL_OUT)
107 NF_CT_ASSERT(par->hooknum == NF_INET_PRE_ROUTING ||
108 par->hooknum == NF_INET_LOCAL_OUT);
114 if (par->hooknum == NF_INET_LOCAL_OUT)
H A Dnf_tables_inet.c29 if (afi->hooks[ops->hooknum])
30 ops->hook = afi->hooks[ops->hooknum];
/net/ipv6/netfilter/
H A Dip6t_REJECT.c48 nf_send_unreach6(net, skb, ICMPV6_NOROUTE, par->hooknum);
51 nf_send_unreach6(net, skb, ICMPV6_ADM_PROHIBITED, par->hooknum);
54 nf_send_unreach6(net, skb, ICMPV6_NOT_NEIGHBOUR, par->hooknum);
57 nf_send_unreach6(net, skb, ICMPV6_ADDR_UNREACH, par->hooknum);
60 nf_send_unreach6(net, skb, ICMPV6_PORT_UNREACH, par->hooknum);
66 nf_send_reset6(net, skb, par->hooknum);
H A Dnf_defrag_ipv6_hooks.c33 static enum ip6_defrag_users nf_ct6_defrag_user(unsigned int hooknum, argument
48 if (hooknum == NF_INET_PRE_ROUTING)
69 reasm = nf_ct_frag6_gather(skb, nf_ct6_defrag_user(ops->hooknum, skb));
80 NF_HOOK_THRESH(NFPROTO_IPV6, ops->hooknum, reasm,
92 .hooknum = NF_INET_PRE_ROUTING,
99 .hooknum = NF_INET_LOCAL_OUT,
H A Dnft_reject_ipv6.c32 pkt->ops->hooknum);
35 nf_send_reset6(net, pkt->skb, pkt->ops->hooknum);
H A Dip6table_nat.c41 return ip6t_do_table(skb, ops->hooknum, in, out, net->ipv6.ip6table_nat);
86 .hooknum = NF_INET_PRE_ROUTING,
94 .hooknum = NF_INET_POST_ROUTING,
102 .hooknum = NF_INET_LOCAL_OUT,
110 .hooknum = NF_INET_LOCAL_IN,
H A Dip6table_mangle.c83 if (ops->hooknum == NF_INET_LOCAL_OUT)
85 if (ops->hooknum == NF_INET_POST_ROUTING)
86 return ip6t_do_table(skb, ops->hooknum, in, out,
89 return ip6t_do_table(skb, ops->hooknum, in, out,
H A Dnf_conntrack_l3proto_ipv6.c178 return nf_conntrack_in(dev_net(in), PF_INET6, ops->hooknum, skb);
192 return nf_conntrack_in(dev_net(out), PF_INET6, ops->hooknum, skb);
200 .hooknum = NF_INET_PRE_ROUTING,
207 .hooknum = NF_INET_LOCAL_OUT,
214 .hooknum = NF_INET_POST_ROUTING,
221 .hooknum = NF_INET_POST_ROUTING,
228 .hooknum = NF_INET_LOCAL_IN,
235 .hooknum = NF_INET_LOCAL_IN,
/net/bridge/netfilter/
H A Dnf_log_bridge.c20 unsigned int hooknum,
29 nf_log_packet(net, NFPROTO_IPV4, hooknum, skb, in, out,
33 nf_log_packet(net, NFPROTO_IPV6, hooknum, skb, in, out,
38 nf_log_packet(net, NFPROTO_ARP, hooknum, skb, in, out,
19 nf_log_bridge_packet(struct net *net, u_int8_t pf, unsigned int hooknum, const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct nf_loginfo *loginfo, const char *prefix) argument
H A Debtable_filter.c64 return ebt_do_table(ops->hooknum, skb, in, out,
73 return ebt_do_table(ops->hooknum, skb, in, out,
82 .hooknum = NF_BR_LOCAL_IN,
89 .hooknum = NF_BR_FORWARD,
96 .hooknum = NF_BR_LOCAL_OUT,
H A Debtable_nat.c64 return ebt_do_table(ops->hooknum, skb, in, out,
73 return ebt_do_table(ops->hooknum, skb, in, out,
82 .hooknum = NF_BR_LOCAL_OUT,
89 .hooknum = NF_BR_POST_ROUTING,
96 .hooknum = NF_BR_PRE_ROUTING,
H A Debt_nflog.c34 nf_log_packet(net, PF_BRIDGE, par->hooknum, skb, par->in,
H A Debt_redirect.c26 if (par->hooknum != NF_BR_BROUTING)
/net/ipv4/netfilter/
H A Dnf_defrag_ipv4.c43 static enum ip_defrag_users nf_ct_defrag_user(unsigned int hooknum, argument
58 if (hooknum == NF_INET_PRE_ROUTING)
88 nf_ct_defrag_user(ops->hooknum, skb);
101 .hooknum = NF_INET_PRE_ROUTING,
108 .hooknum = NF_INET_LOCAL_OUT,
H A Diptable_nat.c39 return ipt_do_table(skb, ops->hooknum, in, out, net->ipv4.nat_table);
84 .hooknum = NF_INET_PRE_ROUTING,
92 .hooknum = NF_INET_POST_ROUTING,
100 .hooknum = NF_INET_LOCAL_OUT,
108 .hooknum = NF_INET_LOCAL_IN,
H A Diptable_mangle.c88 if (ops->hooknum == NF_INET_LOCAL_OUT)
90 if (ops->hooknum == NF_INET_POST_ROUTING)
91 return ipt_do_table(skb, ops->hooknum, in, out,
94 return ipt_do_table(skb, ops->hooknum, in, out,
H A Diptable_filter.c42 if (ops->hooknum == NF_INET_LOCAL_OUT &&
49 return ipt_do_table(skb, ops->hooknum, in, out,
H A Diptable_raw.c29 if (ops->hooknum == NF_INET_LOCAL_OUT &&
36 return ipt_do_table(skb, ops->hooknum, in, out, net->ipv4.iptable_raw);
H A Diptable_security.c47 if (ops->hooknum == NF_INET_LOCAL_OUT &&
54 return ipt_do_table(skb, ops->hooknum, in, out,
H A Dnf_conntrack_l3proto_ipv4.c156 return nf_conntrack_in(dev_net(in), PF_INET, ops->hooknum, skb);
169 return nf_conntrack_in(dev_net(out), PF_INET, ops->hooknum, skb);
179 .hooknum = NF_INET_PRE_ROUTING,
186 .hooknum = NF_INET_LOCAL_OUT,
193 .hooknum = NF_INET_POST_ROUTING,
200 .hooknum = NF_INET_POST_ROUTING,
207 .hooknum = NF_INET_LOCAL_IN,
214 .hooknum = NF_INET_LOCAL_IN,
H A Dnf_log_arp.c78 unsigned int hooknum, const struct sk_buff *skb,
95 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, loginfo,
77 nf_log_arp_packet(struct net *net, u_int8_t pf, unsigned int hooknum, const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct nf_loginfo *loginfo, const char *prefix) argument
/net/netfilter/ipvs/
H A Dip_vs_core.c640 static inline enum ip_defrag_users ip_vs_defrag_user(unsigned int hooknum) argument
642 if (NF_INET_LOCAL_IN == hooknum)
644 if (NF_INET_FORWARD == hooknum)
849 unsigned int hooknum)
864 if (ip_vs_gather_frags(skb, ip_vs_defrag_user(hooknum)))
924 unsigned int hooknum, struct ip_vs_iphdr *ipvsh)
1109 ip_vs_out(unsigned int hooknum, struct sk_buff *skb, int af) argument
1124 if (unlikely(skb->sk != NULL && hooknum == NF_INET_LOCAL_OUT &&
1146 hooknum, &iph);
1155 int verdict = ip_vs_out_icmp(skb, &related, hooknum);
848 ip_vs_out_icmp(struct sk_buff *skb, int *related, unsigned int hooknum) argument
923 ip_vs_out_icmp_v6(struct sk_buff *skb, int *related, unsigned int hooknum, struct ip_vs_iphdr *ipvsh) argument
1292 ip_vs_in_icmp(struct sk_buff *skb, int *related, unsigned int hooknum) argument
1465 ip_vs_in_icmp_v6(struct sk_buff *skb, int *related, unsigned int hooknum, struct ip_vs_iphdr *iph) argument
1568 ip_vs_in(unsigned int hooknum, struct sk_buff *skb, int af) argument
[all...]

Completed in 939 milliseconds

1234