diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-04 22:21:29 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-04 22:21:29 +0000 |
commit | 6498bee6a2cc8ff74111db29a24dddaf8924b1c6 (patch) | |
tree | 759eae7385376647398cf6752d131d09d7833fd9 | |
parent | 99b31e340352a3f775404591e8c899ed4a4af409 (diff) | |
download | mandi-6498bee6a2cc8ff74111db29a24dddaf8924b1c6.tar mandi-6498bee6a2cc8ff74111db29a24dddaf8924b1c6.tar.gz mandi-6498bee6a2cc8ff74111db29a24dddaf8924b1c6.tar.bz2 mandi-6498bee6a2cc8ff74111db29a24dddaf8924b1c6.tar.xz mandi-6498bee6a2cc8ff74111db29a24dddaf8924b1c6.zip |
adapt to new IFW kernel module (from Luiz Fernando N. Capitulino)
-rw-r--r-- | src/plugins/ifw/libnl_ifw.c | 2 | ||||
-rw-r--r-- | src/plugins/ifw/libnl_ifw.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 <linux/if.h> #include <linux/netlink.h> -#define NETLINK_IFWLOG 19 +#define NETLINK_IFWLOG 20 #define PREFSIZ 32 |