From 6498bee6a2cc8ff74111db29a24dddaf8924b1c6 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 4 Mar 2008 22:21:29 +0000 Subject: adapt to new IFW kernel module (from Luiz Fernando N. Capitulino) --- src/plugins/ifw/libnl_ifw.c | 2 +- src/plugins/ifw/libnl_ifw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/ifw/libnl_ifw.c b/src/plugins/ifw/libnl_ifw.c index bb41363..9a97bea 100644 --- a/src/plugins/ifw/libnl_ifw.c +++ b/src/plugins/ifw/libnl_ifw.c @@ -20,7 +20,7 @@ int nl_ifw_bind_socket(int s) { memset(&saddr_nl, 0, sizeof(struct sockaddr_nl)); saddr_nl.nl_family = AF_NETLINK; saddr_nl.nl_pid = getpid(); - saddr_nl.nl_groups = 10; + saddr_nl.nl_groups = 1; res = bind(s, (struct sockaddr *)&saddr_nl, sizeof(saddr_nl)); if (res == -1) { diff --git a/src/plugins/ifw/libnl_ifw.h b/src/plugins/ifw/libnl_ifw.h index 896d05c..c58ebbc 100644 --- a/src/plugins/ifw/libnl_ifw.h +++ b/src/plugins/ifw/libnl_ifw.h @@ -12,7 +12,7 @@ #include #include -#define NETLINK_IFWLOG 19 +#define NETLINK_IFWLOG 20 #define PREFSIZ 32 -- cgit v1.2.1