From 2fad0c845c6dee51d8756a4f558783d8a2344784 Mon Sep 17 00:00:00 2001 From: Ana Rey Date: Tue, 19 Nov 2013 13:01:56 +0100 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/libnftables/table.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libnftables/table.h') 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); -- cgit v1.2.3