summaryrefslogtreecommitdiffstats
path: root/examples/nft-chain-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-chain-add.c')
-rw-r--r--examples/nft-chain-add.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/nft-chain-add.c b/examples/nft-chain-add.c
index 173af18..3afc06e 100644
--- a/examples/nft-chain-add.c
+++ b/examples/nft-chain-add.c
@@ -48,11 +48,11 @@ static struct nftnl_chain *chain_add_parse(int argc, char *argv[])
perror("OOM");
return NULL;
}
- nftnl_chain_attr_set(t, NFTNL_CHAIN_TABLE, argv[2]);
- nftnl_chain_attr_set(t, NFTNL_CHAIN_NAME, argv[3]);
+ nftnl_chain_set(t, NFTNL_CHAIN_TABLE, argv[2]);
+ nftnl_chain_set(t, NFTNL_CHAIN_NAME, argv[3]);
if (argc == 6) {
- nftnl_chain_attr_set_u32(t, NFTNL_CHAIN_HOOKNUM, hooknum);
- nftnl_chain_attr_set_u32(t, NFTNL_CHAIN_PRIO, atoi(argv[5]));
+ nftnl_chain_set_u32(t, NFTNL_CHAIN_HOOKNUM, hooknum);
+ nftnl_chain_set_u32(t, NFTNL_CHAIN_PRIO, atoi(argv[5]));
}
return t;