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