1 #ifndef __LINUX_DECNET_NETFILTER_H
2 #define __LINUX_DECNET_NETFILTER_H
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.
10 #include <linux/netfilter.h>
12 /* only for userspace compatibility */
15 #include <limits.h> /* for INT_MIN, INT_MAX */
19 #define NFC_DN_SRC 0x0001
20 /* Dest IP address. */
21 #define NFC_DN_DST 0x0002
23 #define NFC_DN_IF_IN 0x0004
25 #define NFC_DN_IF_OUT 0x0008
26 #endif /* ! __KERNEL__ */
29 /* After promisc drops, checksum checks. */
30 #define NF_DN_PRE_ROUTING 0
31 /* If the packet is destined for this box. */
32 #define NF_DN_LOCAL_IN 1
33 /* If the packet is destined for another interface. */
34 #define NF_DN_FORWARD 2
35 /* Packets coming from a local process. */
36 #define NF_DN_LOCAL_OUT 3
37 /* Packets about to hit the wire. */
38 #define NF_DN_POST_ROUTING 4
39 /* Input Hello Packets */
41 /* Input Routing Packets */
43 #define NF_DN_NUMHOOKS 7
45 enum 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,
51 NF_DN_PRI_NAT_SRC
= 100,
52 NF_DN_PRI_DNRTMSG
= 200,
53 NF_DN_PRI_LAST
= INT_MAX
,
60 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
63 /* backwards compatibility for userspace */
64 #define DNRMG_L1_GROUP 0x01
65 #define DNRMG_L2_GROUP 0x02
70 #define DNRNG_NLGRP_NONE DNRNG_NLGRP_NONE
72 #define DNRNG_NLGRP_L1 DNRNG_NLGRP_L1
74 #define DNRNG_NLGRP_L2 DNRNG_NLGRP_L2
77 #define DNRNG_NLGRP_MAX (__DNRNG_NLGRP_MAX - 1)
79 #endif /*__LINUX_DECNET_NETFILTER_H*/
This page took 0.032888 seconds and 5 git commands to generate.