Mailing List Archive

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
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.