summaryrefslogtreecommitdiffstats
path: root/src/mnl.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-20 13:38:40 +0000
committerPatrick McHardy <kaber@trash.net>2014-01-20 13:38:40 +0000
commita085d80754af0be8e650724329187aa69e23630d (patch)
tree16775e6b7e402f89be5a1849f9dbae1c9f39153a /src/mnl.c
parent807b936bb3d9bb2c924c742a0548337089494968 (diff)
parent6d0a165e402e6477203111ca9c7ce49f0a3fd758 (diff)
Merge remote-tracking branch 'origin/master' into next-3.14
Diffstat (limited to 'src/mnl.c')
-rw-r--r--src/mnl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mnl.c b/src/mnl.c
index 16625000..b8679022 100644
--- a/src/mnl.c
+++ b/src/mnl.c
@@ -9,11 +9,11 @@
*/
#include <libmnl/libmnl.h>
-#include <libnftables/table.h>
-#include <libnftables/chain.h>
-#include <libnftables/rule.h>
-#include <libnftables/expr.h>
-#include <libnftables/set.h>
+#include <libnftnl/table.h>
+#include <libnftnl/chain.h>
+#include <libnftnl/rule.h>
+#include <libnftnl/expr.h>
+#include <libnftnl/set.h>
#include <linux/netfilter/nfnetlink.h>
#include <linux/netfilter/nf_tables.h>
@@ -394,7 +394,7 @@ int mnl_nft_chain_add(struct mnl_socket *nf_sock, struct nft_chain *nlc,
nlh = nft_chain_nlmsg_build_hdr(buf, NFT_MSG_NEWCHAIN,
nft_chain_attr_get_u32(nlc, NFT_CHAIN_ATTR_FAMILY),
- NLM_F_ACK|flags, seq);
+ NLM_F_CREATE|NLM_F_ACK|flags, seq);
nft_chain_nlmsg_build_payload(nlh, nlc);
return mnl_talk(nf_sock, nlh, nlh->nlmsg_len, NULL, NULL);