Welcome, Guest. Please login or register.
Did you miss your activation email?
Thursday 02 May 2024, 10:52:57 pm

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14247 Posts in 4376 Topics by 6493 Members
Latest Member: thiagodod
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Bug (?) in logs_firewall.cgi
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Bug (?) in logs_firewall.cgi  (Read 6460 times)
BOK
Jr. Member
*
Offline Offline

Posts: 2



« 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.
Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #1 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.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.063 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com