diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-07 18:57:50 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-07 20:01:06 +0200 |
commit | 44d11498479a08f46a64431d60ed19d4aba94dad (patch) | |
tree | dadacc81e466ae82d285945de6a8e1a5078db327 /examples/nft-set-add.c | |
parent | 0e7b6c4983af4ddd3a50c3ce756638af157c7130 (diff) |
src: get rid of _attr_ infix in new nftnl_ definitions
The function names are already large, trim off the _ATTR_ infix in the
attribute definitions.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-set-add.c')
-rw-r--r-- | examples/nft-set-add.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/nft-set-add.c b/examples/nft-set-add.c index a29115c..e040aca 100644 --- a/examples/nft-set-add.c +++ b/examples/nft-set-add.c @@ -39,12 +39,12 @@ static struct nftnl_set *setup_set(uint8_t family, const char *table, exit(EXIT_FAILURE); } - nftnl_set_attr_set_str(s, NFTNL_SET_TABLE, table); - nftnl_set_attr_set_str(s, NFTNL_SET_NAME, name); - nftnl_set_attr_set_u32(s, NFTNL_SET_FAMILY, family); - nftnl_set_attr_set_u32(s, NFTNL_SET_KEY_LEN, 2); - nftnl_set_attr_set_u32(s, NFTNL_SET_ID, 1); - nftnl_set_attr_set_u32(s, NFTNL_SET_FLAGS, NFT_SET_CONSTANT); + nftnl_set_set_str(s, NFTNL_SET_TABLE, table); + nftnl_set_set_str(s, NFTNL_SET_NAME, name); + nftnl_set_set_u32(s, NFTNL_SET_FAMILY, family); + nftnl_set_set_u32(s, NFTNL_SET_KEY_LEN, 2); + nftnl_set_set_u32(s, NFTNL_SET_ID, 1); + nftnl_set_set_u32(s, NFTNL_SET_FLAGS, NFT_SET_CONSTANT); return s; } |