[luci] [PATCH] luci_splash lower mac from arpcache

Patrick Grimm patrick at lunatiki.de
Sat Jul 25 01:46:35 CEST 2009


Hi list

Is there a other patch for this problem?
Here are my Problem.
---
luci-splash lease 00:21:e9:xx:xx:5a
Adding 00:21:e9:xx:xx:5a to leases
Found no active IP for 00:21:e9:xx:xx:5a, lease not added
luci-splash lease 00:21:E9:XX:XX:5A
Adding 00:21:e9:xx:xx:5a to leases
Found no active IP for 00:21:e9:xx:xx:5a, lease not added
arp -n
IP address       HW type     Flags       HW address            Mask     Device
104.8.2.18       0x1         0x2         00:21:E9:XX:XX:5A     *        wl0
---

The attached patch fix that problem.

Greetings
                       Patrick


Am Montag, 20. Juli 2009 12:09:38 schrieb patrick at lunatiki.de:
> 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
>
>
>
>
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci



More information about the luci mailing list