Debian Codegraph @

include/linux/netfilter.h

raw symbols SCIP
1 #cxx . . $ `<file>/include/linux/netfilter.h`/ifndef __LINUX_NETFILTER_H
2 #define __LINUX_NETFILTER_Hcxx . . $ `include/linux/netfilter.h:2:9`!
3
4 #include <linux/types.h>
5
6 #include <linux/sysctl.h>
7
8
9 /* Responses from hook functions. */
10 #define NF_DROPcxx . . $ `include/linux/netfilter.h:10:9`! 0
11 #define NF_ACCEPTcxx . . $ `include/linux/netfilter.h:11:9`! 1
12 #define NF_STOLENcxx . . $ `include/linux/netfilter.h:12:9`! 2
13 #define NF_QUEUEcxx . . $ `include/linux/netfilter.h:13:9`! 3
14 #define NF_REPEATcxx . . $ `include/linux/netfilter.h:14:9`! 4
15 #define NF_STOPcxx . . $ `include/linux/netfilter.h:15:9`! 5
16 #define NF_MAX_VERDICTcxx . . $ `include/linux/netfilter.h:16:9`! NF_STOP
17
18 /* we overload the higher bits for encoding auxiliary data such as the queue
19 * number or errno values. Not nice, but better than additional function
20 * arguments. */
21 #define NF_VERDICT_MASKcxx . . $ `include/linux/netfilter.h:21:9`! 0x000000ff
22
23 /* extra verdict flags have mask 0x0000ff00 */
24 #define NF_VERDICT_FLAG_QUEUE_BYPASScxx . . $ `include/linux/netfilter.h:24:9`! 0x00008000
25
26 /* queue number (NF_QUEUE) or errno (NF_DROP) */
27 #define NF_VERDICT_QMASKcxx . . $ `include/linux/netfilter.h:27:9`! 0xffff0000
28 #define NF_VERDICT_QBITScxx . . $ `include/linux/netfilter.h:28:9`! 16
29
30 #define NF_QUEUE_NRcxx . . $ `include/linux/netfilter.h:30:9`!(x) ((((x) << 16) & NF_VERDICT_QMASK) | NF_QUEUE)
31
32 #define NF_DROP_ERRcxx . . $ `include/linux/netfilter.h:32:9`!(x) (((-x) << 16) | NF_DROP)
33
34 /* only for userspace compatibility */
35 #ifndef __KERNEL__
36 /* Generic cache responses from hook functions.
37 <= 0x2000 is used for protocol-flags. */
38 #define NFC_UNKNOWNcxx . . $ `include/linux/netfilter.h:38:9`! 0x4000
39 #define NFC_ALTEREDcxx . . $ `include/linux/netfilter.h:39:9`! 0x8000
40
41 /* NF_VERDICT_BITS should be 8 now, but userspace might break if this changes */
42 #define NF_VERDICT_BITScxx . . $ `include/linux/netfilter.h:42:9`! 16
43 #endif
44
45 enum nf_inet_hookscxx . . $ nf_inet_hooks# {
46 NF_INET_PRE_ROUTINGcxx . . $ NF_INET_PRE_ROUTING.,
47 NF_INET_LOCAL_INcxx . . $ NF_INET_LOCAL_IN.,
48 NF_INET_FORWARDcxx . . $ NF_INET_FORWARD.,
49 NF_INET_LOCAL_OUTcxx . . $ NF_INET_LOCAL_OUT.,
50 NF_INET_POST_ROUTINGcxx . . $ NF_INET_POST_ROUTING.,
51 NF_INET_NUMHOOKScxx . . $ NF_INET_NUMHOOKS.
52 };
53
54 enum nf_dev_hookscxx . . $ nf_dev_hooks# {
55 NF_NETDEV_INGRESScxx . . $ NF_NETDEV_INGRESS.,
56 NF_NETDEV_NUMHOOKScxx . . $ NF_NETDEV_NUMHOOKS.
57 };
58
59 enumcxx . . $ $anonymous_type_d0d7e5498fbde219_0# {
60 NFPROTO_UNSPECcxx . . $ NFPROTO_UNSPEC. = 0,
61 NFPROTO_INETcxx . . $ NFPROTO_INET. = 1,
62 NFPROTO_IPV4cxx . . $ NFPROTO_IPV4. = 2,
63 NFPROTO_ARPcxx . . $ NFPROTO_ARP. = 3,
64 NFPROTO_NETDEVcxx . . $ NFPROTO_NETDEV. = 5,
65 NFPROTO_BRIDGEcxx . . $ NFPROTO_BRIDGE. = 7,
66 NFPROTO_IPV6cxx . . $ NFPROTO_IPV6. = 10,
67 NFPROTO_DECNETcxx . . $ NFPROTO_DECNET. = 12,
68 NFPROTO_NUMPROTOcxx . . $ NFPROTO_NUMPROTO.,
69 };
70
71 union nf_inet_addrcxx . . $ nf_inet_addr# {
72 __u32cxx . . $ __u32# allcxx . . $ nf_inet_addr#all.[4];
73 __be32cxx . . $ __be32# ipcxx . . $ nf_inet_addr#ip.;
74 __be32cxx . . $ __be32# ip6cxx . . $ nf_inet_addr#ip6.[4];
75 struct in_addrcxx . . $ in_addr# incxx . . $ nf_inet_addr#in.;
76 struct in6_addrcxx . . $ in6_addr# in6cxx . . $ nf_inet_addr#in6.;
77 };
78
79 #endif /* __LINUX_NETFILTER_H */