Add patch from #3950 to make wifidog work with newer kernels
[openwrt/svn-archive/archive.git] / net / wifidog / patches / 001-proc_net_syntax.patch
1 --- wifidog-1.1.5/src/firewall.c 2008-08-29 22:44:57.000000000 +0200
2 +++ wifidog-1.1.5-fixed/src/firewall.c 2008-08-29 22:45:46.000000000 +0200
3 @@ -135,7 +135,7 @@
4
5 /* Find ip, copy mac in reply */
6 reply = NULL;
7 - while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-F0-9:] %*s %*s", ip, mac) == 2)) {
8 + while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-Fa-f0-9:] %*s %*s", ip, mac) == 2)) {
9 if (strcmp(ip, req_ip) == 0) {
10 reply = safe_strdup(mac);
11 break;