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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nft-chain-add.c b/examples/nft-chain-add.c
index 3afc06e..ca1edf9 100644
--- a/examples/nft-chain-add.c
+++ b/examples/nft-chain-add.c
@@ -110,7 +110,7 @@ int main(int argc, char *argv[])
chain_seq = seq;
nlh = nftnl_chain_nlmsg_build_hdr(mnl_nlmsg_batch_current(batch),
NFT_MSG_NEWCHAIN, family,
- NLM_F_ACK, seq++);
+ NLM_F_CREATE|NLM_F_ACK, seq++);
nftnl_chain_nlmsg_build_payload(nlh, t);
nftnl_chain_free(t);
mnl_nlmsg_batch_next(batch);