netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nft_set.c File Reference
#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_set.h>
Include dependency graph for nft_set.c:

Macros

#define NFNLMSG_NFT_TYPE(type)   NFNLMSG_TYPE(NFNL_SUBSYS_NFTABLES, (type))
 

Functions

int nfnlmsg_nft_set_parse (struct nlmsghdr *nlh, struct nfnl_nft_set **result)
 
int nfnl_nft_set_dump_request (struct nl_sock *h, int family, const char *table)
 
int nfnl_nft_set_build_add_request (struct nfnl_nft_set *set, int flags, struct nl_msg **result)
 
int nfnl_nft_set_add (struct nl_sock *h, struct nfnl_nft_set *set, int flags)
 
int nfnl_nft_set_build_delete_request (struct nfnl_nft_set *set, int flags, struct nl_msg **result)
 
int nfnl_nft_set_delete (struct nl_sock *h, struct nfnl_nft_set *set, int flags)
 
int nfnl_nft_set_build_query_request (struct nfnl_nft_set *set, int flags, struct nl_msg **result)
 
int nfnl_nft_set_query (struct nl_sock *h, struct nfnl_nft_set *set, int flags)
 
Cache Management
int nfnl_nft_set_alloc_cache (struct nl_sock *sock, int family, const char *table, struct nl_cache **result)
 Build a set cache holding all nf_tables sets currently in the kernel. More...