Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
netfilter.h File Reference
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/sysctl.h>

Go to the source code of this file.

Data Structures

union  nf_inet_addr
 

Macros

#define NF_DROP   0
 
#define NF_ACCEPT   1
 
#define NF_STOLEN   2
 
#define NF_QUEUE   3
 
#define NF_REPEAT   4
 
#define NF_STOP   5
 
#define NF_MAX_VERDICT   NF_STOP
 
#define NF_VERDICT_MASK   0x000000ff
 
#define NF_VERDICT_FLAG_QUEUE_BYPASS   0x00008000
 
#define NF_VERDICT_QMASK   0xffff0000
 
#define NF_VERDICT_QBITS   16
 
#define NF_QUEUE_NR(x)   ((((x) << 16) & NF_VERDICT_QMASK) | NF_QUEUE)
 
#define NF_DROP_ERR(x)   (((-x) << 16) | NF_DROP)
 
#define NFC_UNKNOWN   0x4000
 
#define NFC_ALTERED   0x8000
 
#define NF_VERDICT_BITS   16
 

Enumerations

enum  nf_inet_hooks {
  NF_INET_PRE_ROUTING, NF_INET_LOCAL_IN, NF_INET_FORWARD, NF_INET_LOCAL_OUT,
  NF_INET_POST_ROUTING, NF_INET_NUMHOOKS
}
 
enum  {
  NFPROTO_UNSPEC = 0, NFPROTO_IPV4 = 2, NFPROTO_ARP = 3, NFPROTO_BRIDGE = 7,
  NFPROTO_IPV6 = 10, NFPROTO_DECNET = 12, NFPROTO_NUMPROTO
}
 

Macro Definition Documentation

#define NF_ACCEPT   1

Definition at line 11 of file netfilter.h.

#define NF_DROP   0

Definition at line 10 of file netfilter.h.

#define NF_DROP_ERR (   x)    (((-x) << 16) | NF_DROP)

Definition at line 32 of file netfilter.h.

#define NF_MAX_VERDICT   NF_STOP

Definition at line 16 of file netfilter.h.

#define NF_QUEUE   3

Definition at line 13 of file netfilter.h.

#define NF_QUEUE_NR (   x)    ((((x) << 16) & NF_VERDICT_QMASK) | NF_QUEUE)

Definition at line 30 of file netfilter.h.

#define NF_REPEAT   4

Definition at line 14 of file netfilter.h.

#define NF_STOLEN   2

Definition at line 12 of file netfilter.h.

#define NF_STOP   5

Definition at line 15 of file netfilter.h.

#define NF_VERDICT_BITS   16

Definition at line 42 of file netfilter.h.

#define NF_VERDICT_FLAG_QUEUE_BYPASS   0x00008000

Definition at line 24 of file netfilter.h.

#define NF_VERDICT_MASK   0x000000ff

Definition at line 21 of file netfilter.h.

#define NF_VERDICT_QBITS   16

Definition at line 28 of file netfilter.h.

#define NF_VERDICT_QMASK   0xffff0000

Definition at line 27 of file netfilter.h.

#define NFC_ALTERED   0x8000

Definition at line 39 of file netfilter.h.

#define NFC_UNKNOWN   0x4000

Definition at line 38 of file netfilter.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
NFPROTO_UNSPEC 
NFPROTO_IPV4 
NFPROTO_ARP 
NFPROTO_BRIDGE 
NFPROTO_IPV6 
NFPROTO_DECNET 
NFPROTO_NUMPROTO 

Definition at line 54 of file netfilter.h.

Enumerator:
NF_INET_PRE_ROUTING 
NF_INET_LOCAL_IN 
NF_INET_FORWARD 
NF_INET_LOCAL_OUT 
NF_INET_POST_ROUTING 
NF_INET_NUMHOOKS 

Definition at line 45 of file netfilter.h.