* Wrong MAC with vlans in LOG
@ 2007-08-06 11:53 Krzysztof Oledzki
2007-08-06 12:31 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Oledzki @ 2007-08-06 11:53 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 478 bytes --]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Wrong MAC with vlans in LOG
2007-08-06 11:53 Wrong MAC with vlans in LOG Krzysztof Oledzki
@ 2007-08-06 12:31 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2007-08-06 12:31 UTC (permalink / raw)
To: Krzysztof Oledzki; +Cc: netfilter-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-06 12:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 11:53 Wrong MAC with vlans in LOG Krzysztof Oledzki
2007-08-06 12:31 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.