#include <netlink/netlink.h>
Functions | |
struct nfnl_nft_data * | nfnl_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_data * | nfnl_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 *) |
struct nfnl_nft_data* nfnl_nft_data_alloc | ( | const void * | , |
size_t | |||
) |
References nfnl_nft_data::d_type, data, NFT_DATA_VALUE, and NULL.
void nfnl_nft_data_dump | ( | struct nl_dump_params * | , |
const struct nfnl_nft_data * | |||
) |
References buf, nfnl_nft_data::d_chain, nfnl_nft_data::d_data, nfnl_nft_data::d_size, nfnl_nft_data::d_type, nfnl_nft_verdict2str(), NFT_DATA_VALUE, NFT_DATA_VERDICT, NFT_GOTO, NFT_JUMP, nl_dump(), size, and verdict.
void nfnl_nft_data_free | ( | struct nfnl_nft_data * | ) |
References nfnl_nft_data::d_chain, and nfnl_nft_data::d_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.
int nfnl_nft_data_parse | ( | struct nlattr * | , |
struct nfnl_nft_data ** | |||
) |
References nfnl_nft_data::d_chain, nfnl_nft_data::d_type, data, NFT_DATA_VALUE, NFT_DATA_VERDICT, NFTA_DATA_MAX, NFTA_DATA_VALUE, NFTA_DATA_VERDICT, NFTA_VERDICT_CHAIN, NFTA_VERDICT_CODE, NFTA_VERDICT_MAX, nla_data(), nla_get_u32(), nla_len(), nla_parse_nested(), nla_strdup(), NLE_INVAL, NLE_NOMEM, NULL, and verdict.
int nfnl_nft_data_put | ( | struct nl_msg * | , |
int | , | ||
const struct nfnl_nft_data * | |||
) |
References nfnl_nft_data::d_chain, nfnl_nft_data::d_data, nfnl_nft_data::d_size, nfnl_nft_data::d_type, NFT_DATA_VALUE, NFT_DATA_VERDICT, NFT_GOTO, NFT_JUMP, NFTA_DATA_VALUE, NFTA_DATA_VERDICT, NFTA_VERDICT_CHAIN, NFTA_VERDICT_CODE, nla_nest_end(), nla_nest_start(), nla_put(), nla_put_string(), nla_put_u32(), NLE_MSGSIZE, NULL, and verdict.
unsigned int nfnl_nft_str2verdict | ( | const char * | ) |
char* nfnl_nft_verdict2str | ( | unsigned | int, |
char * | , | ||
size_t | |||
) |
References __type2str(), and ARRAY_SIZE.
Referenced by nfnl_nft_data_dump().
struct nfnl_nft_data* nfnl_nft_verdict_alloc | ( | void | ) |
References nfnl_nft_data::d_type, data, NFT_DATA_VERDICT, and NULL.
void nfnl_nft_verdict_free | ( | struct nfnl_nft_data * | ) |
const char* nfnl_nft_verdict_get_chain | ( | const struct nfnl_nft_data * | ) |
References nfnl_nft_data::d_chain.
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 * | |||
) |
References nfnl_nft_data::d_chain, NLE_NOMEM, and NULL.
void nfnl_nft_verdict_set_verdict | ( | struct nfnl_nft_data * | , |
unsigned | int | ||
) |
References nfnl_nft_data::d_data.