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

Functions

struct nfnl_nft_chainnfnl_nft_chain_alloc (void)
 
int nfnl_nft_chain_alloc_cache (struct nl_sock *, struct nl_cache **)
 Build a conntrack cache holding all nf_tables chains currently in the kernel. More...
 
int nfnlmsg_nft_chain_group (struct nlmsghdr *)
 
int nfnlmsg_nft_chain_parse (struct nlmsghdr *, struct nfnl_nft_chain **)
 
void nfnl_nft_chain_get (struct nfnl_nft_chain *)
 
void nfnl_nft_chain_put (struct nfnl_nft_chain *)
 
int nfnl_nft_chain_dump_request (struct nl_sock *)
 
int nfnl_nft_chain_build_add_request (struct nfnl_nft_chain *, int, struct nl_msg **)
 
int nfnl_nft_chain_add (struct nl_sock *, struct nfnl_nft_chain *, int)
 
int nfnl_nft_chain_build_delete_request (struct nfnl_nft_chain *, int, struct nl_msg **)
 
int nfnl_nft_chain_delete (struct nl_sock *, struct nfnl_nft_chain *, int)
 
int nfnl_nft_chain_build_query_request (struct nfnl_nft_chain *, int, struct nl_msg **)
 
int nfnl_nft_chain_query (struct nl_sock *, struct nfnl_nft_chain *, int)
 
void nfnl_nft_chain_set_family (struct nfnl_nft_chain *, uint8_t)
 
int nfnl_nft_chain_test_family (struct nfnl_nft_chain *)
 
uint8_t nfnl_nft_chain_get_family (struct nfnl_nft_chain *)
 
int nfnl_nft_chain_set_table (struct nfnl_nft_chain *, const char *, int)
 
int nfnl_nft_chain_test_table (struct nfnl_nft_chain *)
 
const char * nfnl_nft_chain_get_table (struct nfnl_nft_chain *)
 
void nfnl_nft_chain_set_handle (struct nfnl_nft_chain *, uint64_t)
 
int nfnl_nft_chain_test_handle (struct nfnl_nft_chain *)
 
uint64_t nfnl_nft_chain_get_handle (struct nfnl_nft_chain *)
 
int nfnl_nft_chain_set_name (struct nfnl_nft_chain *, const char *, int)
 
int nfnl_nft_chain_test_name (struct nfnl_nft_chain *)
 
const char * nfnl_nft_chain_get_name (struct nfnl_nft_chain *)
 
void nfnl_nft_chain_set_hooknum (struct nfnl_nft_chain *, uint32_t)
 
int nfnl_nft_chain_test_hooknum (struct nfnl_nft_chain *)
 
uint32_t nfnl_nft_chain_get_hooknum (struct nfnl_nft_chain *)
 
void nfnl_nft_chain_set_priority (struct nfnl_nft_chain *, int32_t)
 
int nfnl_nft_chain_test_priority (struct nfnl_nft_chain *)
 
int32_t nfnl_nft_chain_get_priority (struct nfnl_nft_chain *)
 

Variables

struct nl_object_ops nft_chain_obj_ops
 

Function Documentation

struct nfnl_nft_chain* nfnl_nft_chain_alloc ( void  )

References nft_chain_obj_ops, and nl_object_alloc().

Referenced by main(), and nfnlmsg_nft_chain_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_chain_get ( struct nfnl_nft_chain )

References nl_object_get().

Here is the call graph for this function:

uint8_t nfnl_nft_chain_get_family ( struct nfnl_nft_chain )
uint64_t nfnl_nft_chain_get_handle ( struct nfnl_nft_chain )
uint32_t nfnl_nft_chain_get_hooknum ( struct nfnl_nft_chain )
const char* nfnl_nft_chain_get_name ( struct nfnl_nft_chain )

References nfnl_nft_chain::chain_name, and nl_data_get().

Here is the call graph for this function:

int32_t nfnl_nft_chain_get_priority ( struct nfnl_nft_chain )
const char* nfnl_nft_chain_get_table ( struct nfnl_nft_chain )

References nfnl_nft_chain::chain_table, and nl_data_get().

Here is the call graph for this function:

void nfnl_nft_chain_put ( struct nfnl_nft_chain )

References nl_object_put().

Referenced by main(), and nfnlmsg_nft_chain_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_chain_set_family ( struct nfnl_nft_chain ,
uint8_t   
)

References nfnl_nft_chain::chain_family.

Referenced by main(), and nfnlmsg_nft_chain_parse().

Here is the caller graph for this function:

void nfnl_nft_chain_set_handle ( struct nfnl_nft_chain ,
uint64_t   
)

References nfnl_nft_chain::chain_handle.

Referenced by nfnlmsg_nft_chain_parse().

Here is the caller graph for this function:

void nfnl_nft_chain_set_hooknum ( struct nfnl_nft_chain ,
uint32_t   
)

References nfnl_nft_chain::chain_hooknum.

Referenced by main(), and nfnlmsg_nft_chain_parse().

Here is the caller graph for this function:

int nfnl_nft_chain_set_name ( struct nfnl_nft_chain ,
const char *  ,
int   
)

References nfnl_nft_chain::chain_name, data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, and NULL.

Referenced by main(), and nfnlmsg_nft_chain_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void nfnl_nft_chain_set_priority ( struct nfnl_nft_chain ,
int32_t   
)

References nfnl_nft_chain::chain_priority.

Referenced by main(), and nfnlmsg_nft_chain_parse().

Here is the caller graph for this function:

int nfnl_nft_chain_set_table ( struct nfnl_nft_chain ,
const char *  ,
int   
)

References nfnl_nft_chain::chain_table, data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, and NULL.

Referenced by main(), and nfnlmsg_nft_chain_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

int nfnl_nft_chain_test_family ( struct nfnl_nft_chain )
int nfnl_nft_chain_test_handle ( struct nfnl_nft_chain )
int nfnl_nft_chain_test_hooknum ( struct nfnl_nft_chain )
int nfnl_nft_chain_test_name ( struct nfnl_nft_chain )
int nfnl_nft_chain_test_priority ( struct nfnl_nft_chain )
int nfnl_nft_chain_test_table ( struct nfnl_nft_chain )
int nfnlmsg_nft_chain_group ( struct nlmsghdr )

Variable Documentation

struct nl_object_ops nft_chain_obj_ops

Referenced by nfnl_nft_chain_alloc().