]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - include/linux/netfilter_decnet.h
[NETFILTER]: reduce netfilter sk_buff enlargement
[mirror_ubuntu-zesty-kernel.git] / include / linux / netfilter_decnet.h
CommitLineData
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
6869c4d8
HW
12/* only for userspace compatibility */
13#ifndef __KERNEL__
1da177e4
LT
14/* IP Cache bits. */
15/* Src IP address. */
16#define NFC_DN_SRC 0x0001
17/* Dest IP address. */
18#define NFC_DN_DST 0x0002
19/* Input device. */
20#define NFC_DN_IF_IN 0x0004
21/* Output device. */
22#define NFC_DN_IF_OUT 0x0008
6869c4d8 23#endif /* ! __KERNEL__ */
1da177e4
LT
24
25/* DECnet Hooks */
26/* After promisc drops, checksum checks. */
27#define NF_DN_PRE_ROUTING 0
28/* If the packet is destined for this box. */
29#define NF_DN_LOCAL_IN 1
30/* If the packet is destined for another interface. */
31#define NF_DN_FORWARD 2
32/* Packets coming from a local process. */
33#define NF_DN_LOCAL_OUT 3
34/* Packets about to hit the wire. */
35#define NF_DN_POST_ROUTING 4
36/* Input Hello Packets */
37#define NF_DN_HELLO 5
38/* Input Routing Packets */
39#define NF_DN_ROUTE 6
40#define NF_DN_NUMHOOKS 7
41
42enum nf_dn_hook_priorities {
43 NF_DN_PRI_FIRST = INT_MIN,
44 NF_DN_PRI_CONNTRACK = -200,
45 NF_DN_PRI_MANGLE = -150,
46 NF_DN_PRI_NAT_DST = -100,
47 NF_DN_PRI_FILTER = 0,
48 NF_DN_PRI_NAT_SRC = 100,
49 NF_DN_PRI_DNRTMSG = 200,
50 NF_DN_PRI_LAST = INT_MAX,
51};
52
53struct nf_dn_rtmsg {
54 int nfdn_ifindex;
55};
56
57#define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
58
59#define DNRMG_L1_GROUP 0x01
60#define DNRMG_L2_GROUP 0x02
61
62#endif /*__LINUX_DECNET_NETFILTER_H*/