EFW Support

Support => General Support => Topic started by: BOK on Wednesday 15 July 2009, 05:43:56 am



Title: Bug (?) in logs_firewall.cgi
Post by: BOK on Wednesday 15 July 2009, 05:43:56 am
[First post]
To show the right MAC-address in logs_firewall.cgi I've altered it this way around ("shifted 6 to the left"):

# diff logs_firewall.bak logs_firewall.cgi
314c314
<     $macaddr = "$mactemp[6]:$mactemp[7]:$mactemp[8]:$mactemp[9]:$mactemp[10]:$mactemp[11]";
---
>     $macaddr = "$mactemp[0]:$mactemp[1]:$mactemp[2]:$mactemp[3]:$mactemp[4]:$mactemp[5]";


The original showed only a generic ff:ff:xx:yy address in the webGUI, Now it show the right MAC-address from interface / bidge br0.


Title: Re: Bug (?) in logs_firewall.cgi
Post by: mrkroket on Wednesday 15 July 2009, 07:57:10 am
It's true, I think I did the same change:

#    $macaddr = "$mactemp[6]:$mactemp[7]:$mactemp[8]:$mactemp[9]:$mactemp[10]:$mactemp[11]";
    $macaddr = "$mactemp[0]:$mactemp[1]:$mactemp[2]:$mactemp[3]:$mactemp[4]:$mactemp[5]";

Long time ago.