1
2 #ifndef __LINUX_DECNET_NETFILTER_H
3 #define __LINUX_DECNET_NETFILTER_H
4
5
6
7
8
9
10
11 #include <linux/netfilter.h>
12
13
14 #ifndef __KERNEL__
15
16 #include <limits.h>
17
18
19 #define NF_DN_NUMHOOKS 7
20 #endif
21
22
23
24 #define NF_DN_PRE_ROUTING 0
25
26 #define NF_DN_LOCAL_IN 1
27
28 #define NF_DN_FORWARD 2
29
30 #define NF_DN_LOCAL_OUT 3
31
32 #define NF_DN_POST_ROUTING 4
33
34 #define NF_DN_HELLO 5
35
36 #define NF_DN_ROUTE 6
37
38 enum nf_dn_hook_priorities {
39 NF_DN_PRI_FIRST = INT_MIN,
40 NF_DN_PRI_CONNTRACK = -200,
41 NF_DN_PRI_MANGLE = -150,
42 NF_DN_PRI_NAT_DST = -100,
43 NF_DN_PRI_FILTER = 0,
44 NF_DN_PRI_NAT_SRC = 100,
45 NF_DN_PRI_DNRTMSG = 200,
46 NF_DN_PRI_LAST = INT_MAX,
47 };
48
49 struct nf_dn_rtmsg {
50 int nfdn_ifindex;
51 };
52
53 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
54
55 #ifndef __KERNEL__
56
57 #define DNRMG_L1_GROUP 0x01
58 #define DNRMG_L2_GROUP 0x02
59 #endif
60
61 enum {
62 DNRNG_NLGRP_NONE,
63 #define DNRNG_NLGRP_NONE DNRNG_NLGRP_NONE
64 DNRNG_NLGRP_L1,
65 #define DNRNG_NLGRP_L1 DNRNG_NLGRP_L1
66 DNRNG_NLGRP_L2,
67 #define DNRNG_NLGRP_L2 DNRNG_NLGRP_L2
68 __DNRNG_NLGRP_MAX
69 };
70 #define DNRNG_NLGRP_MAX (__DNRNG_NLGRP_MAX - 1)
71
72 #endif