| /net/netfilter/ |
| A D | core.c | 318 if (hooknum == NF_NETDEV_INGRESS) { in nf_hook_entry_head() 324 if (hooknum == NF_NETDEV_EGRESS) { in nf_hook_entry_head() 334 int hooknum) in nf_ingress_check() argument 337 if (reg->hooknum == hooknum) in nf_ingress_check() 340 if (reg->hooknum != hooknum || in nf_ingress_check() 366 int hooknum; in nf_static_key_inc() local 370 hooknum = NF_NETDEV_INGRESS; in nf_static_key_inc() 372 hooknum = reg->hooknum; in nf_static_key_inc() 381 int hooknum; in nf_static_key_dec() local 385 hooknum = NF_NETDEV_INGRESS; in nf_static_key_dec() [all …]
|
| A D | nf_nat_ovs.c | 16 int hooknum, err = NF_ACCEPT; in nf_ct_nat_execute() local 20 hooknum = NF_INET_LOCAL_IN; /* Source NAT */ in nf_ct_nat_execute() 22 hooknum = NF_INET_LOCAL_OUT; /* Destination NAT */ in nf_ct_nat_execute() 30 hooknum)) in nf_ct_nat_execute() 43 hooknum, in nf_ct_nat_execute() 62 : nf_nat_alloc_null_binding(ct, hooknum); in nf_ct_nat_execute() 77 err = nf_nat_packet(ct, ctinfo, hooknum, skb); in nf_ct_nat_execute()
|
| A D | nf_nat_redirect.c | 51 unsigned int hooknum) in nf_nat_redirect_ipv4() argument 55 WARN_ON(hooknum != NF_INET_PRE_ROUTING && in nf_nat_redirect_ipv4() 56 hooknum != NF_INET_LOCAL_OUT); in nf_nat_redirect_ipv4() 59 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv4() 105 unsigned int hooknum) in nf_nat_redirect_ipv6() argument 109 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv6()
|
| A D | nfnetlink_hook.c | 200 u32 hooknum; in nfnl_hook_dump_one() local 238 if (ops->pf == NFPROTO_INET && ops->hooknum == NF_INET_INGRESS) in nfnl_hook_dump_one() 239 hooknum = NF_NETDEV_INGRESS; in nfnl_hook_dump_one() 241 hooknum = ops->hooknum; in nfnl_hook_dump_one() 243 ret = nla_put_be32(nlskb, NFNLA_HOOK_HOOKNUM, htonl(hooknum)); in nfnl_hook_dump_one() 390 u32 hooknum; in nfnl_hook_dump_start() local 392 hooknum = ntohl(nla_get_be32(nla[NFNLA_HOOK_HOOKNUM])); in nfnl_hook_dump_start() 393 if (hooknum > 255) in nfnl_hook_dump_start() 405 head = nfnl_hook_entries_head(family, hooknum, net, name); in nfnl_hook_dump_start() 417 ctx->hook = hooknum; in nfnl_hook_dump_start()
|
| A D | xt_repldata.h | 20 unsigned int bytes = 0, hooknum = 0, i = 0; \ 38 for (; hook_mask != 0; hook_mask >>= 1, ++hooknum) { \ 41 tbl->repl.hook_entry[hooknum] = bytes; \ 42 tbl->repl.underflow[hooknum] = bytes; \
|
| A D | nf_log_syslog.c | 111 unsigned int hooknum, const struct sk_buff *skb, in nf_log_dump_packet_common() argument 135 unsigned int hooknum, const struct sk_buff *skb, in nf_log_arp_packet() argument 151 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, loginfo, in nf_log_arp_packet() 834 unsigned int hooknum, const struct sk_buff *skb, in nf_log_ip_packet() argument 850 nf_log_dump_packet_common(m, pf, hooknum, skb, in, in nf_log_ip_packet() 869 unsigned int hooknum, const struct sk_buff *skb, in nf_log_ip6_packet() argument 885 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, in nf_log_ip6_packet() 904 unsigned int hooknum, in nf_log_unknown_packet() argument 921 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, loginfo, in nf_log_unknown_packet() 930 unsigned int hooknum, in nf_log_netdev_packet() argument [all …]
|
| A D | nf_bpf_link.c | 147 nf_link->hook_ops.pf, nf_link->hook_ops.hooknum, in bpf_nf_link_show_info() 158 info->netfilter.hooknum = nf_link->hook_ops.hooknum; in bpf_nf_link_fill_link_info() 187 if (attr->link_create.netfilter.hooknum >= NF_INET_NUMHOOKS) in bpf_nf_check_pf_and_hooks() 237 link->hook_ops.hooknum = attr->link_create.netfilter.hooknum; in bpf_nf_link_attach()
|
| A D | nf_nat_core.c | 873 return __nf_nat_alloc_null_binding(ct, HOOK2MANIP(hooknum)); in nf_nat_alloc_null_binding() 880 unsigned int hooknum, in nf_nat_packet() argument 883 enum nf_nat_manip_type mtype = HOOK2MANIP(hooknum); in nf_nat_packet() 1198 unsigned int hooknum = ops->hooknum; in nf_nat_register_fn() local 1208 if (orig_nat_ops[i].hooknum == hooknum) { in nf_nat_register_fn() 1209 hooknum = i; in nf_nat_register_fn() 1253 priv = nat_ops[hooknum].priv; in nf_nat_register_fn() 1274 int hooknum = ops->hooknum; in nf_nat_unregister_fn() local 1290 if (nat_ops[i].hooknum == hooknum) { in nf_nat_unregister_fn() 1291 hooknum = i; in nf_nat_unregister_fn() [all …]
|
| A D | nf_nat_proto.c | 519 unsigned int hooknum) in nf_nat_icmp_reply_translation() argument 526 enum nf_nat_manip_type manip = HOOK2MANIP(hooknum); in nf_nat_icmp_reply_translation() 790 .hooknum = NF_INET_PRE_ROUTING, 797 .hooknum = NF_INET_POST_ROUTING, 804 .hooknum = NF_INET_LOCAL_OUT, 811 .hooknum = NF_INET_LOCAL_IN, 833 unsigned int hooknum, in nf_nat_icmpv6_reply_translation() argument 1051 .hooknum = NF_INET_PRE_ROUTING, 1058 .hooknum = NF_INET_POST_ROUTING, 1065 .hooknum = NF_INET_LOCAL_OUT, [all …]
|
| A D | nf_conntrack_proto.c | 236 .hooknum = NF_INET_PRE_ROUTING, 242 .hooknum = NF_INET_LOCAL_OUT, 248 .hooknum = NF_INET_POST_ROUTING, 254 .hooknum = NF_INET_LOCAL_IN, 393 .hooknum = NF_INET_PRE_ROUTING, 399 .hooknum = NF_INET_LOCAL_OUT, 405 .hooknum = NF_INET_POST_ROUTING, 411 .hooknum = NF_INET_LOCAL_IN,
|
| A D | nf_log.c | 239 unsigned int hooknum, in nf_log_packet() argument 260 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_packet() 268 unsigned int hooknum, in nf_log_trace() argument 284 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_trace()
|
| A D | nfnetlink_osf.c | 198 int hooknum, struct net_device *in, struct net_device *out, in nf_osf_match() argument 235 nf_log_packet(net, family, hooknum, skb, in nf_osf_match() 249 nf_log_packet(net, family, hooknum, skb, in, out, NULL, in nf_osf_match()
|
| A D | nfnetlink_log.c | 461 unsigned int hooknum, in __build_packet_message() argument 482 pmsg.hook = hooknum; in __build_packet_message() 601 if (hooknum <= NF_INET_FORWARD) { in __build_packet_message() 686 unsigned int hooknum, in nfulnl_log_packet() argument 806 hooknum, in, out, prefix, plen, in nfulnl_log_packet()
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_core.c | 861 unsigned int hooknum) in handle_response_icmp() argument 1045 hooknum); in ip_vs_out_icmp_v6() 1260 unsigned int hooknum) in handle_response() argument 1365 hooknum, &iph); in ip_vs_out_hook() 1417 hooknum); in ip_vs_out_hook() 1582 unsigned int hooknum) in ip_vs_in_icmp() argument 1962 hooknum, &iph); in ip_vs_in_hook() 1972 hooknum); in ip_vs_in_hook() 2169 .hooknum = NF_INET_FORWARD, 2176 .hooknum = NF_INET_FORWARD, [all …]
|
| /net/ipv6/netfilter/ |
| A D | ip6table_nat.c | 38 .hooknum = NF_INET_PRE_ROUTING, 44 .hooknum = NF_INET_POST_ROUTING, 50 .hooknum = NF_INET_LOCAL_OUT, 56 .hooknum = NF_INET_LOCAL_IN,
|
| A D | nf_defrag_ipv6_hooks.c | 31 static enum ip6_defrag_users nf_ct6_defrag_user(unsigned int hooknum, in nf_ct6_defrag_user() argument 46 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct6_defrag_user() 80 .hooknum = NF_INET_PRE_ROUTING, 86 .hooknum = NF_INET_LOCAL_OUT,
|
| A D | nf_dup_ipv6.c | 47 void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum, in nf_dup_ipv6() argument 61 if (hooknum == NF_INET_PRE_ROUTING || in nf_dup_ipv6() 62 hooknum == NF_INET_LOCAL_IN) { in nf_dup_ipv6()
|
| A D | nf_reject_ipv6.c | 392 unsigned char code, unsigned int hooknum) in nf_send_unreach6() argument 394 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6() 397 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6() 400 if ((hooknum == NF_INET_PRE_ROUTING || hooknum == NF_INET_INGRESS) && in nf_send_unreach6()
|
| /net/ipv4/netfilter/ |
| A D | iptable_nat.c | 36 .hooknum = NF_INET_PRE_ROUTING, 42 .hooknum = NF_INET_POST_ROUTING, 48 .hooknum = NF_INET_LOCAL_OUT, 54 .hooknum = NF_INET_LOCAL_IN,
|
| A D | nf_defrag_ipv4.c | 41 static enum ip_defrag_users nf_ct_defrag_user(unsigned int hooknum, in nf_ct_defrag_user() argument 56 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct_defrag_user() 97 .hooknum = NF_INET_PRE_ROUTING, 103 .hooknum = NF_INET_LOCAL_OUT,
|
| A D | nf_dup_ipv4.c | 51 void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum, in nf_dup_ipv4() argument 84 if (hooknum == NF_INET_PRE_ROUTING || in nf_dup_ipv4() 85 hooknum == NF_INET_LOCAL_IN) in nf_dup_ipv4()
|
| /net/bridge/netfilter/ |
| A D | ebtable_filter.c | 57 .hooknum = NF_BR_LOCAL_IN, 63 .hooknum = NF_BR_FORWARD, 69 .hooknum = NF_BR_LOCAL_OUT,
|
| A D | ebtable_nat.c | 57 .hooknum = NF_BR_LOCAL_OUT, 63 .hooknum = NF_BR_POST_ROUTING, 69 .hooknum = NF_BR_PRE_ROUTING,
|
| A D | nf_conntrack_bridge.c | 415 .hooknum = NF_BR_PRE_ROUTING, 421 .hooknum = NF_BR_LOCAL_IN, 427 .hooknum = NF_BR_POST_ROUTING,
|
| /net/bridge/ |
| A D | br_netfilter_hooks.c | 1056 .hooknum = NF_BR_PRE_ROUTING, 1063 .hooknum = NF_BR_LOCAL_IN, 1070 .hooknum = NF_BR_FORWARD, 1076 .hooknum = NF_BR_POST_ROUTING, 1082 .hooknum = NF_INET_PRE_ROUTING, 1088 .hooknum = NF_INET_PRE_ROUTING,
|