diff options
author | Ana Rey <anarey@gmail.com> | 2013-11-19 13:01:56 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-20 23:55:02 +0100 |
commit | 2fad0c845c6dee51d8756a4f558783d8a2344784 (patch) | |
tree | 11c9c5cd16440a52c56817dc259b16e95653ab4d /include/libnftables/table.h | |
parent | 8fc4d4bd2cec463e296c9efd9a2d3bb99d6b3d0b (diff) |
table/chain: add u8 setter and getter for family values
These are needed to set the family value for chain and table.
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/table.h')
-rw-r--r-- | include/libnftables/table.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libnftables/table.h b/include/libnftables/table.h index 4902a1d..9228cec 100644 --- a/include/libnftables/table.h +++ b/include/libnftables/table.h @@ -28,8 +28,10 @@ void nft_table_attr_unset(struct nft_table *t, uint16_t attr); void nft_table_attr_set(struct nft_table *t, uint16_t attr, const void *data); const void *nft_table_attr_get(struct nft_table *t, uint16_t attr); +void nft_table_attr_set_u8(struct nft_table *t, uint16_t attr, uint8_t data); void nft_table_attr_set_u32(struct nft_table *t, uint16_t attr, uint32_t data); void nft_table_attr_set_str(struct nft_table *t, uint16_t attr, const char *str); +uint8_t nft_table_attr_get_u8(struct nft_table *t, uint16_t attr); uint32_t nft_table_attr_get_u32(struct nft_table *t, uint16_t attr); const char *nft_table_attr_get_str(struct nft_table *t, uint16_t attr); |