- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
netfilter_decnet.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:
Linux/Unix编程
开发平台:
Unix_Linux
- #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>
- /* 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
- /* 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)))
- #define DNRMG_L1_GROUP 0x01
- #define DNRMG_L2_GROUP 0x02
- #endif /*__LINUX_DECNET_NETFILTER_H*/