Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


netfilter_decnet.h
01: #ifndef __LINUX_DECNET_NETFILTER_H
02: #define __LINUX_DECNET_NETFILTER_H
03: 
04: /* DECnet-specific defines for netfilter. 
05:  * This file (C) Steve Whitehouse 1999 derived from the
06:  * ipv4 netfilter header file which is
07:  * (C)1998 Rusty Russell -- This code is GPL.
08:  */
09: 
10: #include <linux/netfilter.h>
11: 
12: /* only for userspace compatibility */
13: 
14: #include <limits.h> /* for INT_MIN, INT_MAX */
15: 
16: /* IP Cache bits. */
17: /* Src IP address. */
18: #define NFC_DN_SRC              0x0001
19: /* Dest IP address. */
20: #define NFC_DN_DST              0x0002
21: /* Input device. */
22: #define NFC_DN_IF_IN            0x0004
23: /* Output device. */
24: #define NFC_DN_IF_OUT           0x0008
25: 
26: /* DECnet Hooks */
27: /* After promisc drops, checksum checks. */
28: #define NF_DN_PRE_ROUTING       0
29: /* If the packet is destined for this box. */
30: #define NF_DN_LOCAL_IN          1
31: /* If the packet is destined for another interface. */
32: #define NF_DN_FORWARD           2
33: /* Packets coming from a local process. */
34: #define NF_DN_LOCAL_OUT         3
35: /* Packets about to hit the wire. */
36: #define NF_DN_POST_ROUTING      4
37: /* Input Hello Packets */
38: #define NF_DN_HELLO             5
39: /* Input Routing Packets */
40: #define NF_DN_ROUTE             6
41: #define NF_DN_NUMHOOKS          7
42: 
43: enum nf_dn_hook_priorities {
44:         NF_DN_PRI_FIRST = INT_MIN,
45:         NF_DN_PRI_CONNTRACK = -200,
46:         NF_DN_PRI_MANGLE = -150,
47:         NF_DN_PRI_NAT_DST = -100,
48:         NF_DN_PRI_FILTER = 0,
49:         NF_DN_PRI_NAT_SRC = 100,
50:         NF_DN_PRI_DNRTMSG = 200,
51:         NF_DN_PRI_LAST = INT_MAX,
52: };
53: 
54: struct nf_dn_rtmsg {
55:         int nfdn_ifindex;
56: };
57: 
58: #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
59: 
60: /* backwards compatibility for userspace */
61: #define DNRMG_L1_GROUP 0x01
62: #define DNRMG_L2_GROUP 0x02
63: 
64: enum {
65:         DNRNG_NLGRP_NONE,
66: #define DNRNG_NLGRP_NONE        DNRNG_NLGRP_NONE
67:         DNRNG_NLGRP_L1,
68: #define DNRNG_NLGRP_L1          DNRNG_NLGRP_L1
69:         DNRNG_NLGRP_L2,
70: #define DNRNG_NLGRP_L2          DNRNG_NLGRP_L2
71:         __DNRNG_NLGRP_MAX
72: };
73: #define DNRNG_NLGRP_MAX (__DNRNG_NLGRP_MAX - 1)
74: 
75: #endif /*__LINUX_DECNET_NETFILTER_H*/
76: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/