firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nft_setelem_obj.c File Reference
#include <sys/types.h>
#include <linux/netfilter/nf_tables.h>
#include <netlink-local.h>
#include <netlink/attr.h>
#include <netlink/netfilter/nfnl.h>
#include <netlink/netfilter/nft_table.h>
#include <netlink/netfilter/nft_set.h>
#include <netlink/netfilter/nft_setelem.h>
Include dependency graph for nft_setelem_obj.c:


struct nfnl_nft_setelemnfnl_nft_setelem_alloc (void)
void nfnl_nft_setelem_get (struct nfnl_nft_setelem *elem)
void nfnl_nft_setelem_put (struct nfnl_nft_setelem *elem)


struct nl_object_ops nft_setelem_obj_ops


void nfnl_nft_setelem_set_key (struct nfnl_nft_setelem *elem, struct nfnl_nft_data *key)
int nfnl_nft_setelem_test_key (const struct nfnl_nft_setelem *elem)
struct nfnl_nft_datanfnl_nft_setelem_get_key (const struct nfnl_nft_setelem *elem)
void nfnl_nft_setelem_set_data (struct nfnl_nft_setelem *elem, struct nfnl_nft_data *data)
int nfnl_nft_setelem_test_data (const struct nfnl_nft_setelem *elem)
struct nfnl_nft_datanfnl_nft_setelem_get_data (const struct nfnl_nft_setelem *elem)
void nfnl_nft_setelem_set_flags (struct nfnl_nft_setelem *elem, uint32_t flags)
int nfnl_nft_setelem_test_flags (const struct nfnl_nft_setelem *elem)
uint32_t nfnl_nft_setelem_get_flags (const struct nfnl_nft_setelem *elem)
char * nfnl_nft_setelem_flags2str (uint32_t flags, char *buf, size_t len)
uint32_t nfnl_nft_setelem_str2flags (const char *name)

Function Documentation

struct nfnl_nft_setelem* nfnl_nft_setelem_alloc ( void  )

References nft_setelem_obj_ops, and nl_object_alloc().

Here is the call graph for this function:

char* nfnl_nft_setelem_flags2str ( uint32_t  flags,
char *  buf,
size_t  len 

References __flags2str(), and ARRAY_SIZE.

Here is the call graph for this function:

void nfnl_nft_setelem_get ( struct nfnl_nft_setelem elem)

References nl_object_get().

Here is the call graph for this function:

struct nfnl_nft_data* nfnl_nft_setelem_get_data ( const struct nfnl_nft_setelem elem)
uint32_t nfnl_nft_setelem_get_flags ( const struct nfnl_nft_setelem elem)
struct nfnl_nft_data* nfnl_nft_setelem_get_key ( const struct nfnl_nft_setelem elem)
void nfnl_nft_setelem_put ( struct nfnl_nft_setelem elem)

References nl_object_put().

Here is the call graph for this function:

void nfnl_nft_setelem_set_data ( struct nfnl_nft_setelem elem,
struct nfnl_nft_data data 
void nfnl_nft_setelem_set_flags ( struct nfnl_nft_setelem elem,
uint32_t  flags 
void nfnl_nft_setelem_set_key ( struct nfnl_nft_setelem elem,
struct nfnl_nft_data key 
uint32_t nfnl_nft_setelem_str2flags ( const char *  name)

References __str2flags(), and ARRAY_SIZE.

Here is the call graph for this function:

int nfnl_nft_setelem_test_data ( const struct nfnl_nft_setelem elem)
int nfnl_nft_setelem_test_flags ( const struct nfnl_nft_setelem elem)
int nfnl_nft_setelem_test_key ( const struct nfnl_nft_setelem elem)

Variable Documentation

struct nl_object_ops nft_setelem_obj_ops
Initial value:
= {
.oo_name = "netfilter/nft_setelem",
.oo_size = sizeof(struct nfnl_nft_setelem),
.oo_free_data = nft_setelem_free_data,
.oo_clone = nft_setelem_clone,
.oo_dump = {
[NL_DUMP_LINE] = nft_setelem_dump,
[NL_DUMP_DETAILS] = nft_setelem_dump,
[NL_DUMP_STATS] = nft_setelem_dump,
.oo_compare = nft_setelem_compare,
.oo_attrs2str = nft_setelem_attrs2str,
Dump object briefly on one line.
Definition: types.h:22
Dump all attributes but no statistics.
Definition: types.h:23
Definition: netlink-types.h:878
Dump all attributes including statistics.
Definition: types.h:24

Referenced by nfnl_nft_setelem_alloc().