summaryrefslogtreecommitdiffstats
path: root/examples/nft-set-parse-add.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-07 18:57:50 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-07 20:01:06 +0200
commit44d11498479a08f46a64431d60ed19d4aba94dad (patch)
treedadacc81e466ae82d285945de6a8e1a5078db327 /examples/nft-set-parse-add.c
parent0e7b6c4983af4ddd3a50c3ce756638af157c7130 (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-parse-add.c')
-rw-r--r--examples/nft-set-parse-add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nft-set-parse-add.c b/examples/nft-set-parse-add.c
index b3fffc5..3648730 100644
--- a/examples/nft-set-parse-add.c
+++ b/examples/nft-set-parse-add.c
@@ -68,7 +68,7 @@ static struct nftnl_set *set_parse_file(const char *file, uint16_t format)
nftnl_parse_err_free(err);
- nftnl_set_attr_set_u32(s, NFTNL_SET_ID, 1);
+ nftnl_set_set_u32(s, NFTNL_SET_ID, 1);
return s;
}
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
mnl_nlmsg_batch_next(batch);
}
- family = nftnl_set_attr_get_u32(s, NFTNL_SET_FAMILY);
+ family = nftnl_set_get_u32(s, NFTNL_SET_FAMILY);
set_seq = seq;
nlh = nftnl_set_nlmsg_build_hdr(mnl_nlmsg_batch_current(batch),