#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>
struct nfnl_nft_data* nfnl_nft_data_alloc | ( | const void * | ptr, |
size_t | size | ||
) |
References nfnl_nft_data::d_type, data, NFT_DATA_VALUE, and NULL.
void nfnl_nft_data_dump | ( | struct nl_dump_params * | p, |
const struct nfnl_nft_data * | 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 * | data | ) |
References nfnl_nft_data::d_chain, and nfnl_nft_data::d_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.
int nfnl_nft_data_parse | ( | struct nlattr * | nla, |
struct nfnl_nft_data ** | res | ||
) |
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 * | msg, |
int | attr, | ||
const struct nfnl_nft_data * | 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 * | name | ) |
char* nfnl_nft_verdict2str | ( | unsigned int | verdict, |
char * | buf, | ||
size_t | len | ||
) |
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.
const char* nfnl_nft_verdict_get_chain | ( | const struct nfnl_nft_data * | data | ) |
References nfnl_nft_data::d_chain.
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 | ||
) |
References nfnl_nft_data::d_chain, NLE_NOMEM, and NULL.
void nfnl_nft_verdict_set_verdict | ( | struct nfnl_nft_data * | data, |
unsigned int | verdict | ||
) |
References nfnl_nft_data::d_data.