diff options
author | Paul Stewart <pstew@google.com> | 2016-11-15 09:28:11 -0800 |
---|---|---|
committer | Paul Stewart <pstew@google.com> | 2016-11-15 09:28:11 -0800 |
commit | 68446ae9428dd8e851d796ef30dcc07fb5d184a4 (patch) | |
tree | 3f63176010e349ee1722a1a133c25191df38dcf9 | |
parent | 833985690db54f9ad3ee7e8f3147a67da8c04760 (diff) | |
download | nfacct-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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]); |