Add patch from #3950 to make wifidog work with newer kernels
authorFlorian Fainelli <florian@openwrt.org>
Mon, 29 Sep 2008 18:56:21 +0000 (18:56 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 29 Sep 2008 18:56:21 +0000 (18:56 +0000)
SVN-Revision: 12807

net/wifidog/patches/001-proc_net_syntax.patch [new file with mode: 0644]

diff --git a/net/wifidog/patches/001-proc_net_syntax.patch b/net/wifidog/patches/001-proc_net_syntax.patch
new file mode 100644 (file)
index 0000000..fb50736
--- /dev/null
@@ -0,0 +1,11 @@
+--- wifidog-1.1.5/src/firewall.c       2008-08-29 22:44:57.000000000 +0200
++++ wifidog-1.1.5-fixed/src/firewall.c 2008-08-29 22:45:46.000000000 +0200
+@@ -135,7 +135,7 @@
+        /* Find ip, copy mac in reply */
+        reply = NULL;
+-    while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-F0-9:] %*s %*s", ip, mac) == 2)) {
++    while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-Fa-f0-9:] %*s %*s", ip, mac) == 2)) {
+                 if (strcmp(ip, req_ip) == 0) {
+                               reply = safe_strdup(mac);
+                               break;