[luci] [PATCH] luci_splash lower mac from arpcache
patrick at lunatiki.de
patrick at lunatiki.de
Mon Jul 20 12:09:38 CEST 2009
Hi
In my /proc/net/arp table are all mac's upper.
Index: applications/luci-splash/root/usr/sbin/luci-splash
=================================================================== ---
applications/luci-splash/root/usr/sbin/luci-splash (Revision 5108) +++
applications/luci-splash/root/usr/sbin/luci-splash (Arbeitskopie) @@
-194,7 +194,7 @@
-- Get current ip address
local ipaddr
for _, entry in ipairs(arp or net.arptable()) do
- if entry["HW address"] == mac then
+ if entry["HW address"]:lower() == mac then
ipaddr = entry["IP address"]
break
end
More information about the luci
mailing list