Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759362AbZFIK7V (ORCPT ); Tue, 9 Jun 2009 06:59:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757922AbZFIK7E (ORCPT ); Tue, 9 Jun 2009 06:59:04 -0400 Received: from stinky.trash.net ([213.144.137.162]:59816 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755046AbZFIK7E (ORCPT ); Tue, 9 Jun 2009 06:59:04 -0400 Message-ID: <4A2E4077.8080407@trash.net> Date: Tue, 09 Jun 2009 12:59:03 +0200 From: Patrick McHardy User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: David Miller CC: gil.beniamini@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: SOCK_RAW does not receive broadcast (with VLAN unless PROMISC) References: <91ac27070906081105x30171bedra10d244d382a6934@mail.gmail.com> <20090608.143454.161329513.davem@davemloft.net> In-Reply-To: <20090608.143454.161329513.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 24 David Miller wrote: > From: Gil Beniamini > Date: Mon, 8 Jun 2009 21:05:25 +0300 > >> My application is using PF_PACKET and SOCK_RAW in order to receive all >> Ethernet packets for the machine-unicast MAC plus all broadcast >> packets (like ARP broadcast). > >> That worked OK with kernel 2.6.20 (Ubuntu 7.04 with or without VLAN). >> >> Now with kernel 2.6.28 (Ubuntu 9.04) it works OK only without-VLAN, >> but with VLAN the application receive only packets for the >> machine-unicast MAC, but no broadcast (like ARP broadcast) packets, >> only if I set the socket to PROMISC mode, I start receive also >> broadcast packets. Which driver are you using? Are you sniffing on the VLAN device or on the underlying device? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/