#include <sys/types.h>#include <linux/netfilter/nf_tables.h>#include <netlink-local.h>#include <netlink/netfilter/nfnl.h>#include <netlink/netfilter/nft_table.h>
Macros | |
| #define | NFT_TABLE_DIFF(ATTR, EXPR) ATTR_DIFF(attrs, TABLE_ATTR_##ATTR, a, b, EXPR) |
| #define | NFT_TABLE_DIFF_VAL(ATTR, FIELD) NFT_TABLE_DIFF(ATTR, a->FIELD != b->FIELD) |
| #define | NFT_TABLE_DIFF_DATA(ATTR, FIELD) |
Functions | |
Allocation/Freeing | |
| struct nfnl_nft_table * | nfnl_nft_table_alloc (void) |
| void | nfnl_nft_table_get (struct nfnl_nft_table *table) |
| void | nfnl_nft_table_put (struct nfnl_nft_table *table) |
Attributes | |
| void | nfnl_nft_table_set_family (struct nfnl_nft_table *table, uint8_t family) |
| int | nfnl_nft_table_test_family (struct nfnl_nft_table *table) |
| uint8_t | nfnl_nft_table_get_family (struct nfnl_nft_table *table) |
| int | nfnl_nft_table_set_name (struct nfnl_nft_table *table, const char *name, int len) |
| int | nfnl_nft_table_test_name (struct nfnl_nft_table *table) |
| const char * | nfnl_nft_table_get_name (struct nfnl_nft_table *table) |
Variables | |
| struct nl_object_ops | nft_table_obj_ops |
| #define NFT_TABLE_DIFF | ( | ATTR, | |
| EXPR | |||
| ) | ATTR_DIFF(attrs, TABLE_ATTR_##ATTR, a, b, EXPR) |
| #define NFT_TABLE_DIFF_DATA | ( | ATTR, | |
| FIELD | |||
| ) |
| #define NFT_TABLE_DIFF_VAL | ( | ATTR, | |
| FIELD | |||
| ) | NFT_TABLE_DIFF(ATTR, a->FIELD != b->FIELD) |
| struct nfnl_nft_table* nfnl_nft_table_alloc | ( | void | ) |
References nft_table_obj_ops, and nl_object_alloc().
Referenced by main(), and nfnlmsg_nft_table_parse().


| void nfnl_nft_table_get | ( | struct nfnl_nft_table * | table | ) |
| uint8_t nfnl_nft_table_get_family | ( | struct nfnl_nft_table * | table | ) |
References nfnl_nft_table::table_family.
| const char* nfnl_nft_table_get_name | ( | struct nfnl_nft_table * | table | ) |
| void nfnl_nft_table_put | ( | struct nfnl_nft_table * | table | ) |
References nl_object_put().
Referenced by main(), and nfnlmsg_nft_table_parse().


| void nfnl_nft_table_set_family | ( | struct nfnl_nft_table * | table, |
| uint8_t | family | ||
| ) |
References nfnl_nft_table::table_family.
Referenced by main(), and nfnlmsg_nft_table_parse().

| int nfnl_nft_table_set_name | ( | struct nfnl_nft_table * | table, |
| const char * | name, | ||
| int | len | ||
| ) |
References data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, NULL, and nfnl_nft_table::table_name.
Referenced by main(), and nfnlmsg_nft_table_parse().


| int nfnl_nft_table_test_family | ( | struct nfnl_nft_table * | table | ) |
| int nfnl_nft_table_test_name | ( | struct nfnl_nft_table * | table | ) |
| struct nl_object_ops nft_table_obj_ops |
Referenced by nfnl_nft_table_alloc().