]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef __LINUX_DECNET_NETFILTER_H |
2 | #define __LINUX_DECNET_NETFILTER_H | |
3 | ||
4 | /* DECnet-specific defines for netfilter. | |
5 | * This file (C) Steve Whitehouse 1999 derived from the | |
6 | * ipv4 netfilter header file which is | |
7 | * (C)1998 Rusty Russell -- This code is GPL. | |
8 | */ | |
9 | ||
10 | #include <linux/netfilter.h> | |
11 | ||
12 | /* IP Cache bits. */ | |
13 | /* Src IP address. */ | |
14 | #define NFC_DN_SRC 0x0001 | |
15 | /* Dest IP address. */ | |
16 | #define NFC_DN_DST 0x0002 | |
17 | /* Input device. */ | |
18 | #define NFC_DN_IF_IN 0x0004 | |
19 | /* Output device. */ | |
20 | #define NFC_DN_IF_OUT 0x0008 | |
21 | ||
22 | /* DECnet Hooks */ | |
23 | /* After promisc drops, checksum checks. */ | |
24 | #define NF_DN_PRE_ROUTING 0 | |
25 | /* If the packet is destined for this box. */ | |
26 | #define NF_DN_LOCAL_IN 1 | |
27 | /* If the packet is destined for another interface. */ | |
28 | #define NF_DN_FORWARD 2 | |
29 | /* Packets coming from a local process. */ | |
30 | #define NF_DN_LOCAL_OUT 3 | |
31 | /* Packets about to hit the wire. */ | |
32 | #define NF_DN_POST_ROUTING 4 | |
33 | /* Input Hello Packets */ | |
34 | #define NF_DN_HELLO 5 | |
35 | /* Input Routing Packets */ | |
36 | #define NF_DN_ROUTE 6 | |
37 | #define NF_DN_NUMHOOKS 7 | |
38 | ||
39 | enum nf_dn_hook_priorities { | |
40 | NF_DN_PRI_FIRST = INT_MIN, | |
41 | NF_DN_PRI_CONNTRACK = -200, | |
42 | NF_DN_PRI_MANGLE = -150, | |
43 | NF_DN_PRI_NAT_DST = -100, | |
44 | NF_DN_PRI_FILTER = 0, | |
45 | NF_DN_PRI_NAT_SRC = 100, | |
46 | NF_DN_PRI_DNRTMSG = 200, | |
47 | NF_DN_PRI_LAST = INT_MAX, | |
48 | }; | |
49 | ||
50 | struct nf_dn_rtmsg { | |
51 | int nfdn_ifindex; | |
52 | }; | |
53 | ||
54 | #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg))) | |
55 | ||
56 | #define DNRMG_L1_GROUP 0x01 | |
57 | #define DNRMG_L2_GROUP 0x02 | |
58 | ||
59 | #endif /*__LINUX_DECNET_NETFILTER_H*/ |