| 1 | #ifndef _LIBNFTNL_SET_ELEM_INTERNAL_H_ |
| 2 | #define _LIBNFTNL_SET_ELEM_INTERNAL_H_ |
| 3 | |
| 4 | #include <data_reg.h> |
| 5 | |
| 6 | struct nftnl_set_elem { |
| 7 | struct list_head head; |
| 8 | uint32_t set_elem_flags; |
| 9 | uint32_t flags; |
| 10 | union nftnl_data_reg key; |
| 11 | union nftnl_data_reg key_end; |
| 12 | union nftnl_data_reg data; |
| 13 | struct list_head expr_list; |
| 14 | uint64_t timeout; |
| 15 | uint64_t expiration; |
| 16 | const char *objref; |
| 17 | struct { |
| 18 | void *data; |
| 19 | uint32_t len; |
| 20 | } user; |
| 21 | }; |
| 22 | |
| 23 | int nftnl_set_elem_snprintf_default(char *buf, size_t size, |
| 24 | const struct nftnl_set_elem *e); |
| 25 | |
| 26 | #endif |