| 1 |
#ifndef _LIBNFTNL_SET_INTERNAL_H_ |
| 2 |
#define _LIBNFTNL_SET_INTERNAL_H_ |
| 3 |
|
| 4 |
#include <linux/netfilter/nf_tables.h> |
| 5 |
|
| 6 |
struct nftnl_set { |
| 7 |
struct list_head head; |
| 8 |
struct hlist_node hnode; |
| 9 |
|
| 10 |
uint32_t family; |
| 11 |
uint32_t set_flags; |
| 12 |
const char *table; |
| 13 |
const char *name; |
| 14 |
const char *type; |
| 15 |
uint64_t handle; |
| 16 |
uint32_t key_type; |
| 17 |
uint32_t key_len; |
| 18 |
uint32_t data_type; |
| 19 |
uint32_t data_len; |
| 20 |
uint32_t obj_type; |
| 21 |
struct { |
| 22 |
void *data; |
| 23 |
uint32_t len; |
| 24 |
} user; |
| 25 |
uint32_t id; |
| 26 |
enum nft_set_policies policy; |
| 27 |
struct { |
| 28 |
uint32_t size; |
| 29 |
uint8_t field_len[NFT_REG32_COUNT]; |
| 30 |
uint8_t field_count; |
| 31 |
} desc; |
| 32 |
struct list_head element_list; |
| 33 |
|
| 34 |
uint32_t flags; |
| 35 |
uint32_t elemcount; |
| 36 |
uint32_t gc_interval; |
| 37 |
uint64_t timeout; |
| 38 |
struct list_head expr_list; |
| 39 |
}; |
| 40 |
|
| 41 |
struct nftnl_set_list; |
| 42 |
struct nftnl_expr; |
| 43 |
int nftnl_set_lookup_id(struct nftnl_expr *e, struct nftnl_set_list *set_list, |
| 44 |
uint32_t *set_id); |
| 45 |
|
| 46 |
#endif |