netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
log_msg_obj.c File Reference
Include dependency graph for log_msg_obj.c:

Functions

Allocation/Freeing
struct nfnl_log_msgnfnl_log_msg_alloc (void)
 
void nfnl_log_msg_get (struct nfnl_log_msg *msg)
 
void nfnl_log_msg_put (struct nfnl_log_msg *msg)
 
Attributes
void nfnl_log_msg_set_family (struct nfnl_log_msg *msg, uint8_t family)
 
uint8_t nfnl_log_msg_get_family (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_hwproto (struct nfnl_log_msg *msg, uint16_t hwproto)
 
int nfnl_log_msg_test_hwproto (const struct nfnl_log_msg *msg)
 
uint16_t nfnl_log_msg_get_hwproto (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_hook (struct nfnl_log_msg *msg, uint8_t hook)
 
int nfnl_log_msg_test_hook (const struct nfnl_log_msg *msg)
 
uint8_t nfnl_log_msg_get_hook (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_mark (struct nfnl_log_msg *msg, uint32_t mark)
 
int nfnl_log_msg_test_mark (const struct nfnl_log_msg *msg)
 
uint32_t nfnl_log_msg_get_mark (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_timestamp (struct nfnl_log_msg *msg, struct timeval *tv)
 
const struct timeval * nfnl_log_msg_get_timestamp (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_indev (struct nfnl_log_msg *msg, uint32_t indev)
 
uint32_t nfnl_log_msg_get_indev (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_outdev (struct nfnl_log_msg *msg, uint32_t outdev)
 
uint32_t nfnl_log_msg_get_outdev (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_physindev (struct nfnl_log_msg *msg, uint32_t physindev)
 
uint32_t nfnl_log_msg_get_physindev (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_physoutdev (struct nfnl_log_msg *msg, uint32_t physoutdev)
 
uint32_t nfnl_log_msg_get_physoutdev (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_hwaddr (struct nfnl_log_msg *msg, uint8_t *hwaddr, int len)
 
const uint8_t * nfnl_log_msg_get_hwaddr (const struct nfnl_log_msg *msg, int *len)
 
int nfnl_log_msg_set_payload (struct nfnl_log_msg *msg, uint8_t *payload, int len)
 
const void * nfnl_log_msg_get_payload (const struct nfnl_log_msg *msg, int *len)
 
int nfnl_log_msg_set_prefix (struct nfnl_log_msg *msg, void *prefix)
 
const char * nfnl_log_msg_get_prefix (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_uid (struct nfnl_log_msg *msg, uint32_t uid)
 
int nfnl_log_msg_test_uid (const struct nfnl_log_msg *msg)
 
uint32_t nfnl_log_msg_get_uid (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_gid (struct nfnl_log_msg *msg, uint32_t gid)
 
int nfnl_log_msg_test_gid (const struct nfnl_log_msg *msg)
 
uint32_t nfnl_log_msg_get_gid (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_seq (struct nfnl_log_msg *msg, uint32_t seq)
 
int nfnl_log_msg_test_seq (const struct nfnl_log_msg *msg)
 
uint32_t nfnl_log_msg_get_seq (const struct nfnl_log_msg *msg)
 
void nfnl_log_msg_set_seq_global (struct nfnl_log_msg *msg, uint32_t seq_global)
 
int nfnl_log_msg_test_seq_global (const struct nfnl_log_msg *msg)
 
uint32_t nfnl_log_msg_get_seq_global (const struct nfnl_log_msg *msg)
 

Variables

struct nl_object_ops log_msg_obj_ops
 

Function Documentation

struct nfnl_log_msg* nfnl_log_msg_alloc ( void  )

References log_msg_obj_ops, and nl_object_alloc().

Referenced by nfnlmsg_log_msg_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_log_msg_get ( struct nfnl_log_msg msg)

References nl_object_get().

Here is the call graph for this function:

uint8_t nfnl_log_msg_get_family ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_gid ( const struct nfnl_log_msg msg)
uint8_t nfnl_log_msg_get_hook ( const struct nfnl_log_msg msg)
const uint8_t* nfnl_log_msg_get_hwaddr ( const struct nfnl_log_msg msg,
int *  len 
)
uint16_t nfnl_log_msg_get_hwproto ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_indev ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_mark ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_outdev ( const struct nfnl_log_msg msg)
const void* nfnl_log_msg_get_payload ( const struct nfnl_log_msg msg,
int *  len 
)
uint32_t nfnl_log_msg_get_physindev ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_physoutdev ( const struct nfnl_log_msg msg)
const char* nfnl_log_msg_get_prefix ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_seq ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_seq_global ( const struct nfnl_log_msg msg)
const struct timeval* nfnl_log_msg_get_timestamp ( const struct nfnl_log_msg msg)
uint32_t nfnl_log_msg_get_uid ( const struct nfnl_log_msg msg)
void nfnl_log_msg_put ( struct nfnl_log_msg msg)

References nl_object_put().

Referenced by nfnlmsg_log_msg_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_log_msg_set_family ( struct nfnl_log_msg msg,
uint8_t  family 
)

References nfnl_log_msg::log_msg_family.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_gid ( struct nfnl_log_msg msg,
uint32_t  gid 
)

References nfnl_log_msg::log_msg_gid.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_hook ( struct nfnl_log_msg msg,
uint8_t  hook 
)

References hook, and nfnl_log_msg::log_msg_hook.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_hwaddr ( struct nfnl_log_msg msg,
uint8_t *  hwaddr,
int  len 
)

References len, nfnl_log_msg::log_msg_hwaddr, and nfnl_log_msg::log_msg_hwaddr_len.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_hwproto ( struct nfnl_log_msg msg,
uint16_t  hwproto 
)

References nfnl_log_msg::log_msg_hwproto.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_indev ( struct nfnl_log_msg msg,
uint32_t  indev 
)

References nfnl_log_msg::log_msg_indev.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_mark ( struct nfnl_log_msg msg,
uint32_t  mark 
)

References nfnl_log_msg::log_msg_mark, and mark.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_outdev ( struct nfnl_log_msg msg,
uint32_t  outdev 
)

References nfnl_log_msg::log_msg_outdev.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

int nfnl_log_msg_set_payload ( struct nfnl_log_msg msg,
uint8_t *  payload,
int  len 
)

References len, nfnl_log_msg::log_msg_payload, nfnl_log_msg::log_msg_payload_len, and NLE_NOMEM.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_physindev ( struct nfnl_log_msg msg,
uint32_t  physindev 
)

References nfnl_log_msg::log_msg_physindev.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_physoutdev ( struct nfnl_log_msg msg,
uint32_t  physoutdev 
)

References nfnl_log_msg::log_msg_physoutdev.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

int nfnl_log_msg_set_prefix ( struct nfnl_log_msg msg,
void *  prefix 
)

References nfnl_log_msg::log_msg_prefix, and NLE_NOMEM.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_seq ( struct nfnl_log_msg msg,
uint32_t  seq 
)

References nfnl_log_msg::log_msg_seq.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_seq_global ( struct nfnl_log_msg msg,
uint32_t  seq_global 
)

References nfnl_log_msg::log_msg_seq_global.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_timestamp ( struct nfnl_log_msg msg,
struct timeval *  tv 
)

References nfnl_log_msg::log_msg_timestamp.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

void nfnl_log_msg_set_uid ( struct nfnl_log_msg msg,
uint32_t  uid 
)

References nfnl_log_msg::log_msg_uid.

Referenced by nfnlmsg_log_msg_parse().

Here is the caller graph for this function:

int nfnl_log_msg_test_gid ( const struct nfnl_log_msg msg)
int nfnl_log_msg_test_hook ( const struct nfnl_log_msg msg)
int nfnl_log_msg_test_hwproto ( const struct nfnl_log_msg msg)
int nfnl_log_msg_test_mark ( const struct nfnl_log_msg msg)
int nfnl_log_msg_test_seq ( const struct nfnl_log_msg msg)
int nfnl_log_msg_test_seq_global ( const struct nfnl_log_msg msg)
int nfnl_log_msg_test_uid ( const struct nfnl_log_msg msg)

Variable Documentation

struct nl_object_ops log_msg_obj_ops
Initial value:
= {
.oo_name = "netfilter/log_msg",
.oo_size = sizeof(struct nfnl_log_msg),
.oo_free_data = log_msg_free_data,
.oo_clone = log_msg_clone,
.oo_dump = {
[NL_DUMP_LINE] = log_msg_dump,
[NL_DUMP_DETAILS] = log_msg_dump,
[NL_DUMP_STATS] = log_msg_dump,
},
}
Dump object briefly on one line.
Definition: types.h:22
Dump all attributes but no statistics.
Definition: types.h:23
Definition: netlink-types.h:776
Dump all attributes including statistics.
Definition: types.h:24

Referenced by nfnl_log_msg_alloc().