netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
linux_nfnetlink_queue.h File Reference
Include dependency graph for linux_nfnetlink_queue.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  nfqnl_msg_packet_hdr
 
struct  nfqnl_msg_packet_hw
 
struct  nfqnl_msg_packet_timestamp
 
struct  nfqnl_msg_verdict_hdr
 
struct  nfqnl_msg_config_cmd
 
struct  nfqnl_msg_config_params
 

Macros

#define aligned_u64   unsigned long long __attribute__((aligned(8)))
 
#define NFQA_MAX   (__NFQA_MAX - 1)
 
#define NFQA_CFG_MAX   (__NFQA_CFG_MAX-1)
 
#define NFQA_CFG_F_FAIL_OPEN   (1 << 0)
 
#define NFQA_CFG_F_CONNTRACK   (1 << 1)
 
#define NFQA_CFG_F_GSO   (1 << 2)
 
#define NFQA_CFG_F_UID_GID   (1 << 3)
 
#define NFQA_CFG_F_MAX   (1 << 4)
 
#define NFQA_SKB_CSUMNOTREADY   (1 << 0)
 
#define NFQA_SKB_GSO   (1 << 1)
 

Enumerations

enum  nfqnl_msg_types {
  NFQNL_MSG_PACKET,
  NFQNL_MSG_VERDICT,
  NFQNL_MSG_CONFIG,
  NFQNL_MSG_VERDICT_BATCH,
  NFQNL_MSG_MAX,
  NFQNL_MSG_PACKET,
  NFQNL_MSG_VERDICT,
  NFQNL_MSG_CONFIG,
  NFQNL_MSG_VERDICT_BATCH,
  NFQNL_MSG_MAX,
  NFQNL_MSG_PACKET,
  NFQNL_MSG_VERDICT,
  NFQNL_MSG_CONFIG,
  NFQNL_MSG_VERDICT_BATCH,
  NFQNL_MSG_MAX,
  NFQNL_MSG_PACKET,
  NFQNL_MSG_VERDICT,
  NFQNL_MSG_CONFIG,
  NFQNL_MSG_MAX
}
 
enum  nfqnl_attr_type {
  NFQA_UNSPEC,
  NFQA_PACKET_HDR,
  NFQA_VERDICT_HDR,
  NFQA_MARK,
  NFQA_TIMESTAMP,
  NFQA_IFINDEX_INDEV,
  NFQA_IFINDEX_OUTDEV,
  NFQA_IFINDEX_PHYSINDEV,
  NFQA_IFINDEX_PHYSOUTDEV,
  NFQA_HWADDR,
  NFQA_PAYLOAD,
  NFQA_CT,
  NFQA_CT_INFO,
  NFQA_CAP_LEN,
  NFQA_SKB_INFO,
  NFQA_EXP,
  __NFQA_MAX,
  NFQA_UNSPEC,
  NFQA_PACKET_HDR,
  NFQA_VERDICT_HDR,
  NFQA_MARK,
  NFQA_TIMESTAMP,
  NFQA_IFINDEX_INDEV,
  NFQA_IFINDEX_OUTDEV,
  NFQA_IFINDEX_PHYSINDEV,
  NFQA_IFINDEX_PHYSOUTDEV,
  NFQA_HWADDR,
  NFQA_PAYLOAD,
  NFQA_CT,
  NFQA_CT_INFO,
  NFQA_CAP_LEN,
  NFQA_SKB_INFO,
  NFQA_EXP,
  NFQA_UID,
  NFQA_GID,
  __NFQA_MAX,
  NFQA_UNSPEC,
  NFQA_PACKET_HDR,
  NFQA_VERDICT_HDR,
  NFQA_MARK,
  NFQA_TIMESTAMP,
  NFQA_IFINDEX_INDEV,
  NFQA_IFINDEX_OUTDEV,
  NFQA_IFINDEX_PHYSINDEV,
  NFQA_IFINDEX_PHYSOUTDEV,
  NFQA_HWADDR,
  NFQA_PAYLOAD,
  NFQA_CT,
  NFQA_CT_INFO,
  NFQA_CAP_LEN,
  NFQA_SKB_INFO,
  NFQA_EXP,
  NFQA_UID,
  NFQA_GID,
  __NFQA_MAX,
  NFQA_UNSPEC,
  NFQA_PACKET_HDR,
  NFQA_VERDICT_HDR,
  NFQA_MARK,
  NFQA_TIMESTAMP,
  NFQA_IFINDEX_INDEV,
  NFQA_IFINDEX_OUTDEV,
  NFQA_IFINDEX_PHYSINDEV,
  NFQA_IFINDEX_PHYSOUTDEV,
  NFQA_HWADDR,
  NFQA_PAYLOAD,
  __NFQA_MAX
}
 
