Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753411Ab0ADNwW (ORCPT ); Mon, 4 Jan 2010 08:52:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753026Ab0ADNwV (ORCPT ); Mon, 4 Jan 2010 08:52:21 -0500 Received: from stinky.trash.net ([213.144.137.162]:34412 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738Ab0ADNwU (ORCPT ); Mon, 4 Jan 2010 08:52:20 -0500 Message-ID: <4B41F292.8080908@trash.net> Date: Mon, 04 Jan 2010 14:52:18 +0100 From: Patrick McHardy User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: Milan Dadok CC: uaca@alumni.uv.es, johann.baudy@gnu-log.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] 1/1 net: packet: Keep 802.1Q VLAN tag in packet on SOCK_DGRAM socket - resend References: <001801ca8d1d$90c68de0$b253a9a0$@name> In-Reply-To: <001801ca8d1d$90c68de0$b253a9a0$@name> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 22 [please don't remove the mailing list from CC] Milan Dadok wrote: > Keep 802.1Q VLAN tag on non HW vlan accelerated network card received to SOCK_DGRAM socket. Quoting from Documentation/networking/packet_mmap.txt: fd= socket(PF_PACKET, mode, htons(ETH_P_ALL)) where mode is SOCK_RAW for the raw interface were link level information can be captured or SOCK_DGRAM for the cooked interface where link level information capture is not supported and a link level pseudo-header is provided by the kernel. So not including the link layer header for SOCK_DGRAM sockets seems to be the intended behaviour. -- 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/