#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_table.h>
#include <netlink/netfilter/nft_set.h>
#include <netlink/netfilter/nft_setelem.h>
Functions | |
Allocation/Freeing | |
struct nfnl_nft_setelem * | nfnl_nft_setelem_alloc (void) |
void | nfnl_nft_setelem_get (struct nfnl_nft_setelem *elem) |
void | nfnl_nft_setelem_put (struct nfnl_nft_setelem *elem) |
Variables | |
struct nl_object_ops | nft_setelem_obj_ops |
Attributes | |
void | nfnl_nft_setelem_set_key (struct nfnl_nft_setelem *elem, struct nfnl_nft_data *key) |
int | nfnl_nft_setelem_test_key (const struct nfnl_nft_setelem *elem) |
struct nfnl_nft_data * | nfnl_nft_setelem_get_key (const struct nfnl_nft_setelem *elem) |
void | nfnl_nft_setelem_set_data (struct nfnl_nft_setelem *elem, struct nfnl_nft_data *data) |
int | nfnl_nft_setelem_test_data (const struct nfnl_nft_setelem *elem) |
struct nfnl_nft_data * | nfnl_nft_setelem_get_data (const struct nfnl_nft_setelem *elem) |
void | nfnl_nft_setelem_set_flags (struct nfnl_nft_setelem *elem, uint32_t flags) |
int | nfnl_nft_setelem_test_flags (const struct nfnl_nft_setelem *elem) |
uint32_t | nfnl_nft_setelem_get_flags (const struct nfnl_nft_setelem *elem) |
char * | nfnl_nft_setelem_flags2str (uint32_t flags, char *buf, size_t len) |
uint32_t | nfnl_nft_setelem_str2flags (const char *name) |
struct nfnl_nft_setelem* nfnl_nft_setelem_alloc | ( | void | ) |
char* nfnl_nft_setelem_flags2str | ( | uint32_t | flags, |
char * | buf, | ||
size_t | len | ||
) |
void nfnl_nft_setelem_get | ( | struct nfnl_nft_setelem * | elem | ) |
struct nfnl_nft_data* nfnl_nft_setelem_get_data | ( | const struct nfnl_nft_setelem * | elem | ) |
References nfnl_nft_setelem::elem_data.
uint32_t nfnl_nft_setelem_get_flags | ( | const struct nfnl_nft_setelem * | elem | ) |
References nfnl_nft_setelem::elem_flags.
struct nfnl_nft_data* nfnl_nft_setelem_get_key | ( | const struct nfnl_nft_setelem * | elem | ) |
References nfnl_nft_setelem::elem_key.
void nfnl_nft_setelem_put | ( | struct nfnl_nft_setelem * | elem | ) |
void nfnl_nft_setelem_set_data | ( | struct nfnl_nft_setelem * | elem, |
struct nfnl_nft_data * | data | ||
) |
References data, and nfnl_nft_setelem::elem_data.
void nfnl_nft_setelem_set_flags | ( | struct nfnl_nft_setelem * | elem, |
uint32_t | flags | ||
) |
References nfnl_nft_setelem::elem_flags, and flags.
void nfnl_nft_setelem_set_key | ( | struct nfnl_nft_setelem * | elem, |
struct nfnl_nft_data * | key | ||
) |
References nfnl_nft_setelem::elem_key.
uint32_t nfnl_nft_setelem_str2flags | ( | const char * | name | ) |
int nfnl_nft_setelem_test_data | ( | const struct nfnl_nft_setelem * | elem | ) |
int nfnl_nft_setelem_test_flags | ( | const struct nfnl_nft_setelem * | elem | ) |
int nfnl_nft_setelem_test_key | ( | const struct nfnl_nft_setelem * | elem | ) |
struct nl_object_ops nft_setelem_obj_ops |
Referenced by nfnl_nft_setelem_alloc().