diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:04:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:04:34 +0000 |
commit | 371c8a8bca2b6862226bc79c13d143e07c1d8fc3 (patch) | |
tree | 06c7dc8826596690422e79d5bde2f46c90492de3 /include/set_elem.h | |
parent | Initial commit. (diff) | |
download | libnftnl-371c8a8bca2b6862226bc79c13d143e07c1d8fc3.tar.xz libnftnl-371c8a8bca2b6862226bc79c13d143e07c1d8fc3.zip |
Adding upstream version 1.2.6.upstream/1.2.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/set_elem.h')
-rw-r--r-- | include/set_elem.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/set_elem.h b/include/set_elem.h new file mode 100644 index 0000000..7628005 --- /dev/null +++ b/include/set_elem.h @@ -0,0 +1,26 @@ +#ifndef _LIBNFTNL_SET_ELEM_INTERNAL_H_ +#define _LIBNFTNL_SET_ELEM_INTERNAL_H_ + +#include <data_reg.h> + +struct nftnl_set_elem { + struct list_head head; + uint32_t set_elem_flags; + uint32_t flags; + union nftnl_data_reg key; + union nftnl_data_reg key_end; + union nftnl_data_reg data; + struct list_head expr_list; + uint64_t timeout; + uint64_t expiration; + const char *objref; + struct { + void *data; + uint32_t len; + } user; +}; + +int nftnl_set_elem_snprintf_default(char *buf, size_t size, + const struct nftnl_set_elem *e); + +#endif |