Home
last modified time | relevance | path

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

/linux-4.1.27/include/net/netfilter/
Dnf_nat.h13 #define HOOK2MANIP(hooknum) ((hooknum) != NF_INET_POST_ROUTING && \ argument
14 (hooknum) != NF_INET_LOCAL_IN)
47 unsigned int hooknum);
64 static inline bool nf_nat_oif_changed(unsigned int hooknum, in nf_nat_oif_changed() argument
71 return nat->masq_index && hooknum == NF_INET_POST_ROUTING && in nf_nat_oif_changed()
Dnf_log.h38 unsigned int hooknum,
75 unsigned int hooknum,
85 unsigned int hooknum,
106 unsigned int hooknum, const struct sk_buff *skb,
Dnf_nat_redirect.h7 unsigned int hooknum);
10 unsigned int hooknum);
Dnf_conntrack_l4proto.h43 unsigned int hooknum,
56 u_int8_t pf, unsigned int hooknum);
Dnf_nat_l3proto.h44 unsigned int hooknum);
77 unsigned int hooknum, unsigned int hdrlen);
Dnfnetlink_log.h7 unsigned int hooknum,
Dnf_nat_core.h11 unsigned int hooknum, struct sk_buff *skb);
Dnf_conntrack_core.h23 unsigned int nf_conntrack_in(struct net *net, u_int8_t pf, unsigned int hooknum,
Dnf_tables.h36 pkt->xt.hooknum = ops->hooknum; in nft_set_pktinfo()
/linux-4.1.27/net/netfilter/
Dxt_NETMAP.c36 if (par->hooknum == NF_INET_PRE_ROUTING || in netmap_tg6()
37 par->hooknum == NF_INET_LOCAL_OUT) in netmap_tg6()
54 return nf_nat_setup_info(ct, &newrange, HOOK2MANIP(par->hooknum)); in netmap_tg6()
75 NF_CT_ASSERT(par->hooknum == NF_INET_PRE_ROUTING || in netmap_tg4()
76 par->hooknum == NF_INET_POST_ROUTING || in netmap_tg4()
77 par->hooknum == NF_INET_LOCAL_OUT || in netmap_tg4()
78 par->hooknum == NF_INET_LOCAL_IN); in netmap_tg4()
83 if (par->hooknum == NF_INET_PRE_ROUTING || in netmap_tg4()
84 par->hooknum == NF_INET_LOCAL_OUT) in netmap_tg4()
99 return nf_nat_setup_info(ct, &newrange, HOOK2MANIP(par->hooknum)); in netmap_tg4()
Dnf_nat_redirect.c34 unsigned int hooknum) in nf_nat_redirect_ipv4() argument
41 NF_CT_ASSERT(hooknum == NF_INET_PRE_ROUTING || in nf_nat_redirect_ipv4()
42 hooknum == NF_INET_LOCAL_OUT); in nf_nat_redirect_ipv4()
48 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv4()
86 unsigned int hooknum) in nf_nat_redirect_ipv6() argument
94 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv6()
Dnft_reject_inet.c32 pkt->ops->hooknum); in nft_reject_inet_eval()
35 nf_send_reset(pkt->skb, pkt->ops->hooknum); in nft_reject_inet_eval()
40 pkt->ops->hooknum); in nft_reject_inet_eval()
48 pkt->ops->hooknum); in nft_reject_inet_eval()
51 nf_send_reset6(net, pkt->skb, pkt->ops->hooknum); in nft_reject_inet_eval()
56 pkt->ops->hooknum); in nft_reject_inet_eval()
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; \
Dxt_REDIRECT.c34 return nf_nat_redirect_ipv6(skb, par->targinfo, par->hooknum); in redirect_tg6()
65 return nf_nat_redirect_ipv4(skb, par->targinfo, par->hooknum); in redirect_tg4()
Dxt_TEE.c122 if (par->hooknum == NF_INET_PRE_ROUTING || in tee_tg4()
123 par->hooknum == NF_INET_LOCAL_IN) in tee_tg4()
184 if (par->hooknum == NF_INET_PRE_ROUTING || in tee_tg6()
185 par->hooknum == NF_INET_LOCAL_IN) { in tee_tg6()
Dnf_tables_inet.c29 if (afi->hooks[ops->hooknum]) in nft_inet_hook_ops_init()
30 ops->hook = afi->hooks[ops->hooknum]; in nft_inet_hook_ops_init()
Dnf_conntrack_proto_udp.c85 unsigned int hooknum, in udp_packet() argument
113 unsigned int hooknum) in udp_error() argument
144 if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && in udp_error()
145 nf_checksum(skb, hooknum, dataoff, IPPROTO_UDP, pf)) { in udp_error()
Dnf_conntrack_proto_udplite.c93 unsigned int hooknum, in udplite_packet() argument
123 unsigned int hooknum) in udplite_error() argument
158 if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && in udplite_error()
159 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_UDP, in udplite_error()
Dcore.c70 list_for_each_entry(elem, &nf_hooks[reg->pf][reg->hooknum], list) { in nf_register_hook()
77 static_key_slow_inc(&nf_hooks_needed[reg->pf][reg->hooknum]); in nf_register_hook()
89 static_key_slow_dec(&nf_hooks_needed[reg->pf][reg->hooknum]); in nf_unregister_hook()
Dnf_log.c193 unsigned int hooknum, in nf_log_packet() argument
214 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_packet()
222 unsigned int hooknum, in nf_log_trace() argument
238 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_trace()
Dxt_NFLOG.c36 nfulnl_log_packet(net, par->family, par->hooknum, skb, par->in, in nflog_tg()
Dxt_LOG.c42 nf_log_packet(net, par->family, par->hooknum, skb, par->in, par->out, in log_tg()
Dnf_conntrack_proto_dccp.c480 u_int8_t pf, unsigned int hooknum, in dccp_packet() argument
573 u_int8_t pf, unsigned int hooknum) in dccp_error() argument
601 if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && in dccp_error()
602 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_DCCP, in dccp_error()
Dnf_nat_core.c464 nf_nat_alloc_null_binding(struct nf_conn *ct, unsigned int hooknum) in nf_nat_alloc_null_binding() argument
466 return __nf_nat_alloc_null_binding(ct, HOOK2MANIP(hooknum)); in nf_nat_alloc_null_binding()
473 unsigned int hooknum, in nf_nat_packet() argument
480 enum nf_nat_manip_type mtype = HOOK2MANIP(hooknum); in nf_nat_packet()
Dxt_osf.c330 nf_log_packet(net, p->family, p->hooknum, skb, in xt_osf_match_packet()
345 nf_log_packet(net, p->family, p->hooknum, skb, p->in, in xt_osf_match_packet()
Dnft_compat.c159 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param()
294 hook_mask = 1 << ops->hooknum; in nft_target_validate()
375 par->hook_mask = 1 << ops->hooknum; in nft_match_set_mtchk_param()
475 hook_mask = 1 << ops->hooknum; in nft_match_validate()
Dnf_conntrack_proto_generic.c82 unsigned int hooknum, in generic_packet() argument
Dnfnetlink_log.c401 unsigned int hooknum, in __build_packet_message() argument
425 pmsg.hook = hooknum; in __build_packet_message()
618 unsigned int hooknum, in nfulnl_log_packet() argument
720 hooknum, in, out, prefix, plen); in nfulnl_log_packet()
Dnf_log_common.c153 unsigned int hooknum, const struct sk_buff *skb, in nf_log_dump_packet_common() argument
Dx_tables.c1197 uint8_t hooknum; in xt_hook_link() local
1205 for (i = 0, hooknum = 0; i < num_hooks && hook_mask != 0; in xt_hook_link()
1206 hook_mask >>= 1, ++hooknum) { in xt_hook_link()
1212 ops[i].hooknum = hooknum; in xt_hook_link()
Dxt_AUDIT.c135 info->type, par->hooknum, skb->len, in audit_tg()
Dnft_log.c36 nf_log_packet(net, pkt->ops->pf, pkt->ops->hooknum, pkt->skb, pkt->in, in nft_log_eval()
Dnf_tables_core.c53 nf_log_trace(net, pkt->xt.family, pkt->ops->hooknum, pkt->skb, pkt->in, in __nft_trace_packet()
Dnf_conntrack_proto_tcp.c757 unsigned int hooknum) in tcp_error() argument
786 if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && in tcp_error()
787 nf_checksum(skb, hooknum, dataoff, IPPROTO_TCP, pf)) { in tcp_error()
817 unsigned int hooknum, in tcp_packet() argument
Dnf_tables_api.c953 if (nla_put_be32(skb, NFTA_HOOK_HOOKNUM, htonl(ops->hooknum))) in nf_tables_fill_chain_info()
1298 u32 hooknum, priority; in nf_tables_newchain() local
1317 hooknum = ntohl(nla_get_be32(ha[NFTA_HOOK_HOOKNUM])); in nf_tables_newchain()
1318 if (hooknum >= afi->nhooks) in nf_tables_newchain()
1322 if (!(type->hook_mask & (1 << hooknum))) in nf_tables_newchain()
1326 hookfn = type->hooks[hooknum]; in nf_tables_newchain()
1360 ops->hooknum = hooknum; in nf_tables_newchain()
1363 ops->hook = afi->hooks[ops->hooknum]; in nf_tables_newchain()
4075 if ((1 << basechain->ops[0].hooknum) & hook_flags) in nft_chain_validate_hooks()
Dnf_conntrack_proto_gre.c256 unsigned int hooknum, in gre_packet() argument
Dnf_conntrack_core.c1059 nf_conntrack_in(struct net *net, u_int8_t pf, unsigned int hooknum, in nf_conntrack_in() argument
1101 pf, hooknum); in nf_conntrack_in()
1134 ret = l4proto->packet(ct, skb, dataoff, ctinfo, pf, hooknum, timeouts); in nf_conntrack_in()
Dnf_conntrack_proto_sctp.c307 unsigned int hooknum, in sctp_packet() argument
/linux-4.1.27/net/ipv6/netfilter/
Dip6t_REJECT.c48 nf_send_unreach6(net, skb, ICMPV6_NOROUTE, par->hooknum); in reject_tg6()
51 nf_send_unreach6(net, skb, ICMPV6_ADM_PROHIBITED, par->hooknum); in reject_tg6()
54 nf_send_unreach6(net, skb, ICMPV6_NOT_NEIGHBOUR, par->hooknum); in reject_tg6()
57 nf_send_unreach6(net, skb, ICMPV6_ADDR_UNREACH, par->hooknum); in reject_tg6()
60 nf_send_unreach6(net, skb, ICMPV6_PORT_UNREACH, par->hooknum); in reject_tg6()
66 nf_send_reset6(net, skb, par->hooknum); in reject_tg6()
Dnf_defrag_ipv6_hooks.c33 static enum ip6_defrag_users nf_ct6_defrag_user(unsigned int hooknum, in nf_ct6_defrag_user() argument
48 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct6_defrag_user()
67 reasm = nf_ct_frag6_gather(skb, nf_ct6_defrag_user(ops->hooknum, skb)); in ipv6_defrag()
78 NF_HOOK_THRESH(NFPROTO_IPV6, ops->hooknum, state->sk, reasm, in ipv6_defrag()
90 .hooknum = NF_INET_PRE_ROUTING,
97 .hooknum = NF_INET_LOCAL_OUT,
Dip6table_nat.c40 return ip6t_do_table(skb, ops->hooknum, state, net->ipv6.ip6table_nat); in ip6table_nat_do_chain()
77 .hooknum = NF_INET_PRE_ROUTING,
85 .hooknum = NF_INET_POST_ROUTING,
93 .hooknum = NF_INET_LOCAL_OUT,
101 .hooknum = NF_INET_LOCAL_IN,
Dip6table_mangle.c82 if (ops->hooknum == NF_INET_LOCAL_OUT) in ip6table_mangle_hook()
84 if (ops->hooknum == NF_INET_POST_ROUTING) in ip6table_mangle_hook()
85 return ip6t_do_table(skb, ops->hooknum, state, in ip6table_mangle_hook()
88 return ip6t_do_table(skb, ops->hooknum, state, in ip6table_mangle_hook()
Dnf_nat_l3proto_ipv6.c199 unsigned int hooknum, in nf_nat_icmpv6_reply_translation() argument
207 enum nf_nat_manip_type manip = HOOK2MANIP(hooknum); in nf_nat_icmpv6_reply_translation()
216 if (nf_ip6_checksum(skb, hooknum, hdrlen, IPPROTO_ICMPV6)) in nf_nat_icmpv6_reply_translation()
275 enum nf_nat_manip_type maniptype = HOOK2MANIP(ops->hooknum); in nf_nat_ipv6_fn()
306 ops->hooknum, in nf_nat_ipv6_fn()
324 if (nf_nat_initialized(ct, HOOK2MANIP(ops->hooknum))) in nf_nat_ipv6_fn()
327 ret = nf_nat_alloc_null_binding(ct, ops->hooknum); in nf_nat_ipv6_fn()
334 if (nf_nat_oif_changed(ops->hooknum, ctinfo, nat, state->out)) in nf_nat_ipv6_fn()
343 if (nf_nat_oif_changed(ops->hooknum, ctinfo, nat, state->out)) in nf_nat_ipv6_fn()
347 return nf_nat_packet(ct, ctinfo, ops->hooknum, skb); in nf_nat_ipv6_fn()
Dnf_conntrack_l3proto_ipv6.c172 return nf_conntrack_in(dev_net(state->in), PF_INET6, ops->hooknum, skb); in ipv6_conntrack_in()
184 return nf_conntrack_in(dev_net(state->out), PF_INET6, ops->hooknum, skb); in ipv6_conntrack_local()
192 .hooknum = NF_INET_PRE_ROUTING,
199 .hooknum = NF_INET_LOCAL_OUT,
206 .hooknum = NF_INET_POST_ROUTING,
213 .hooknum = NF_INET_POST_ROUTING,
220 .hooknum = NF_INET_LOCAL_IN,
227 .hooknum = NF_INET_LOCAL_IN,
Dnf_conntrack_proto_icmpv6.c107 unsigned int hooknum, in icmpv6_packet() argument
148 unsigned int hooknum) in icmpv6_error_message() argument
198 enum ip_conntrack_info *ctinfo, u_int8_t pf, unsigned int hooknum) in icmpv6_error() argument
212 if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && in icmpv6_error()
213 nf_ip6_checksum(skb, hooknum, dataoff, IPPROTO_ICMPV6)) { in icmpv6_error()
233 return icmpv6_error_message(net, tmpl, skb, dataoff, ctinfo, hooknum); in icmpv6_error()
Dnft_reject_ipv6.c32 pkt->ops->hooknum); in nft_reject_ipv6_eval()
35 nf_send_reset6(net, pkt->skb, pkt->ops->hooknum); in nft_reject_ipv6_eval()
Dnf_reject_ipv6.c236 unsigned char code, unsigned int hooknum) in nf_send_unreach6() argument
238 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6()
241 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6()
Dnft_redir_ipv6.c39 pkt->ops->hooknum); in nft_redir_ipv6_eval()
Dip6table_raw.c27 return ip6t_do_table(skb, ops->hooknum, state, net->ipv6.ip6table_raw); in ip6table_raw_hook()
Dip6table_security.c44 return ip6t_do_table(skb, ops->hooknum, state, in ip6table_security_hook()
Dip6table_filter.c40 return ip6t_do_table(skb, ops->hooknum, state, net->ipv6.ip6table_filter); in ip6table_filter_hook()
Dnf_log_ipv6.c345 unsigned int hooknum, const struct sk_buff *skb, in nf_log_ip6_packet() argument
362 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, in nf_log_ip6_packet()
Dip6t_SYNPROXY.c279 if (nf_ip6_checksum(skb, par->hooknum, par->thoff, IPPROTO_TCP)) in synproxy_tg6()
460 .hooknum = NF_INET_LOCAL_IN,
467 .hooknum = NF_INET_POST_ROUTING,
Dip6_tables.c347 acpar.hooknum = hook; in ip6t_do_table()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_core.c658 static inline enum ip_defrag_users ip_vs_defrag_user(unsigned int hooknum) in ip_vs_defrag_user() argument
660 if (NF_INET_LOCAL_IN == hooknum) in ip_vs_defrag_user()
662 if (NF_INET_FORWARD == hooknum) in ip_vs_defrag_user()
681 unsigned int hooknum) in ip_vs_route_me_harder() argument
686 if (NF_INET_LOCAL_IN == hooknum) in ip_vs_route_me_harder()
821 unsigned int hooknum) in handle_response_icmp() argument
851 if (ip_vs_route_me_harder(af, skb, hooknum)) in handle_response_icmp()
876 unsigned int hooknum) in ip_vs_out_icmp() argument
891 if (ip_vs_gather_frags(skb, ip_vs_defrag_user(hooknum))) in ip_vs_out_icmp()
946 pp, ciph.len, ihl, hooknum); in ip_vs_out_icmp()
[all …]
Dip_vs_xmit.c1231 struct ip_vs_protocol *pp, int offset, unsigned int hooknum, in ip_vs_icmp_xmit() argument
1260 rt_mode = (hooknum != NF_INET_FORWARD) ? in ip_vs_icmp_xmit()
1324 struct ip_vs_protocol *pp, int offset, unsigned int hooknum, in ip_vs_icmp_xmit_v6() argument
1352 rt_mode = (hooknum != NF_INET_FORWARD) ? in ip_vs_icmp_xmit_v6()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_defrag_ipv4.c43 static enum ip_defrag_users nf_ct_defrag_user(unsigned int hooknum, in nf_ct_defrag_user() argument
58 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct_defrag_user()
86 nf_ct_defrag_user(ops->hooknum, skb); in ipv4_conntrack_defrag()
99 .hooknum = NF_INET_PRE_ROUTING,
106 .hooknum = NF_INET_LOCAL_OUT,
Diptable_nat.c38 return ipt_do_table(skb, ops->hooknum, state, net->ipv4.nat_table); in iptable_nat_do_chain()
75 .hooknum = NF_INET_PRE_ROUTING,
83 .hooknum = NF_INET_POST_ROUTING,
91 .hooknum = NF_INET_LOCAL_OUT,
99 .hooknum = NF_INET_LOCAL_IN,
Diptable_mangle.c87 if (ops->hooknum == NF_INET_LOCAL_OUT) in iptable_mangle_hook()
89 if (ops->hooknum == NF_INET_POST_ROUTING) in iptable_mangle_hook()
90 return ipt_do_table(skb, ops->hooknum, state, in iptable_mangle_hook()
93 return ipt_do_table(skb, ops->hooknum, state, in iptable_mangle_hook()
Dnf_nat_l3proto_ipv4.c193 unsigned int hooknum) in nf_nat_icmp_reply_translation() argument
200 enum nf_nat_manip_type manip = HOOK2MANIP(hooknum); in nf_nat_icmp_reply_translation()
210 if (nf_ip_checksum(skb, hooknum, hdrlen, 0)) in nf_nat_icmp_reply_translation()
269 enum nf_nat_manip_type maniptype = HOOK2MANIP(ops->hooknum); in nf_nat_ipv4_fn()
298 ops->hooknum)) in nf_nat_ipv4_fn()
315 if (nf_nat_initialized(ct, HOOK2MANIP(ops->hooknum))) in nf_nat_ipv4_fn()
318 ret = nf_nat_alloc_null_binding(ct, ops->hooknum); in nf_nat_ipv4_fn()
325 if (nf_nat_oif_changed(ops->hooknum, ctinfo, nat, in nf_nat_ipv4_fn()
335 if (nf_nat_oif_changed(ops->hooknum, ctinfo, nat, state->out)) in nf_nat_ipv4_fn()
339 return nf_nat_packet(ct, ctinfo, ops->hooknum, skb); in nf_nat_ipv4_fn()
Dnf_conntrack_l3proto_ipv4.c150 return nf_conntrack_in(dev_net(state->in), PF_INET, ops->hooknum, skb); in ipv4_conntrack_in()
161 return nf_conntrack_in(dev_net(state->out), PF_INET, ops->hooknum, skb); in ipv4_conntrack_local()
171 .hooknum = NF_INET_PRE_ROUTING,
178 .hooknum = NF_INET_LOCAL_OUT,
185 .hooknum = NF_INET_POST_ROUTING,
192 .hooknum = NF_INET_POST_ROUTING,
199 .hooknum = NF_INET_LOCAL_IN,
206 .hooknum = NF_INET_LOCAL_IN,
Dnft_reject_ipv4.c31 pkt->ops->hooknum); in nft_reject_ipv4_eval()
34 nf_send_reset(pkt->skb, pkt->ops->hooknum); in nft_reject_ipv4_eval()
Dnf_conntrack_proto_icmp.c95 unsigned int hooknum, in icmp_packet() argument
132 unsigned int hooknum) in icmp_error_message() argument
182 enum ip_conntrack_info *ctinfo, u_int8_t pf, unsigned int hooknum) in icmp_error() argument
197 if (net->ct.sysctl_checksum && hooknum == NF_INET_PRE_ROUTING && in icmp_error()
198 nf_ip_checksum(skb, hooknum, dataoff, 0)) { in icmp_error()
226 return icmp_error_message(net, tmpl, skb, ctinfo, hooknum); in icmp_error()
Diptable_raw.c28 if (ops->hooknum == NF_INET_LOCAL_OUT && in iptable_raw_hook()
35 return ipt_do_table(skb, ops->hooknum, state, net->ipv4.iptable_raw); in iptable_raw_hook()
Diptable_security.c45 if (ops->hooknum == NF_INET_LOCAL_OUT && in iptable_security_hook()
52 return ipt_do_table(skb, ops->hooknum, state, in iptable_security_hook()
Diptable_filter.c41 if (ops->hooknum == NF_INET_LOCAL_OUT && in iptable_filter_hook()
48 return ipt_do_table(skb, ops->hooknum, state, net->ipv4.iptable_filter); in iptable_filter_hook()
Dnf_log_arp.c81 unsigned int hooknum, const struct sk_buff *skb, in nf_log_arp_packet() argument
98 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, loginfo, in nf_log_arp_packet()
Dnf_nat_masquerade_ipv4.c26 nf_nat_masquerade_ipv4(struct sk_buff *skb, unsigned int hooknum, in nf_nat_masquerade_ipv4() argument
37 NF_CT_ASSERT(hooknum == NF_INET_POST_ROUTING); in nf_nat_masquerade_ipv4()
Dnft_masq_ipv4.c29 regs->verdict.code = nf_nat_masquerade_ipv4(pkt->skb, pkt->ops->hooknum, in nft_masq_ipv4_eval()
Dipt_MASQUERADE.c58 return nf_nat_masquerade_ipv4(skb, par->hooknum, &range, par->out); in masquerade_tg()
Dnft_redir_ipv4.c39 pkt->ops->hooknum); in nft_redir_ipv4_eval()
Darptable_filter.c35 return arpt_do_table(skb, ops->hooknum, state, in arptable_filter_hook()
Dipt_REJECT.c37 int hook = par->hooknum; in reject_tg()
Dnf_log_ipv4.c313 unsigned int hooknum, const struct sk_buff *skb, in nf_log_ip_packet() argument
330 nf_log_dump_packet_common(m, pf, hooknum, skb, in, in nf_log_ip_packet()
Dipt_SYNPROXY.c264 if (nf_ip_checksum(skb, par->hooknum, par->thoff, IPPROTO_TCP)) in synproxy_tg4()
437 .hooknum = NF_INET_LOCAL_IN,
444 .hooknum = NF_INET_POST_ROUTING,
Dipt_CLUSTERIP.c561 .hooknum = NF_ARP_OUT,
Darp_tables.c285 acpar.hooknum = hook; in arpt_do_table()
Dip_tables.c322 acpar.hooknum = hook; in ipt_do_table()
/linux-4.1.27/net/bridge/netfilter/
Debtable_filter.c63 return ebt_do_table(ops->hooknum, skb, state->in, state->out, in ebt_in_hook()
71 return ebt_do_table(ops->hooknum, skb, state->in, state->out, in ebt_out_hook()
80 .hooknum = NF_BR_LOCAL_IN,
87 .hooknum = NF_BR_FORWARD,
94 .hooknum = NF_BR_LOCAL_OUT,
Debtable_nat.c63 return ebt_do_table(ops->hooknum, skb, state->in, state->out, in ebt_nat_in()
71 return ebt_do_table(ops->hooknum, skb, state->in, state->out, in ebt_nat_out()
80 .hooknum = NF_BR_LOCAL_OUT,
87 .hooknum = NF_BR_POST_ROUTING,
94 .hooknum = NF_BR_PRE_ROUTING,
Dnf_log_bridge.c20 unsigned int hooknum, in nf_log_bridge_packet() argument
29 nf_log_packet(net, NFPROTO_IPV4, hooknum, skb, in, out, in nf_log_bridge_packet()
33 nf_log_packet(net, NFPROTO_IPV6, hooknum, skb, in, out, in nf_log_bridge_packet()
38 nf_log_packet(net, NFPROTO_ARP, hooknum, skb, in, out, in nf_log_bridge_packet()
Dnft_reject_bridge.c276 pkt->ops->hooknum, in nft_reject_bridge_eval()
281 pkt->ops->hooknum); in nft_reject_bridge_eval()
285 pkt->ops->hooknum, in nft_reject_bridge_eval()
294 pkt->ops->hooknum, in nft_reject_bridge_eval()
299 pkt->ops->hooknum); in nft_reject_bridge_eval()
303 pkt->ops->hooknum, in nft_reject_bridge_eval()
Debt_log.c75 ebt_log_packet(struct net *net, u_int8_t pf, unsigned int hooknum, in ebt_log_packet() argument
194 nf_log_packet(net, NFPROTO_BRIDGE, par->hooknum, skb, in ebt_log_tg()
197 ebt_log_packet(net, NFPROTO_BRIDGE, par->hooknum, skb, par->in, in ebt_log_tg()
Debt_nflog.c34 nf_log_packet(net, PF_BRIDGE, par->hooknum, skb, par->in, in ebt_nflog_tg()
Debt_redirect.c26 if (par->hooknum != NF_BR_BROUTING) in ebt_redirect_tg()
Debtables.c205 acpar.hooknum = hook; in ebt_do_table()
/linux-4.1.27/security/smack/
Dsmack_netfilter.c62 .hooknum = NF_INET_LOCAL_OUT,
70 .hooknum = NF_INET_LOCAL_OUT,
/linux-4.1.27/include/net/netfilter/ipv4/
Dnf_nat_masquerade.h7 nf_nat_masquerade_ipv4(struct sk_buff *skb, unsigned int hooknum,
/linux-4.1.27/include/net/netfilter/ipv6/
Dnf_reject.h7 unsigned int hooknum);
/linux-4.1.27/net/bridge/
Dbr_netfilter.c995 .hooknum = NF_BR_PRE_ROUTING,
1002 .hooknum = NF_BR_LOCAL_IN,
1009 .hooknum = NF_BR_FORWARD,
1016 .hooknum = NF_BR_FORWARD,
1023 .hooknum = NF_BR_POST_ROUTING,
1030 .hooknum = NF_INET_PRE_ROUTING,
1037 .hooknum = NF_INET_PRE_ROUTING,
/linux-4.1.27/net/sched/
Dem_ipset.c80 acpar.hooknum = 0; in em_ipset_match()
Dact_ipt.c194 par.hooknum = ipt->tcfi_hook; in tcf_ipt()
/linux-4.1.27/net/decnet/netfilter/
Ddn_rtmsg.c119 .hooknum = NF_DN_ROUTE,
/linux-4.1.27/include/linux/netfilter/
Dx_tables.h39 unsigned int hooknum; member
/linux-4.1.27/include/linux/
Dnetfilter.h89 unsigned int hooknum; member
/linux-4.1.27/include/net/
Dip_vs.h1434 unsigned int hooknum, struct ip_vs_iphdr *iph);
1448 unsigned int hooknum, struct ip_vs_iphdr *iph);
/linux-4.1.27/security/selinux/
Dhooks.c6117 .hooknum = NF_INET_POST_ROUTING,
6124 .hooknum = NF_INET_FORWARD,
6131 .hooknum = NF_INET_LOCAL_OUT,
6139 .hooknum = NF_INET_POST_ROUTING,
6146 .hooknum = NF_INET_FORWARD,