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