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

Functions

struct nfnl_nft_tablenfnl_nft_table_alloc (void)
 
int nfnl_nft_table_alloc_cache (struct nl_sock *, struct nl_cache **)
 Build a conntrack cache holding all nf_tables tables currently in the kernel. More...
 
int nfnlmsg_nft_table_group (struct nlmsghdr *)
 
int nfnlmsg_nft_table_parse (struct nlmsghdr *, struct nfnl_nft_table **)
 
void nfnl_nft_table_get (struct nfnl_nft_table *)
 
void nfnl_nft_table_put (struct nfnl_nft_table *)
 
int nfnl_nft_table_dump_request (struct nl_sock *)
 
int nfnl_nft_table_build_add_request (struct nfnl_nft_table *, int, struct nl_msg **)
 
int nfnl_nft_table_add (struct nl_sock *, struct nfnl_nft_table *, int)
 
int nfnl_nft_table_build_delete_request (struct nfnl_nft_table *, int, struct nl_msg **)
 
int nfnl_nft_table_delete (struct nl_sock *, struct nfnl_nft_table *, int)
 
int nfnl_nft_table_build_query_request (struct nfnl_nft_table *, int, struct nl_msg **)
 
int nfnl_nft_table_query (struct nl_sock *, struct nfnl_nft_table *, int)
 
void nfnl_nft_table_set_family (struct nfnl_nft_table *, uint8_t)
 
int nfnl_nft_table_test_family (struct nfnl_nft_table *)
 
uint8_t nfnl_nft_table_get_family (struct nfnl_nft_table *)
 
int nfnl_nft_table_set_name (struct nfnl_nft_table *, const char *, int)
 
int nfnl_nft_table_test_name (struct nfnl_nft_table *)
 
const char * nfnl_nft_table_get_name (struct nfnl_nft_table *)
 

Variables

struct nl_object_ops nft_table_obj_ops
 

Function Documentation

struct nfnl_nft_table* nfnl_nft_table_alloc ( void  )

References nft_table_obj_ops, and nl_object_alloc().

Referenced by main(), and nfnlmsg_nft_table_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_table_get ( struct nfnl_nft_table )

References nl_object_get().

Here is the call graph for this function:

uint8_t nfnl_nft_table_get_family ( struct nfnl_nft_table )
const char* nfnl_nft_table_get_name ( struct nfnl_nft_table )

References nl_data_get(), and nfnl_nft_table::table_name.

Here is the call graph for this function:

void nfnl_nft_table_put ( struct nfnl_nft_table )

References nl_object_put().

Referenced by main(), and nfnlmsg_nft_table_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_table_set_family ( struct nfnl_nft_table ,
uint8_t   
)

References nfnl_nft_table::table_family.

Referenced by main(), and nfnlmsg_nft_table_parse().

Here is the caller graph for this function:

int nfnl_nft_table_set_name ( struct nfnl_nft_table ,
const char *  ,
int   
)

References data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, NULL, and nfnl_nft_table::table_name.

Referenced by main(), and nfnlmsg_nft_table_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

int nfnl_nft_table_test_family ( struct nfnl_nft_table )
int nfnl_nft_table_test_name ( struct nfnl_nft_table )
int nfnlmsg_nft_table_group ( struct nlmsghdr )

Variable Documentation

struct nl_object_ops nft_table_obj_ops

Referenced by nfnl_nft_table_alloc().