#include <sys/types.h>
#include <linux/netfilter/nf_tables.h>
#include <netlink-local.h>
#include <netlink/netfilter/nfnl.h>
#include <netlink/netfilter/netfilter.h>
#include <netlink/netfilter/nft_chain.h>
Macros | |
#define | NFT_CHAIN_DIFF(ATTR, EXPR) ATTR_DIFF(attrs, CHAIN_ATTR_##ATTR, a, b, EXPR) |
#define | NFT_CHAIN_DIFF_VAL(ATTR, FIELD) NFT_CHAIN_DIFF(ATTR, a->FIELD != b->FIELD) |
#define | NFT_CHAIN_DIFF_DATA(ATTR, FIELD) |
Variables | |
struct nl_object_ops | nft_chain_obj_ops |
#define NFT_CHAIN_DIFF | ( | ATTR, | |
EXPR | |||
) | ATTR_DIFF(attrs, CHAIN_ATTR_##ATTR, a, b, EXPR) |
#define NFT_CHAIN_DIFF_DATA | ( | ATTR, | |
FIELD | |||
) |
#define NFT_CHAIN_DIFF_VAL | ( | ATTR, | |
FIELD | |||
) | NFT_CHAIN_DIFF(ATTR, a->FIELD != b->FIELD) |
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().
void nfnl_nft_chain_get | ( | struct nfnl_nft_chain * | chain | ) |
uint8_t nfnl_nft_chain_get_family | ( | struct nfnl_nft_chain * | chain | ) |
References nfnl_nft_chain::chain_family.
uint64_t nfnl_nft_chain_get_handle | ( | struct nfnl_nft_chain * | chain | ) |
References nfnl_nft_chain::chain_handle.
uint32_t nfnl_nft_chain_get_hooknum | ( | struct nfnl_nft_chain * | chain | ) |
References nfnl_nft_chain::chain_hooknum.
const char* nfnl_nft_chain_get_name | ( | struct nfnl_nft_chain * | chain | ) |
int32_t nfnl_nft_chain_get_priority | ( | struct nfnl_nft_chain * | chain | ) |
References nfnl_nft_chain::chain_priority.
const char* nfnl_nft_chain_get_table | ( | struct nfnl_nft_chain * | chain | ) |
References nfnl_nft_chain::chain_table, and nl_data_get().
void nfnl_nft_chain_put | ( | struct nfnl_nft_chain * | chain | ) |
References nl_object_put().
Referenced by main(), and nfnlmsg_nft_chain_parse().
void nfnl_nft_chain_set_family | ( | struct nfnl_nft_chain * | chain, |
uint8_t | family | ||
) |
References nfnl_nft_chain::chain_family.
Referenced by main(), and nfnlmsg_nft_chain_parse().
void nfnl_nft_chain_set_handle | ( | struct nfnl_nft_chain * | chain, |
uint64_t | handle | ||
) |
References nfnl_nft_chain::chain_handle.
Referenced by nfnlmsg_nft_chain_parse().
void nfnl_nft_chain_set_hooknum | ( | struct nfnl_nft_chain * | chain, |
uint32_t | hooknum | ||
) |
References nfnl_nft_chain::chain_hooknum.
Referenced by main(), and nfnlmsg_nft_chain_parse().
int nfnl_nft_chain_set_name | ( | struct nfnl_nft_chain * | chain, |
const char * | name, | ||
int | len | ||
) |
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().
void nfnl_nft_chain_set_priority | ( | struct nfnl_nft_chain * | chain, |
int32_t | priority | ||
) |
References nfnl_nft_chain::chain_priority.
Referenced by main(), and nfnlmsg_nft_chain_parse().
int nfnl_nft_chain_set_table | ( | struct nfnl_nft_chain * | chain, |
const char * | table, | ||
int | len | ||
) |
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().
int nfnl_nft_chain_test_family | ( | struct nfnl_nft_chain * | chain | ) |
int nfnl_nft_chain_test_handle | ( | struct nfnl_nft_chain * | chain | ) |
int nfnl_nft_chain_test_hooknum | ( | struct nfnl_nft_chain * | chain | ) |
int nfnl_nft_chain_test_name | ( | struct nfnl_nft_chain * | chain | ) |
int nfnl_nft_chain_test_priority | ( | struct nfnl_nft_chain * | chain | ) |
int nfnl_nft_chain_test_table | ( | struct nfnl_nft_chain * | chain | ) |
struct nl_object_ops nft_chain_obj_ops |
Referenced by nfnl_nft_chain_alloc().