Ticket #488 (closed Bug report: fixed)

Opened 14 years ago

Last modified 12 years ago

function arp_get() in firewall.c cannot parse lowercase mac's from /proc/net/arp

Reported by: anonymous Owned by:
Priority: high Milestone: Gateway 1.1.5
Component: Gateway Version: Gateway 20090925
Keywords: Cc:

Change History

Changed 14 years ago by anonymous

while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-Fa-f0-9:] %*s %*s", ip, mac) == 2)) {

Change the original line to that and it solves the problem.

Changed 14 years ago by wichert

  • status changed from new to closed
  • resolution set to wontfix

This is a duplicate of #493. I can not find any kernel which lowercases MAC addresses, and I find it very hard to believe that any Linux kernel would change its ABI like that. I checked several ia32 2.6 kernels and an OpenWRT 2.4.30 kernel, all of which have uppercase entries.

Unless you can point us to a kernel that shows this behaviour I'm marking this as wontfix.

Changed 14 years ago by anonymous

  • status changed from closed to reopened
  • resolution wontfix deleted

Please, before you mark it as wontfix, ask in the wifidog mailing list if anyone can point to the source of the problem commented here. If I don't apply this patch, wifidog won't work in openwrt with kernel Maybe is not the kernel, maybe yes. But the truth is we need the patch. Besides it will prevent futures problems of this kind :)

Changed 14 years ago by anonymous

Changed 14 years ago by femmgeek@…

Hello all,

I found a kernel that has lowercase mac addresses in it.... Mac OS X!!! I've been pulling out my hair for 3 hours trying to figure this one out. My authentication fails with the output of mac 00:17 that should be 00:17:f2...

Changed 13 years ago by benoitg

  • status changed from reopened to closed
  • resolution set to fixed

Actually, this was also broken in Ubuntu Intrepid. Fixed in [1389]

Changed 12 years ago by jodoreps

  • version set to Gateway 20090925
  • description modified (diff)
Note: See TracTickets for help on using tickets.