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

Functions

struct nfnl_queue_msgnfnl_queue_msg_alloc (void)
 
int nfnlmsg_queue_msg_parse (struct nlmsghdr *, struct nfnl_queue_msg **)
 
void nfnl_queue_msg_get (struct nfnl_queue_msg *)
 
void nfnl_queue_msg_put (struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_group (struct nfnl_queue_msg *, uint16_t)
 
int nfnl_queue_msg_test_group (const struct nfnl_queue_msg *)
 
uint16_t nfnl_queue_msg_get_group (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_family (struct nfnl_queue_msg *, uint8_t)
 Set the protocol family. More...
 
int nfnl_queue_msg_test_family (const struct nfnl_queue_msg *)
 
uint8_t nfnl_queue_msg_get_family (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_packetid (struct nfnl_queue_msg *, uint32_t)
 
int nfnl_queue_msg_test_packetid (const struct nfnl_queue_msg *)
 
uint32_t nfnl_queue_msg_get_packetid (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_hwproto (struct nfnl_queue_msg *, uint16_t)
 
int nfnl_queue_msg_test_hwproto (const struct nfnl_queue_msg *)
 
uint16_t nfnl_queue_msg_get_hwproto (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_hook (struct nfnl_queue_msg *, uint8_t)
 
int nfnl_queue_msg_test_hook (const struct nfnl_queue_msg *)
 
uint8_t nfnl_queue_msg_get_hook (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_mark (struct nfnl_queue_msg *, uint32_t)
 
int nfnl_queue_msg_test_mark (const struct nfnl_queue_msg *)
 
uint32_t nfnl_queue_msg_get_mark (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_timestamp (struct nfnl_queue_msg *, struct timeval *)
 
int nfnl_queue_msg_test_timestamp (const struct nfnl_queue_msg *)
 
const struct timeval * nfnl_queue_msg_get_timestamp (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_indev (struct nfnl_queue_msg *, uint32_t)
 
int nfnl_queue_msg_test_indev (const struct nfnl_queue_msg *)
 
uint32_t nfnl_queue_msg_get_indev (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_outdev (struct nfnl_queue_msg *, uint32_t)
 
int nfnl_queue_msg_test_outdev (const struct nfnl_queue_msg *)
 
uint32_t nfnl_queue_msg_get_outdev (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_physindev (struct nfnl_queue_msg *, uint32_t)
 
int nfnl_queue_msg_test_physindev (const struct nfnl_queue_msg *)
 
uint32_t nfnl_queue_msg_get_physindev (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_physoutdev (struct nfnl_queue_msg *, uint32_t)
 
int nfnl_queue_msg_test_physoutdev (const struct nfnl_queue_msg *)
 
uint32_t nfnl_queue_msg_get_physoutdev (const struct nfnl_queue_msg *)
 
void nfnl_queue_msg_set_hwaddr (struct nfnl_queue_msg *, uint8_t *, int)
 
int nfnl_queue_msg_test_hwaddr (const struct nfnl_queue_msg *)
 
const uint8_t * nfnl_queue_msg_get_hwaddr (const struct nfnl_queue_msg *, int *)
 
int nfnl_queue_msg_set_payload (struct nfnl_queue_msg *, uint8_t *, int)
 
int nfnl_queue_msg_test_payload (const struct nfnl_queue_msg *)
 
const void * nfnl_queue_msg_get_payload (const struct nfnl_queue_msg *, int *)
 
void nfnl_queue_msg_set_verdict (struct nfnl_queue_msg *, unsigned int)
 Return the number of items matching a filter in the cache. More...
 
int nfnl_queue_msg_test_verdict (const struct nfnl_queue_msg *)
 
unsigned int nfnl_queue_msg_get_verdict (const struct nfnl_queue_msg *)
 
struct nl_msgnfnl_queue_msg_build_verdict (const struct nfnl_queue_msg *)
 
int nfnl_queue_msg_send_verdict (struct nl_sock *, const struct nfnl_queue_msg *)
 Send a message verdict/mark. More...
 
int nfnl_queue_msg_send_verdict_payload (struct nl_sock *, const struct nfnl_queue_msg *, const void *, unsigned)
 Send a message verdict including the payload. More...
 

Variables

struct nl_object_ops queue_msg_obj_ops
 

Function Documentation

struct nfnl_queue_msg* nfnl_queue_msg_alloc ( void  )

References nl_object_alloc(), and queue_msg_obj_ops.

Referenced by nfnlmsg_queue_msg_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_queue_msg_get ( struct nfnl_queue_msg )

References nl_object_get().

Here is the call graph for this function:

uint8_t nfnl_queue_msg_get_family ( const struct nfnl_queue_msg )

References nfnl_queue_msg::queue_msg_family.

Referenced by nfnl_queue_msg_build_verdict().

Here is the caller graph for this function:

uint16_t nfnl_queue_msg_get_group ( const struct nfnl_queue_msg )

References nfnl_queue_msg::queue_msg_group.

Referenced by nfnl_queue_msg_build_verdict().

Here is the caller graph for this function:

uint8_t nfnl_queue_msg_get_hook ( const struct nfnl_queue_msg )
const uint8_t* nfnl_queue_msg_get_hwaddr ( const struct nfnl_queue_msg ,
int *   
)
uint16_t nfnl_queue_msg_get_hwproto ( const struct nfnl_queue_msg )
uint32_t nfnl_queue_msg_get_indev ( const struct nfnl_queue_msg )
uint32_t nfnl_queue_msg_get_mark ( const struct nfnl_queue_msg )

References nfnl_queue_msg::queue_msg_mark.

Referenced by nfnl_queue_msg_build_verdict().

Here is the caller graph for this function:

uint32_t nfnl_queue_msg_get_outdev ( const struct nfnl_queue_msg )
uint32_t nfnl_queue_msg_get_packetid ( const struct nfnl_queue_msg )

References nfnl_queue_msg::queue_msg_packetid.

Referenced by nfnl_queue_msg_build_verdict().

Here is the caller graph for this function:

const void* nfnl_queue_msg_get_payload ( const struct nfnl_queue_msg ,
int *   
)
uint32_t nfnl_queue_msg_get_physindev ( const struct nfnl_queue_msg )
uint32_t nfnl_queue_msg_get_physoutdev ( const struct nfnl_queue_msg )
const struct timeval* nfnl_queue_msg_get_timestamp ( const struct nfnl_queue_msg )
unsigned int nfnl_queue_msg_get_verdict ( const struct nfnl_queue_msg )

References nfnl_queue_msg::queue_msg_verdict.

Referenced by nfnl_queue_msg_build_verdict().

Here is the caller graph for this function:

void nfnl_queue_msg_put ( struct nfnl_queue_msg )

References nl_object_put().

Referenced by nfnlmsg_queue_msg_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

int nfnl_queue_msg_send_verdict ( struct nl_sock nlh,
const struct nfnl_queue_msg msg 
)

Send a message verdict/mark.

  • nlh netlink messsage header
  • msg queue msg
    Returns
    0 on OK or error code

References nfnl_queue_msg_build_verdict(), nl_send_auto_complete(), NLE_NOMEM, nlmsg_free(), and NULL.

Here is the call graph for this function:

int nfnl_queue_msg_send_verdict_payload ( struct nl_sock nlh,
const struct nfnl_queue_msg msg,
const void *  payload_data,
unsigned  payload_len 
)

Send a message verdict including the payload.

  • nlh netlink messsage header
  • msg queue msg
  • payload_data packet payload data
  • payload_len payload length
    Returns
    0 on OK or error code

References nfnl_queue_msg_build_verdict(), NFQA_PAYLOAD, nl_auto_complete(), nl_send_iovec(), NLA_ALIGN, nlattr::nla_len, nlattr::nla_type, NLE_NOMEM, nlmsg_free(), nlmsg_hdr(), nlmsghdr::nlmsg_len, and NULL.

Here is the call graph for this function:

void nfnl_queue_msg_set_family ( struct nfnl_queue_msg msg,
uint8_t  family 
)

Set the protocol family.

  • msg NF queue message
  • family AF_XXX address family example: AF_INET, AF_UNIX, etc

References nfnl_queue_msg::queue_msg_family.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_group ( struct nfnl_queue_msg ,
uint16_t   
)

References nfnl_queue_msg::queue_msg_group.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_hook ( struct nfnl_queue_msg ,
uint8_t   
)

References hook, and nfnl_queue_msg::queue_msg_hook.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_hwaddr ( struct nfnl_queue_msg ,
uint8_t *  ,
int   
)

References len, nfnl_queue_msg::queue_msg_hwaddr, and nfnl_queue_msg::queue_msg_hwaddr_len.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_hwproto ( struct nfnl_queue_msg ,
uint16_t   
)

References nfnl_queue_msg::queue_msg_hwproto.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_indev ( struct nfnl_queue_msg ,
uint32_t   
)

References nfnl_queue_msg::queue_msg_indev.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_mark ( struct nfnl_queue_msg ,
uint32_t   
)

References mark, and nfnl_queue_msg::queue_msg_mark.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_outdev ( struct nfnl_queue_msg ,
uint32_t   
)

References nfnl_queue_msg::queue_msg_outdev.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_packetid ( struct nfnl_queue_msg ,
uint32_t   
)

References nfnl_queue_msg::queue_msg_packetid.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

int nfnl_queue_msg_set_payload ( struct nfnl_queue_msg ,
uint8_t *  ,
int   
)

References len, NLE_NOMEM, nfnl_queue_msg::queue_msg_payload, and nfnl_queue_msg::queue_msg_payload_len.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_physindev ( struct nfnl_queue_msg ,
uint32_t   
)

References nfnl_queue_msg::queue_msg_physindev.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_physoutdev ( struct nfnl_queue_msg ,
uint32_t   
)

References nfnl_queue_msg::queue_msg_physoutdev.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_timestamp ( struct nfnl_queue_msg ,
struct timeval *   
)

References nfnl_queue_msg::queue_msg_timestamp.

Referenced by nfnlmsg_queue_msg_parse().

Here is the caller graph for this function:

void nfnl_queue_msg_set_verdict ( struct nfnl_queue_msg msg,
unsigned int  verdict 
)

Return the number of items matching a filter in the cache.

  • msg queue msg
  • verdict NF_DROP, NF_ACCEPT, NF_REPEAT, etc

References nfnl_queue_msg::queue_msg_verdict, and verdict.

int nfnl_queue_msg_test_family ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_group ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_hook ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_hwaddr ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_hwproto ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_indev ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_mark ( const struct nfnl_queue_msg )

Referenced by nfnl_queue_msg_build_verdict().

Here is the caller graph for this function:

int nfnl_queue_msg_test_outdev ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_packetid ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_payload ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_physindev ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_physoutdev ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_timestamp ( const struct nfnl_queue_msg )
int nfnl_queue_msg_test_verdict ( const struct nfnl_queue_msg )

Variable Documentation

struct nl_object_ops queue_msg_obj_ops

Referenced by nfnl_queue_msg_alloc().