From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: Wrong MAC with vlans in LOG Date: Mon, 06 Aug 2007 14:31:48 +0200 Message-ID: <46B714B4.3040802@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org To: Krzysztof Oledzki Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org 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.