#include <sys/types.h>
#include <linux/netfilter/nf_tables.h>
#include <netlink-local.h>
#include <netlink/attr.h>
#include <netlink/netfilter/nfnl.h>
#include <netlink/netfilter/nft_rule.h>
#include <netlink/netfilter/nft_expr.h>
#include <netlink/netfilter/nft-expr-modules.h>
Macros | |
#define | NFNLMSG_NFT_TYPE(type) NFNLMSG_TYPE(NFNL_SUBSYS_NFTABLES, (type)) |
Functions | |
int | nfnlmsg_nft_rule_parse (struct nlmsghdr *nlh, struct nfnl_nft_rule **result) |
int | nfnl_nft_rule_dump_request (struct nl_sock *h) |
int | nfnl_nft_rule_build_add_request (struct nfnl_nft_rule *rule, int flags, struct nl_msg **result) |
int | nfnl_nft_rule_add (struct nl_sock *h, struct nfnl_nft_rule *rule, int flags) |
int | nfnl_nft_rule_build_delete_request (struct nfnl_nft_rule *rule, int flags, struct nl_msg **result) |
int | nfnl_nft_rule_delete (struct nl_sock *h, struct nfnl_nft_rule *rule, int flags) |
int | nfnl_nft_rule_build_query_request (struct nfnl_nft_rule *rule, int flags, struct nl_msg **result) |
int | nfnl_nft_rule_query (struct nl_sock *h, struct nfnl_nft_rule *rule, int flags) |
Cache Management | |
int | nfnl_nft_rule_alloc_cache (struct nl_sock *sock, struct nl_cache **result) |
Build a rule cache holding all nf_tables rules currently in the kernel. More... | |