summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Stewart <pstew@google.com>2016-11-15 09:28:11 -0800
committerPaul Stewart <pstew@google.com>2016-11-15 09:28:11 -0800
commit68446ae9428dd8e851d796ef30dcc07fb5d184a4 (patch)
tree3f63176010e349ee1722a1a133c25191df38dcf9
parent833985690db54f9ad3ee7e8f3147a67da8c04760 (diff)
downloadnfacct-68446ae9428dd8e851d796ef30dcc07fb5d184a4.tar.gz
Update for libnl 3.2.25
NL headers have moved. Private headers are now in their own subdirectory. Additionally the "NL_DBG" macro was never intended for use outside of the libnl library itself. Bug: 32700211 Change-Id: I8291f165d98ce90dbd0212f6a2b6249754cf6173 Test: Compile for angler, connect to WiFi, run "iw link"
-rw-r--r--nfacct.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nfacct.c b/nfacct.c
index 7f520ac..b3dfaad 100644
--- a/nfacct.c
+++ b/nfacct.c
@@ -23,8 +23,10 @@
#include <unistd.h>
#include <time.h>
#include <errno.h>
+#include <endian.h>
-#include <netlink-local.h>
+#include <netlink-private/object-api.h>
+#include <netlink-private/types.h>
#include <linux/netlink.h>
#include <linux/netfilter/nfnetlink.h>
#include <linux/netfilter/nfnetlink_acct.h>
@@ -62,6 +64,8 @@ static int nfacct_cmd_restore(int argc, char *argv[]);
#define nl_socket_free nl_handle_destroy
#endif
+#define NL_DBG(LVL,FMT,ARG...) do { } while(0)
+
static void usage(char *argv[])
{
fprintf(stderr, "Usage: %s command [parameters]...\n", argv[0]);