diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-14 16:43:05 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-17 21:08:40 +0200 |
commit | fc2ede69dcb0cbd2301b76fd89438a2ccb62ccfe (patch) | |
tree | 08b510985229f0b3cea77f1f82e1901656322345 | |
parent | e0f0f01c249ce659947fb8ca592da3c7062b7fa6 (diff) |
set: add NFT_SET_ATTR_FAMILY
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | include/libnftables/set.h | 1 | ||||
-rw-r--r-- | src/internal.h | 1 | ||||
-rw-r--r-- | src/set.c | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/include/libnftables/set.h b/include/libnftables/set.h index bcd4db7..63b30fc 100644 --- a/include/libnftables/set.h +++ b/include/libnftables/set.h @@ -12,6 +12,7 @@ enum { NFT_SET_ATTR_KEY_LEN, NFT_SET_ATTR_DATA_TYPE, NFT_SET_ATTR_DATA_LEN, + NFT_SET_ATTR_FAMILY, }; struct nft_set; diff --git a/src/internal.h b/src/internal.h index 769926b..7c0f8e9 100644 --- a/src/internal.h +++ b/src/internal.h @@ -37,6 +37,7 @@ struct nlattr; struct nft_set { struct list_head head; + uint32_t family; uint32_t set_flags; char *table; char *name; @@ -82,6 +82,7 @@ void nft_set_attr_unset(struct nft_set *s, uint16_t attr) case NFT_SET_ATTR_FLAGS: case NFT_SET_ATTR_KEY_TYPE: case NFT_SET_ATTR_KEY_LEN: + case NFT_SET_ATTR_FAMILY: break; default: return; @@ -115,6 +116,9 @@ void nft_set_attr_set(struct nft_set *s, uint16_t attr, const void *data) case NFT_SET_ATTR_KEY_LEN: s->key_len = *((uint32_t *)data); break; + case NFT_SET_ATTR_FAMILY: + s->family = *((uint32_t *)data); + break; default: return; } |