Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 23 November 2024, 06:28:10 am

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14258 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Bug (?) in logs_firewall.cgi
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Bug (?) in logs_firewall.cgi  (Read 9732 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.094 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com