Blame view

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