#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_rule.h>#include <netlink/netfilter/nft_expr.h>
Macros | |
| #define | NFT_RULE_DIFF(ATTR, EXPR) ATTR_DIFF(attrs, RULE_ATTR_##ATTR, a, b, EXPR) |
| #define | NFT_RULE_DIFF_VAL(ATTR, FIELD) NFT_RULE_DIFF(ATTR, a->FIELD != b->FIELD) |
| #define | NFT_RULE_DIFF_DATA(ATTR, FIELD) |
Variables | |
| struct nl_object_ops | nft_rule_obj_ops |
| #define NFT_RULE_DIFF | ( | ATTR, | |
| EXPR | |||
| ) | ATTR_DIFF(attrs, RULE_ATTR_##ATTR, a, b, EXPR) |
| #define NFT_RULE_DIFF_DATA | ( | ATTR, | |
| FIELD | |||
| ) |
| #define NFT_RULE_DIFF_VAL | ( | ATTR, | |
| FIELD | |||
| ) | NFT_RULE_DIFF(ATTR, a->FIELD != b->FIELD) |
| void nfnl_nft_rule_add_expr | ( | struct nfnl_nft_rule * | rule, |
| struct nfnl_nft_expr * | expr | ||
| ) |
References nfnl_nft_expr::expr_list, and nfnl_nft_rule::rule_expressions.
Referenced by main().

| struct nfnl_nft_rule* nfnl_nft_rule_alloc | ( | void | ) |
References nft_rule_obj_ops, and nl_object_alloc().
Referenced by main(), and nfnlmsg_nft_rule_parse().


| void nfnl_nft_rule_foreach_expr | ( | const struct nfnl_nft_rule * | rule, |
| void(*)(struct nl_object *, void *) | cb, | ||
| void * | arg | ||
| ) |
References nfnl_nft_expr::expr_list, nl_list_for_each_entry, and nfnl_nft_rule::rule_expressions.
| void nfnl_nft_rule_get | ( | struct nfnl_nft_rule * | rule | ) |
| const char* nfnl_nft_rule_get_chain | ( | const struct nfnl_nft_rule * | rule | ) |
| uint8_t nfnl_nft_rule_get_family | ( | const struct nfnl_nft_rule * | rule | ) |
References nfnl_nft_rule::rule_family.
| uint64_t nfnl_nft_rule_get_handle | ( | const struct nfnl_nft_rule * | rule | ) |
References nfnl_nft_rule::rule_handle.
| const char* nfnl_nft_rule_get_table | ( | const struct nfnl_nft_rule * | rule | ) |
| void nfnl_nft_rule_put | ( | struct nfnl_nft_rule * | rule | ) |
References nl_object_put().
Referenced by main(), and nfnlmsg_nft_rule_parse().


| int nfnl_nft_rule_set_chain | ( | struct nfnl_nft_rule * | rule, |
| const char * | chain, | ||
| int | len | ||
| ) |
References data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, NULL, and nfnl_nft_rule::rule_chain.
Referenced by main(), and nfnlmsg_nft_rule_parse().


| void nfnl_nft_rule_set_family | ( | struct nfnl_nft_rule * | rule, |
| uint8_t | family | ||
| ) |
References nfnl_nft_rule::rule_family.
Referenced by main(), and nfnlmsg_nft_rule_parse().

| void nfnl_nft_rule_set_handle | ( | struct nfnl_nft_rule * | rule, |
| uint64_t | handle | ||
| ) |
References nfnl_nft_rule::rule_handle.
Referenced by main(), and nfnlmsg_nft_rule_parse().

| int nfnl_nft_rule_set_table | ( | struct nfnl_nft_rule * | rule, |
| const char * | table, | ||
| int | len | ||
| ) |
References data, nl_data_alloc(), nl_data_free(), NLE_NOMEM, NULL, and nfnl_nft_rule::rule_table.
Referenced by main(), and nfnlmsg_nft_rule_parse().


| int nfnl_nft_rule_test_chain | ( | const struct nfnl_nft_rule * | rule | ) |
| int nfnl_nft_rule_test_family | ( | const struct nfnl_nft_rule * | rule | ) |
| int nfnl_nft_rule_test_handle | ( | const struct nfnl_nft_rule * | rule | ) |
| int nfnl_nft_rule_test_table | ( | const struct nfnl_nft_rule * | rule | ) |
| struct nl_object_ops nft_rule_obj_ops |
Referenced by nfnl_nft_rule_alloc().