From: Benny Amorsen Subject: Re: IGMP sent to Foreign VLAN Date: Sat, 11 Oct 2008 00:45:36 +0200 Message-ID: References: <1223322707.24688.46.camel@deepthought.nh.local> <20081007.160702.189194318.davem@davemloft.net> <48EBF677.1060602@trash.net> <1223508896.24688.95.camel@deepthought.nh.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Patrick McHardy , David Miller , "netdev\@vger.kernel.org" To: Jarod Neuner Return-path: Received: from gate1.ipvision.dk ([217.195.186.3]:41610 "EHLO gate1.ipvision.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111AbYJJWpr (ORCPT ); Fri, 10 Oct 2008 18:45:47 -0400 In-Reply-To: <1223508896.24688.95.camel@deepthought.nh.local> (Jarod Neuner's message of "Wed\, 8 Oct 2008 18\:34\:56 -0500") Sender: netdev-owner@vger.kernel.org List-ID: Jarod Neuner writes: > My original thought was to do something like this in net/core/dev.c > using a method similar to handle_bridge or handle_macvlen. So, if the > packet doesn't get handled by the ptype_base list and IFF_ALLVLAN is > set, then strip the header and let the packet through. The sticky point > would be whether or not this policy should be enabled by default, as it > seems to be in other network stacks. So if I tcpdump on the base device, IFF_ALLVLAN gets set and packets from unknown VLAN's suddenly lose their VLAN headers? That's a security problem. /Benny