enum  nfqnl_msg_config_cmds {
  NFQNL_CFG_CMD_NONE,
  NFQNL_CFG_CMD_BIND,
  NFQNL_CFG_CMD_UNBIND,
  NFQNL_CFG_CMD_PF_BIND,
  NFQNL_CFG_CMD_PF_UNBIND,
  NFQNL_CFG_CMD_NONE,
  NFQNL_CFG_CMD_BIND,
  NFQNL_CFG_CMD_UNBIND,
  NFQNL_CFG_CMD_PF_BIND,
  NFQNL_CFG_CMD_PF_UNBIND,
  NFQNL_CFG_CMD_NONE,
  NFQNL_CFG_CMD_BIND,
  NFQNL_CFG_CMD_UNBIND,
  NFQNL_CFG_CMD_PF_BIND,
  NFQNL_CFG_CMD_PF_UNBIND,
  NFQNL_CFG_CMD_NONE,
  NFQNL_CFG_CMD_BIND,
  NFQNL_CFG_CMD_UNBIND,
  NFQNL_CFG_CMD_PF_BIND,
  NFQNL_CFG_CMD_PF_UNBIND
}
 
enum  nfqnl_config_mode {
  NFQNL_COPY_NONE,
  NFQNL_COPY_META,
  NFQNL_COPY_PACKET,
  NFQNL_COPY_NONE,
  NFQNL_COPY_META,
  NFQNL_COPY_PACKET,
  NFQNL_COPY_NONE,
  NFQNL_COPY_META,
  NFQNL_COPY_PACKET,
  NFQNL_COPY_NONE,
  NFQNL_COPY_META,
  NFQNL_COPY_PACKET
}
 
enum  nfqnl_attr_config {
  NFQA_CFG_UNSPEC,
  NFQA_CFG_CMD,
  NFQA_CFG_PARAMS,
  NFQA_CFG_QUEUE_MAXLEN,
  NFQA_CFG_MASK,
  NFQA_CFG_FLAGS,
  __NFQA_CFG_MAX,
  NFQA_CFG_UNSPEC,
  NFQA_CFG_CMD,
  NFQA_CFG_PARAMS,
  NFQA_CFG_QUEUE_MAXLEN,
  NFQA_CFG_MASK,
  NFQA_CFG_FLAGS,
  __NFQA_CFG_MAX,
  NFQA_CFG_UNSPEC,
  NFQA_CFG_CMD,
  NFQA_CFG_PARAMS,
  NFQA_CFG_QUEUE_MAXLEN,
  NFQA_CFG_MASK,
  NFQA_CFG_FLAGS,
  __NFQA_CFG_MAX,
  NFQA_CFG_UNSPEC,
  NFQA_CFG_CMD,
  NFQA_CFG_PARAMS,
  NFQA_CFG_QUEUE_MAXLEN,
  __NFQA_CFG_MAX
}
 

Functions

struct nfqnl_msg_packet_hdr __attribute__ ((packed))
 

Variables

u_int32_t packet_id
 
u_int16_t hw_protocol
 
u_int8_t hook
 
u_int16_t hw_addrlen
 
u_int16_t _pad
 
u_int8_t hw_addr [8]
 
aligned_u64 sec
 
aligned_u64 usec
 
enum nfqnl_attr_type __attribute__
 
u_int32_t verdict
 
u_int32_t id
 
u_int8_t command
 
u_int16_t pf
 
u_int32_t copy_range
 
u_int8_t copy_mode
 

Macro Definition Documentation

#define aligned_u64   unsigned long long __attribute__((aligned(8)))
#define NFQA_CFG_F_CONNTRACK   (1 << 1)
#define NFQA_CFG_F_FAIL_OPEN   (1 << 0)
#define NFQA_CFG_F_GSO   (1 << 2)
#define NFQA_CFG_F_MAX   (1 << 4)
#define NFQA_CFG_F_UID_GID   (1 << 3)

