[FS#655] ramips: mac address parsing

LEDE Bugs lede-bugs at lists.infradead.org
Mon Apr 17 11:55:29 PDT 2017


The following task has a new comment added:

FS#655 - ramips: mac address parsing
User who did this - psyborg55 (psyborg55)

----------
and what magic do you think you will find in ifconfig output? my real mac address?

do you think i would open this for no reason?

root at LEDE:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 66:09:80:12:23:45  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:636633 errors:0 dropped:0 overruns:0 frame:0
          TX packets:298119 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:593270599 (565.7 MiB)  TX bytes:578614762 (551.8 MiB)

eth0      Link encap:Ethernet  HWaddr 64:09:80:12:23:45  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:218 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:320 (320.0 B)  TX bytes:71328 (69.6 KiB)
          Interrupt:5 

eth0.1    Link encap:Ethernet  HWaddr 66:09:80:12:23:45  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:230 (230.0 B)  TX bytes:6705 (6.5 KiB)

eth0.2    Link encap:Ethernet  HWaddr 64:09:80:12:23:45  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:62586 (61.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:226 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:14842 (14.4 KiB)  TX bytes:14842 (14.4 KiB)

wlan1     Link encap:Ethernet  HWaddr 64:09:80:12:23:46  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:634953 errors:0 dropped:0 overruns:0 frame:0
          TX packets:632818 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:601998789 (574.1 MiB)  TX bytes:608851641 (580.6 MiB)


difference between spoofed macs suffix coressponds the difference between real mac output, in case you are worried i didn't do that well.

also take a look at RT6352_EeBuffer[EEPROM_SIZE] offset 2E in https://github.com/wuqiong/rt2860v2-for-openwrt-mt7620/blob/master/rt2860v2/chips/rt6352.c

does that 00:0C:43 looks like a valid prefix?!?
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=655#comment2429



More information about the lede-bugs mailing list