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


struct nfnl_nft_datanfnl_nft_data_alloc (const void *ptr, size_t size)
void nfnl_nft_data_free (struct nfnl_nft_data *data)
size_t nfnl_nft_data_get_size (const struct nfnl_nft_data *data)
void * nfnl_nft_data_get (const struct nfnl_nft_data *data)
int nfnl_nft_data_parse (struct nlattr *nla, struct nfnl_nft_data **res)
int nfnl_nft_data_put (struct nl_msg *msg, int attr, const struct nfnl_nft_data *data)
void nfnl_nft_data_dump (struct nl_dump_params *p, const struct nfnl_nft_data *data)
struct nfnl_nft_datanfnl_nft_verdict_alloc (void)
void nfnl_nft_verdict_set_verdict (struct nfnl_nft_data *data, unsigned int verdict)
unsigned int nfnl_nft_verdict_get_verdict (const struct nfnl_nft_data *data)
int nfnl_nft_verdict_set_chain (struct nfnl_nft_data *data, const char *chain)
const char * nfnl_nft_verdict_get_chain (const struct nfnl_nft_data *data)
char * nfnl_nft_verdict2str (unsigned int verdict, char *buf, size_t len)
unsigned int nfnl_nft_str2verdict (const char *name)

Function Documentation

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

References nfnl_nft_data::d_data.

size_t nfnl_nft_data_get_size ( const struct nfnl_nft_data data)

References nfnl_nft_data::d_size.

unsigned int nfnl_nft_str2verdict ( const char *  name)

References __str2type(), and ARRAY_SIZE.

Here is the call graph for this function:

char* nfnl_nft_verdict2str ( unsigned int  verdict,
char *  buf,
size_t  len 

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  )
const char* nfnl_nft_verdict_get_chain ( const struct nfnl_nft_data data)
unsigned int nfnl_nft_verdict_get_verdict ( const struct nfnl_nft_data data)

References nfnl_nft_data::d_data.

int nfnl_nft_verdict_set_chain ( struct nfnl_nft_data data,
const char *  chain 
void nfnl_nft_verdict_set_verdict ( struct nfnl_nft_data data,
unsigned int  verdict 

References nfnl_nft_data::d_data.