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

Enumerations

enum  nfnl_log_copy_mode {
  NFNL_LOG_COPY_NONE,
  NFNL_LOG_COPY_META,
  NFNL_LOG_COPY_PACKET
}
 
enum  nfnl_log_flags {
  NFNL_LOG_FLAG_SEQ = 0x1,
  NFNL_LOG_FLAG_SEQ_GLOBAL = 0x2
}
 

Functions

struct nfnl_lognfnl_log_alloc (void)
 
int nfnlmsg_log_parse (struct nlmsghdr *, struct nfnl_log **)
 
void nfnl_log_get (struct nfnl_log *)
 
void nfnl_log_put (struct nfnl_log *)
 
void nfnl_log_set_group (struct nfnl_log *, uint16_t)
 
int nfnl_log_test_group (const struct nfnl_log *)
 
uint16_t nfnl_log_get_group (const struct nfnl_log *)
 
void nfnl_log_set_copy_mode (struct nfnl_log *, enum nfnl_log_copy_mode)
 
int nfnl_log_test_copy_mode (const struct nfnl_log *)
 
enum nfnl_log_copy_mode nfnl_log_get_copy_mode (const struct nfnl_log *)
 
char * nfnl_log_copy_mode2str (enum nfnl_log_copy_mode, char *, size_t)
 
enum nfnl_log_copy_mode nfnl_log_str2copy_mode (const char *)
 
void nfnl_log_set_copy_range (struct nfnl_log *, uint32_t)
 
int nfnl_log_test_copy_range (const struct nfnl_log *)
 
uint32_t nfnl_log_get_copy_range (const struct nfnl_log *)
 
void nfnl_log_set_flush_timeout (struct nfnl_log *, uint32_t)
 
int nfnl_log_test_flush_timeout (const struct nfnl_log *)
 
uint32_t nfnl_log_get_flush_timeout (const struct nfnl_log *)
 
void nfnl_log_set_alloc_size (struct nfnl_log *, uint32_t)
 
int nfnl_log_test_alloc_size (const struct nfnl_log *)
 
uint32_t nfnl_log_get_alloc_size (const struct nfnl_log *)
 
void nfnl_log_set_queue_threshold (struct nfnl_log *, uint32_t)
 
int nfnl_log_test_queue_threshold (const struct nfnl_log *)
 
uint32_t nfnl_log_get_queue_threshold (const struct nfnl_log *)
 
void nfnl_log_set_flags (struct nfnl_log *, unsigned int)
 
void nfnl_log_unset_flags (struct nfnl_log *, unsigned int)
 
unsigned int nfnl_log_get_flags (const struct nfnl_log *)
 
char * nfnl_log_flags2str (unsigned int, char *, size_t)
 
unsigned int nfnl_log_str2flags (const char *)
 
int nfnl_log_build_pf_bind (uint8_t, struct nl_msg **)
 
int nfnl_log_pf_bind (struct nl_sock *, uint8_t)
 
int nfnl_log_build_pf_unbind (uint8_t, struct nl_msg **)
 
int nfnl_log_pf_unbind (struct nl_sock *, uint8_t)
 
int nfnl_log_build_create_request (const struct nfnl_log *, struct nl_msg **)
 
int nfnl_log_create (struct nl_sock *, const struct nfnl_log *)
 
int nfnl_log_build_change_request (const struct nfnl_log *, struct nl_msg **)
 
int nfnl_log_change (struct nl_sock *, const struct nfnl_log *)
 
int nfnl_log_build_delete_request (const struct nfnl_log *, struct nl_msg **)
 
int nfnl_log_delete (struct nl_sock *, const struct nfnl_log *)
 

Variables

struct nl_object_ops log_obj_ops
 

Enumeration Type Documentation

Enumerator
NFNL_LOG_COPY_NONE 
NFNL_LOG_COPY_META 
NFNL_LOG_COPY_PACKET 
Enumerator
NFNL_LOG_FLAG_SEQ 
NFNL_LOG_FLAG_SEQ_GLOBAL 

Function Documentation

struct nfnl_log* nfnl_log_alloc ( void  )

References log_obj_ops, and nl_object_alloc().

Here is the call graph for this function:

char* nfnl_log_copy_mode2str ( enum  nfnl_log_copy_mode,
char *  ,
size_t   
)

References __type2str(), and ARRAY_SIZE.

Here is the call graph for this function:

char* nfnl_log_flags2str ( unsigned  int,
char *  ,
size_t   
)

References __flags2str(), and ARRAY_SIZE.

Here is the call graph for this function:

void nfnl_log_get ( struct nfnl_log )

References nl_object_get().

Here is the call graph for this function:

uint32_t nfnl_log_get_alloc_size ( const struct nfnl_log )
enum nfnl_log_copy_mode nfnl_log_get_copy_mode ( const struct nfnl_log )
uint32_t nfnl_log_get_copy_range ( const struct nfnl_log )
unsigned int nfnl_log_get_flags ( const struct nfnl_log )
uint32_t nfnl_log_get_flush_timeout ( const struct nfnl_log )
uint16_t nfnl_log_get_group ( const struct nfnl_log )

References nfnl_log::log_group.

Referenced by nfnl_log_build_delete_request().

Here is the caller graph for this function:

uint32_t nfnl_log_get_queue_threshold ( const struct nfnl_log )
void nfnl_log_put ( struct nfnl_log )

References nl_object_put().

Here is the call graph for this function:

void nfnl_log_set_alloc_size ( struct nfnl_log ,
uint32_t   
)
void nfnl_log_set_copy_mode ( struct nfnl_log ,
enum  nfnl_log_copy_mode 
)

References nfnl_log::log_copy_mode.

Referenced by main().

Here is the caller graph for this function:

void nfnl_log_set_copy_range ( struct nfnl_log ,
uint32_t   
)

References copy_range, and nfnl_log::log_copy_range.

Referenced by main().

Here is the caller graph for this function:

void nfnl_log_set_flags ( struct nfnl_log ,
unsigned  int 
)
void nfnl_log_set_flush_timeout ( struct nfnl_log ,
uint32_t   
)
void nfnl_log_set_group ( struct nfnl_log ,
uint16_t   
)

References nfnl_log::log_group.

Referenced by main().

Here is the caller graph for this function:

void nfnl_log_set_queue_threshold ( struct nfnl_log ,
uint32_t   
)
enum nfnl_log_copy_mode nfnl_log_str2copy_mode ( const char *  )

References __str2type(), and ARRAY_SIZE.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int nfnl_log_str2flags ( const char *  )

References __str2flags(), and ARRAY_SIZE.

Here is the call graph for this function:

int nfnl_log_test_alloc_size ( const struct nfnl_log )
int nfnl_log_test_copy_mode ( const struct nfnl_log )
int nfnl_log_test_copy_range ( const struct nfnl_log )
int nfnl_log_test_flush_timeout ( const struct nfnl_log )
int nfnl_log_test_group ( const struct nfnl_log )

Referenced by nfnl_log_build_delete_request().

Here is the caller graph for this function:

int nfnl_log_test_queue_threshold ( const struct nfnl_log )
void nfnl_log_unset_flags ( struct nfnl_log ,
unsigned  int 
)
int nfnlmsg_log_parse ( struct nlmsghdr ,
struct nfnl_log **   
)

Variable Documentation

struct nl_object_ops log_obj_ops

Referenced by nfnl_log_alloc().