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

Functions

struct nfnl_nft_setnfnl_nft_set_alloc (void)
 
void nfnl_nft_set_get (struct nfnl_nft_set *)
 
void nfnl_nft_set_put (struct nfnl_nft_set *)
 
int nfnl_nft_set_alloc_cache (struct nl_sock *, int, const char *, struct nl_cache **)
 Build a set cache holding all nf_tables sets currently in the kernel. More...
 
int nfnlmsg_nft_set_group (struct nlmsghdr *)
 
int nfnlmsg_nft_set_parse (struct nlmsghdr *, struct nfnl_nft_set **)
 
int nfnl_nft_set_dump_request (struct nl_sock *, int, const char *)
 
int nfnl_nft_set_build_add_request (struct nfnl_nft_set *, int, struct nl_msg **)
 
int nfnl_nft_set_add (struct nl_sock *, struct nfnl_nft_set *, int)
 
int nfnl_nft_set_build_delete_request (struct nfnl_nft_set *, int, struct nl_msg **)
 
int nfnl_nft_set_delete (struct nl_sock *, struct nfnl_nft_set *, int)
 
int nfnl_nft_set_build_query_request (struct nfnl_nft_set *, int, struct nl_msg **)
 
int nfnl_nft_set_query (struct nl_sock *, struct nfnl_nft_set *, int)
 
void nfnl_nft_set_set_family (struct nfnl_nft_set *, uint8_t)
 
int nfnl_nft_set_test_family (const struct nfnl_nft_set *)
 
uint8_t nfnl_nft_set_get_family (const struct nfnl_nft_set *)
 
int nfnl_nft_set_set_table (struct nfnl_nft_set *, const char *, int)
 
int nfnl_nft_set_test_table (const struct nfnl_nft_set *)
 
const char * nfnl_nft_set_get_table (const struct nfnl_nft_set *)
 
int nfnl_nft_set_set_name (struct nfnl_nft_set *, const char *, int)
 
int nfnl_nft_set_test_name (const struct nfnl_nft_set *)
 
const char * nfnl_nft_set_get_name (const struct nfnl_nft_set *)
 
void nfnl_nft_set_set_flags (struct nfnl_nft_set *, uint32_t)
 
int nfnl_nft_set_test_flags (const struct nfnl_nft_set *)
 
uint32_t nfnl_nft_set_get_flags (const struct nfnl_nft_set *)
 
void nfnl_nft_set_set_keytype (struct nfnl_nft_set *, enum nft_data_types)
 
int nfnl_nft_set_test_keytype (const struct nfnl_nft_set *)
 
enum nft_data_types nfnl_nft_set_get_keytype (const struct nfnl_nft_set *)
 
void nfnl_nft_set_set_keylen (struct nfnl_nft_set *, uint32_t)
 
int nfnl_nft_set_test_keylen (const struct nfnl_nft_set *)
 
uint32_t nfnl_nft_set_get_keylen (const struct nfnl_nft_set *)
 
void nfnl_nft_set_set_datatype (struct nfnl_nft_set *, enum nft_data_types)
 
int nfnl_nft_set_test_datatype (const struct nfnl_nft_set *)
 
enum nft_data_types nfnl_nft_set_get_datatype (const struct nfnl_nft_set *)
 
void nfnl_nft_set_set_datalen (struct nfnl_nft_set *, uint32_t)
 
int nfnl_nft_set_test_datalen (const struct nfnl_nft_set *)
 
uint32_t nfnl_nft_set_get_datalen (const struct nfnl_nft_set *)
 
char * nfnl_nft_set_flags2str (uint32_t, char *, size_t)
 
uint32_t nfnl_nft_set_str2flags (const char *)
 

Variables

struct nl_object_ops nft_set_obj_ops
 

Function Documentation

struct nfnl_nft_set* nfnl_nft_set_alloc ( void  )

References nft_set_obj_ops, and nl_object_alloc().

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

char* nfnl_nft_set_flags2str ( uint32_t  ,
char *  ,
size_t   
)

References __flags2str(), and ARRAY_SIZE.

Here is the call graph for this function:

void nfnl_nft_set_get ( struct nfnl_nft_set )

References nl_object_get().

Here is the call graph for this function:

uint32_t nfnl_nft_set_get_datalen ( const struct nfnl_nft_set )
enum nft_data_types nfnl_nft_set_get_datatype ( const struct nfnl_nft_set )
uint8_t nfnl_nft_set_get_family ( const struct nfnl_nft_set )
uint32_t nfnl_nft_set_get_flags ( const struct nfnl_nft_set )
uint32_t nfnl_nft_set_get_keylen ( const struct nfnl_nft_set )
enum nft_data_types nfnl_nft_set_get_keytype ( const struct nfnl_nft_set )
const char* nfnl_nft_set_get_name ( const struct nfnl_nft_set )

References nl_data_get(), and nfnl_nft_set::set_name.

Referenced by nfnl_nft_setelem_dump_request().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* nfnl_nft_set_get_table ( const struct nfnl_nft_set )

References nl_data_get(), and nfnl_nft_set::set_table.

Referenced by nfnl_nft_setelem_dump_request().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_set_put ( struct nfnl_nft_set )

References nl_object_put().

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_set_set_datalen ( struct nfnl_nft_set ,
uint32_t   
)

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the caller graph for this function:

void nfnl_nft_set_set_datatype ( struct nfnl_nft_set ,
enum  nft_data_types 
)

References nfnl_nft_set::set_datatype, and type.

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the caller graph for this function:

void nfnl_nft_set_set_family ( struct nfnl_nft_set ,
uint8_t   
)

References nfnl_nft_set::set_family.

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the caller graph for this function:

void nfnl_nft_set_set_flags ( struct nfnl_nft_set ,
uint32_t   
)

References flags, and nfnl_nft_set::set_flags.

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the caller graph for this function:

void nfnl_nft_set_set_keylen ( struct nfnl_nft_set ,
uint32_t   
)

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the caller graph for this function:

void nfnl_nft_set_set_keytype ( struct nfnl_nft_set ,
enum  nft_data_types 
)

References nfnl_nft_set::set_keytype, and type.

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the caller graph for this function:

int nfnl_nft_set_set_name ( struct nfnl_nft_set ,
const char *  ,
int   
)

References data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, NULL, and nfnl_nft_set::set_name.

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

int nfnl_nft_set_set_table ( struct nfnl_nft_set ,
const char *  ,
int   
)

References data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, NULL, and nfnl_nft_set::set_table.

Referenced by main(), and nfnlmsg_nft_set_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t nfnl_nft_set_str2flags ( const char *  )

References __str2flags(), and ARRAY_SIZE.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int nfnl_nft_set_test_datalen ( const struct nfnl_nft_set )
int nfnl_nft_set_test_datatype ( const struct nfnl_nft_set )
int nfnl_nft_set_test_family ( const struct nfnl_nft_set )
int nfnl_nft_set_test_flags ( const struct nfnl_nft_set )
int nfnl_nft_set_test_keylen ( const struct nfnl_nft_set )
int nfnl_nft_set_test_keytype ( const struct nfnl_nft_set )
int nfnl_nft_set_test_name ( const struct nfnl_nft_set )

Referenced by nfnl_nft_setelem_dump_request().

Here is the caller graph for this function:

int nfnl_nft_set_test_table ( const struct nfnl_nft_set )

Referenced by nfnl_nft_setelem_dump_request().

Here is the caller graph for this function:

int nfnlmsg_nft_set_group ( struct nlmsghdr )

Variable Documentation

struct nl_object_ops nft_set_obj_ops

Referenced by nfnl_nft_set_alloc().