Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: iptables: Devel

Wrong MAC with vlans in LOG

 

 

iptables devel RSS feed   Index | Next | Previous | View Threaded


ole at ans

Aug 6, 2007, 4:53 AM

Post #1 of 2 (869 views)
Permalink
Wrong MAC with vlans in LOG

Hello,

Just discovered that -j LOG produces wrong MAC=(...) with non
hardware-accelerated vlans:

IN=vlan6 OUT= MAC=00:0e:0c:a1:ba:ce:00:01:42:2f:3a:60:08:00 SRC=38.102.233.175 DST=XXX.XXX.XXX.XXX LEN=225 TOS=0x00 PREC=0x00 TTL=46 ID=0 DF PROTO=UDP SPT=4679 DPT=23020 LEN=205

Please notice that mac address is two bytes longer than it should be and
the additional 08:00 is an ethertype value: 0x0800 - IPv4.

Any ideas?

Best regards,


Krzysztof Olędzki


kaber at trash

Aug 6, 2007, 5:31 AM

Post #2 of 2 (811 views)
Permalink
Re: Wrong MAC with vlans in LOG [In reply to]

Krzysztof Oledzki wrote:
> Hello,
>
> Just discovered that -j LOG produces wrong MAC=(...) with non
> hardware-accelerated vlans:
>
> IN=vlan6 OUT= MAC=00:0e:0c:a1:ba:ce:00:01:42:2f:3a:60:08:00
> SRC=38.102.233.175 DST=XXX.XXX.XXX.XXX LEN=225 TOS=0x00 PREC=0x00 TTL=46
> ID=0 DF PROTO=UDP SPT=4679 DPT=23020 LEN=205
>
> Please notice that mac address is two bytes longer than it should be and
> the additional 08:00 is an ethertype value: 0x0800 - IPv4.
>
> Any ideas?


That also happends for normal ethernet packets. We decided that its
not worth potentially breaking parsers to fix this, ipt_LOG is not
very well suited for anything but debugging anyway.

iptables devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.