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

Functions

struct nfnl_nft_datanfnl_nft_data_alloc (const void *, size_t)
 
void nfnl_nft_data_free (struct nfnl_nft_data *)
 
size_t nfnl_nft_data_get_size (const struct nfnl_nft_data *)
 
void * nfnl_nft_data_get (const struct nfnl_nft_data *)
 
int nfnl_nft_data_parse (struct nlattr *, struct nfnl_nft_data **)
 
int nfnl_nft_data_put (struct nl_msg *, int, const struct nfnl_nft_data *)
 
struct nfnl_nft_datanfnl_nft_verdict_alloc (void)
 
void nfnl_nft_verdict_free (struct nfnl_nft_data *)
 
void nfnl_nft_verdict_set_verdict (struct nfnl_nft_data *, unsigned int)
 
unsigned int nfnl_nft_verdict_get_verdict (const struct nfnl_nft_data *)
 
int nfnl_nft_verdict_set_chain (struct nfnl_nft_data *, const char *)
 
const char * nfnl_nft_verdict_get_chain (const struct nfnl_nft_data *)
 
void nfnl_nft_data_dump (struct nl_dump_params *, const struct nfnl_nft_data *)
 
char * nfnl_nft_verdict2str (unsigned int, char *, size_t)
 
unsigned int nfnl_nft_str2verdict (const char *)
 

Function Documentation

struct nfnl_nft_data* nfnl_nft_data_alloc ( const void *  ,
size_t   
)
void nfnl_nft_data_free ( struct nfnl_nft_data )
void* nfnl_nft_data_get ( const struct nfnl_nft_data )

References nfnl_nft_data::d_data.

size_t nfnl_nft_data_get_size ( const struct nfnl_nft_data )

References nfnl_nft_data::d_size.

unsigned int nfnl_nft_str2verdict ( const char *  )

References __str2type(), and ARRAY_SIZE.

Here is the call graph for this function:

char* nfnl_nft_verdict2str ( unsigned  int,
char *  ,
size_t   
)

References __type2str(), and ARRAY_SIZE.

Referenced by nfnl_nft_data_dump().

Here is the call graph for this function:

Here is the caller graph for this function:

struct nfnl_nft_data* nfnl_nft_verdict_alloc ( void  )
void nfnl_nft_verdict_free ( struct nfnl_nft_data )
const char* nfnl_nft_verdict_get_chain ( const struct nfnl_nft_data )
unsigned int nfnl_nft_verdict_get_verdict ( const struct nfnl_nft_data )

References nfnl_nft_data::d_data.

int nfnl_nft_verdict_set_chain ( struct nfnl_nft_data ,
const char *   
)
void nfnl_nft_verdict_set_verdict ( struct nfnl_nft_data ,
unsigned  int 
)

References nfnl_nft_data::d_data.