/linux-master/include/net/netfilter/ipv6/ |
H A D | nf_dup_ipv6.h | 7 void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum,
|
H A D | nf_reject.h | 9 unsigned int hooknum);
|
/linux-master/include/net/netfilter/ |
H A D | nf_nat_redirect.h | 10 unsigned int hooknum); 13 unsigned int hooknum);
|
H A D | nf_nat.h | 19 #define HOOK2MANIP(hooknum) ((hooknum) != NF_INET_POST_ROUTING && \ 20 (hooknum) != NF_INET_LOCAL_IN) 44 unsigned int hooknum); 57 static inline bool nf_nat_oif_changed(unsigned int hooknum, argument 63 return nat && nat->masq_index && hooknum == NF_INET_POST_ROUTING && 77 unsigned int hooknum, struct sk_buff *skb); 88 unsigned int hooknum); 92 unsigned int hooknum, unsigned int hdrlen);
|
H A D | nf_nat_masquerade.h | 9 nf_nat_masquerade_ipv4(struct sk_buff *skb, unsigned int hooknum,
|
H A D | nf_log.h | 41 unsigned int hooknum, 79 unsigned int hooknum, 89 unsigned int hooknum,
|
/linux-master/include/net/netfilter/ipv4/ |
H A D | nf_dup_ipv4.h | 8 void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,
|
/linux-master/net/netfilter/ |
H A D | core.c | 44 /* max hooks per family/hooknum */ 279 nf_hook_entry_head(struct net *net, int pf, unsigned int hooknum, argument 287 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) 289 return net->nf.hooks_arp + hooknum; 293 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) 295 return net->nf.hooks_bridge + hooknum; 299 if (WARN_ON_ONCE(hooknum != NF_INET_INGRESS)) 308 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) 310 return net->nf.hooks_ipv4 + hooknum; 312 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) 336 nf_ingress_check(struct net *net, const struct nf_hook_ops *reg, int hooknum) argument 369 int hooknum; local 384 int hooknum; local [all...] |
H 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; \
|
H A D | nf_nat_ovs.c | 16 int hooknum, err = NF_ACCEPT; local 20 hooknum = NF_INET_LOCAL_IN; /* Source NAT */ 22 hooknum = NF_INET_LOCAL_OUT; /* Destination NAT */ 30 hooknum)) 43 hooknum, 62 : nf_nat_alloc_null_binding(ct, hooknum); 77 err = nf_nat_packet(ct, ctinfo, hooknum, skb);
|
H A D | nf_nat_redirect.c | 51 unsigned int hooknum) 55 WARN_ON(hooknum != NF_INET_PRE_ROUTING && 56 hooknum != NF_INET_LOCAL_OUT); 59 if (hooknum == NF_INET_LOCAL_OUT) { 105 unsigned int hooknum) 109 if (hooknum == NF_INET_LOCAL_OUT) { 50 nf_nat_redirect_ipv4(struct sk_buff *skb, const struct nf_nat_range2 *range, unsigned int hooknum) argument 104 nf_nat_redirect_ipv6(struct sk_buff *skb, const struct nf_nat_range2 *range, unsigned int hooknum) argument
|
H A D | nfnetlink_hook.c | 165 u32 hooknum; local 203 if (ops->pf == NFPROTO_INET && ops->hooknum == NF_INET_INGRESS) 204 hooknum = NF_NETDEV_INGRESS; 206 hooknum = ops->hooknum; 208 ret = nla_put_be32(nlskb, NFNLA_HOOK_HOOKNUM, htonl(hooknum)); 352 u32 hooknum; local 354 hooknum = ntohl(nla_get_be32(nla[NFNLA_HOOK_HOOKNUM])); 355 if (hooknum > 255) 367 head = nfnl_hook_entries_head(family, hooknum, ne [all...] |
H A D | nf_bpf_link.c | 145 nf_link->hook_ops.pf, nf_link->hook_ops.hooknum, 155 info->netfilter.hooknum = nf_link->hook_ops.hooknum; 184 if (attr->link_create.netfilter.hooknum >= NF_INET_NUMHOOKS) 233 link->hook_ops.hooknum = attr->link_create.netfilter.hooknum;
|
/linux-master/net/ipv4/netfilter/ |
H A D | nf_dup_ipv4.c | 50 void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum, argument 82 if (hooknum == NF_INET_PRE_ROUTING || 83 hooknum == NF_INET_LOCAL_IN)
|
H A D | nf_defrag_ipv4.c | 41 static enum ip_defrag_users nf_ct_defrag_user(unsigned int hooknum, argument 56 if (hooknum == NF_INET_PRE_ROUTING) 97 .hooknum = NF_INET_PRE_ROUTING, 103 .hooknum = NF_INET_LOCAL_OUT,
|
H 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,
|
/linux-master/net/ipv6/netfilter/ |
H A D | nf_dup_ipv6.c | 47 void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum, argument 60 if (hooknum == NF_INET_PRE_ROUTING || 61 hooknum == NF_INET_LOCAL_IN) {
|
H 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,
|
H A D | nf_defrag_ipv6_hooks.c | 31 static enum ip6_defrag_users nf_ct6_defrag_user(unsigned int hooknum, argument 46 if (hooknum == NF_INET_PRE_ROUTING) 80 .hooknum = NF_INET_PRE_ROUTING, 86 .hooknum = NF_INET_LOCAL_OUT,
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | netfilter_link_attach.c | 11 __u32 hooknum; member in struct:nf_link_test 22 { .pf = NFPROTO_IPV4, .hooknum = 42, .name = "invalid-hooknum", }, 56 X(opts, hooknum, i);
|
/linux-master/net/bridge/netfilter/ |
H A D | ebtable_filter.c | 57 .hooknum = NF_BR_LOCAL_IN, 63 .hooknum = NF_BR_FORWARD, 69 .hooknum = NF_BR_LOCAL_OUT,
|
H A D | ebtable_nat.c | 57 .hooknum = NF_BR_LOCAL_OUT, 63 .hooknum = NF_BR_POST_ROUTING, 69 .hooknum = NF_BR_PRE_ROUTING,
|
/linux-master/include/linux/netfilter/ |
H A D | nfnetlink_osf.h | 30 int hooknum, struct net_device *in, struct net_device *out,
|
/linux-master/security/smack/ |
H A D | smack_netfilter.c | 42 .hooknum = NF_INET_LOCAL_OUT, 49 .hooknum = NF_INET_LOCAL_OUT,
|
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_core.c | 697 static inline enum ip_defrag_users ip_vs_defrag_user(unsigned int hooknum) argument 699 if (NF_INET_LOCAL_IN == hooknum) 701 if (NF_INET_FORWARD == hooknum) 721 struct sk_buff *skb, unsigned int hooknum) 726 if (NF_INET_LOCAL_IN == hooknum) 861 unsigned int hooknum) 889 if (ip_vs_route_me_harder(cp->ipvs, af, skb, hooknum)) 915 int *related, unsigned int hooknum) 930 if (ip_vs_gather_frags(ipvs, skb, ip_vs_defrag_user(hooknum))) 986 pp, ciph.len, ihl, hooknum); 720 ip_vs_route_me_harder(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, unsigned int hooknum) argument 856 handle_response_icmp(int af, struct sk_buff *skb, union nf_inet_addr *snet, __u8 protocol, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, unsigned int offset, unsigned int ihl, unsigned int hooknum) argument 914 ip_vs_out_icmp(struct netns_ipvs *ipvs, struct sk_buff *skb, int *related, unsigned int hooknum) argument 990 ip_vs_out_icmp_v6(struct netns_ipvs *ipvs, struct sk_buff *skb, int *related, unsigned int hooknum, struct ip_vs_iphdr *ipvsh) argument 1220 __ip_vs_rs_conn_out(unsigned int hooknum, struct netns_ipvs *ipvs, int af, struct sk_buff *skb, const struct ip_vs_iphdr *iph) argument 1258 handle_response(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, struct ip_vs_conn *cp, struct ip_vs_iphdr *iph, unsigned int hooknum) argument 1332 unsigned int hooknum = state->hook; local 1577 ip_vs_in_icmp(struct netns_ipvs *ipvs, struct sk_buff *skb, int *related, unsigned int hooknum) argument 1800 ip_vs_in_icmp_v6(struct netns_ipvs *ipvs, struct sk_buff *skb, int *related, unsigned int hooknum, struct ip_vs_iphdr *iph) argument 1910 unsigned int hooknum = state->hook; local [all...] |