summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--iptables/Makefile.am6
-rw-r--r--iptables/nft-shared.c4
-rw-r--r--iptables/nft-shared.h4
-rw-r--r--iptables/nft.c8
-rw-r--r--iptables/xtables-config-parser.y4
-rw-r--r--iptables/xtables-events.c6
-rw-r--r--iptables/xtables-restore.c2
-rw-r--r--iptables/xtables-save.c2
9 files changed, 20 insertions, 20 deletions
diff --git a/configure.ac b/configure.ac
index cbbf66df..ac7c9c00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,9 +123,9 @@ PKG_CHECK_MODULES([libmnl], [libmnl >= 1.0],
[mnl=1], [mnl=0])
AM_CONDITIONAL([HAVE_LIBMNL], [test "$mnl" = 1])
-PKG_CHECK_MODULES([libnftables], [libnftables >= 1.0],
+PKG_CHECK_MODULES([libnftnl], [libnftnl >= 1.0],
[nftables=1], [nftables=0])
-AM_CONDITIONAL([HAVE_LIBNFTABLES], [test "$nftables" = 1])
+AM_CONDITIONAL([HAVE_LIBNFTNL], [test "$nftables" = 1])
AM_PROG_LEX
AC_PROG_YACC
diff --git a/iptables/Makefile.am b/iptables/Makefile.am
index b9a9743e..2c6a163f 100644
--- a/iptables/Makefile.am
+++ b/iptables/Makefile.am
@@ -1,7 +1,7 @@
# -*- Makefile -*-
AM_CFLAGS = ${regular_CFLAGS}
-AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} ${libmnl_CFLAGS} ${libnftables_CFLAGS}
+AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} ${libmnl_CFLAGS} ${libnftnl_CFLAGS}
AM_YFLAGS = -d
xtables_multi_SOURCES = xtables-multi.c iptables-xml.c
@@ -27,14 +27,14 @@ xtables_multi_LDADD += ../libxtables/libxtables.la -lm
if ENABLE_NFTABLES
if HAVE_LIBMNL
-if HAVE_LIBNFTABLES
+if HAVE_LIBNFTNL
xtables_multi_SOURCES += xtables-config-parser.y xtables-config-syntax.l
xtables_multi_SOURCES += xtables-save.c xtables-restore.c \
xtables-standalone.c xtables.c nft.c \
nft-shared.c nft-ipv4.c nft-ipv6.c nft-arp.c \
xtables-config.c xtables-events.c \
xtables-arp-standalone.c xtables-arp.c
-xtables_multi_LDADD += -lmnl -lnftables ${libmnl_LIBS} ${libnftables_LIBS}
+xtables_multi_LDADD += ${libmnl_LIBS} ${libnftnl_LIBS}
xtables_multi_CFLAGS += -DENABLE_NFTABLES
# yacc and lex generate dirty code
xtables_multi-xtables-config-parser.o xtables_multi-xtables-config-syntax.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-function-declaration -Wno-nested-externs -Wno-undef -Wno-redundant-decls
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 43f03b20..d0e28ba9 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -22,8 +22,8 @@
#include <linux/netfilter/nf_tables.h>
#include <libmnl/libmnl.h>
-#include <libnftables/rule.h>
-#include <libnftables/expr.h>
+#include <libnftnl/rule.h>
+#include <libnftnl/expr.h>
#include "nft-shared.h"
#include "xshared.h"
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index 9df17bc3..1d01ebad 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -3,8 +3,8 @@
#include <stdbool.h>
-#include <libnftables/rule.h>
-#include <libnftables/expr.h>
+#include <libnftnl/rule.h>
+#include <libnftnl/expr.h>
#include "xshared.h"
diff --git a/iptables/nft.c b/iptables/nft.c
index 6f3fdb0b..fc9db998 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -38,10 +38,10 @@
#include <linux/netfilter/nf_tables_compat.h>
#include <libmnl/libmnl.h>
-#include <libnftables/table.h>
-#include <libnftables/chain.h>
-#include <libnftables/rule.h>
-#include <libnftables/expr.h>
+#include <libnftnl/table.h>
+#include <libnftnl/chain.h>
+#include <libnftnl/rule.h>
+#include <libnftnl/expr.h>
#include <netinet/in.h> /* inet_ntoa */
#include <arpa/inet.h>
diff --git a/iptables/xtables-config-parser.y b/iptables/xtables-config-parser.y
index 36dae38d..2770a1b9 100644
--- a/iptables/xtables-config-parser.y
+++ b/iptables/xtables-config-parser.y
@@ -17,8 +17,8 @@
#include <errno.h>
#include <stdarg.h>
#include <libiptc/linux_list.h>
-#include <libnftables/table.h>
-#include <libnftables/chain.h>
+#include <libnftnl/table.h>
+#include <libnftnl/chain.h>
#include <netinet/in.h>
#include <linux/netfilter.h>
diff --git a/iptables/xtables-events.c b/iptables/xtables-events.c
index 408e091f..4be8ab8c 100644
--- a/iptables/xtables-events.c
+++ b/iptables/xtables-events.c
@@ -19,9 +19,9 @@
#include <linux/netfilter/nf_tables.h>
#include <libmnl/libmnl.h>
-#include <libnftables/table.h>
-#include <libnftables/chain.h>
-#include <libnftables/rule.h>
+#include <libnftnl/table.h>
+#include <libnftnl/chain.h>
+#include <libnftnl/rule.h>
#include <include/xtables.h>
#include "iptables.h" /* for xtables_globals */
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index 06053f62..9a80f1ef 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -16,7 +16,7 @@
#include "libiptc/libiptc.h"
#include "xtables-multi.h"
#include "nft.h"
-#include <libnftables/chain.h>
+#include <libnftnl/chain.h>
#ifdef DEBUG
#define DEBUGP(x, args...) fprintf(stderr, x, ## args)
diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c
index 990c0fe6..77eab149 100644
--- a/iptables/xtables-save.c
+++ b/iptables/xtables-save.c
@@ -19,7 +19,7 @@
#include "xtables-multi.h"
#include "nft.h"
-#include <libnftables/chain.h>
+#include <libnftnl/chain.h>
#ifndef NO_SHARED_LIBS
#include <dlfcn.h>