Referenced by main().

#define NFQA_CFG_MAX   (__NFQA_CFG_MAX-1)
#define NFQA_MAX   (__NFQA_MAX - 1)
#define NFQA_SKB_CSUMNOTREADY   (1 << 0)
#define NFQA_SKB_GSO   (1 << 1)

Enumeration Type Documentation

Enumerator
NFQA_CFG_UNSPEC 
NFQA_CFG_CMD 
NFQA_CFG_PARAMS 
NFQA_CFG_QUEUE_MAXLEN 
NFQA_CFG_MASK 
NFQA_CFG_FLAGS 
__NFQA_CFG_MAX 
NFQA_CFG_UNSPEC 
NFQA_CFG_CMD 
NFQA_CFG_PARAMS 
NFQA_CFG_QUEUE_MAXLEN 
NFQA_CFG_MASK 
NFQA_CFG_FLAGS 
__NFQA_CFG_MAX 
NFQA_CFG_UNSPEC 
NFQA_CFG_CMD 
NFQA_CFG_PARAMS 
NFQA_CFG_QUEUE_MAXLEN 
NFQA_CFG_MASK 
NFQA_CFG_FLAGS 
__NFQA_CFG_MAX 
NFQA_CFG_UNSPEC 
NFQA_CFG_CMD 
NFQA_CFG_PARAMS 
NFQA_CFG_QUEUE_MAX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FQNL_COPY_META 
NFQNL_COPY_PACKET 
NFQNL_COPY_NONE 
NFQNL_COPY_META 
NFQNL_COPY_PACKET 
NFQNL_COPY_NONE 
NFQNL_COPY_META 
NFQNL_COPY_PACKET 
NFQNL_COPY_NONE 
NFQNL_COPY_META 
NFQNL_COPY_PACKET 
Enumerator
NFQNL_CFG_CMD_NONE 
NFQNL_CFG_CMD_BIND 
NFQNL_CFG_CMD_UNBIND 
NFQNL_CFG_CMD_PF_BIND 
NFQNL_CFG_CMD_PF_UNBIND 
NFQNL_CFG_CMD_NONE 
NFQNL_CFG_CMD_BIND 
NFQNL_CFG_CMD_UNBIND 
NFQNL_CFG_CMD_PF_BIND 
NFQNL_CFG_CMD_PF_UNBIND 
NFQNL_CFG_CMD_NONE 
NFQNL_CFG_CMD_BIND 
NFQNL_CFG_CMD_UNBIND 
NFQNL_CFG_CMD_PF_BIND 
NFQNL_CFG_CMD_PF_UNBIND 
NFQNL_CFG_CMD_NONE 
NFQNL_CFG_CMD_BIND 
NFQNL_CFG_CMD_UNBIND 
NFQNL_CFG_CMD_PF_BIND 
NFQNL_CFG_CMD_PF_UNBIND 
Enumerator
NFQNL_MSG_PACKET 
NFQNL_MSG_VERDICT 
NFQNL_MSG_CONFIG 
NFQNL_MSG_VERDICT_BATCH 
NFQNL_MSG_MAX 
NFQNL_MSG_PACKET 
NFQNL_MSG_VERDICT 
NFQNL_MSG_CONFIG 
NFQNL_MSG_VERDICT_BATCH 
NFQNL_MSG_MAX 
NFQNL_MSG_PACKET 
NFQNL_MSG_VERDICT 
NFQNL_MSG_CONFIG 
NFQNL_MSG_VERDICT_BATCH 
NFQNL_MSG_MAX 
NFQNL_MSG_PACKET 
NFQNL_MSG_VERDICT 
NFQNL_MSG_CONFIG 
NFQNL_MSG_MAX 

Function Documentation

struct nfqnl_msg_packet_hdr __attribute__ ( (packed)  )

Variable Documentation

enum nfqnl_attr_config __attribute__
u_int8_t _pad
u_int8_t command
u_int8_t copy_mode
u_int32_t copy_range
u_int8_t hook
u_int8_t hw_addr[8]
u_int16_t hw_addrlen
u_int16_t hw_protocol
u_int32_t id
u_int32_t packet_id
u_int16_t pf
u_int32_t verdict