Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755121Ab0AEXvr (ORCPT ); Tue, 5 Jan 2010 18:51:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754980Ab0AEXvq (ORCPT ); Tue, 5 Jan 2010 18:51:46 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:56155 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754204Ab0AEXvq (ORCPT ); Tue, 5 Jan 2010 18:51:46 -0500 Date: Tue, 05 Jan 2010 15:51:50 -0800 (PST) Message-Id: <20100105.155150.232916389.davem@davemloft.net> To: cfriesen@nortel.com Cc: mst@redhat.com, eric.dumazet@gmail.com, nhorman@tuxdriver.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: packet: option to only pass skb protocol From: David Miller In-Reply-To: <4B43B989.4010004@nortel.com> References: <4B43AEF6.6050701@nortel.com> <20100105.134218.258781374.davem@davemloft.net> <4B43B989.4010004@nortel.com> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 646 Lines: 18 From: "Chris Friesen" Date: Tue, 05 Jan 2010 16:13:29 -0600 > If SOCK_RAW packets are being sent, the protocol number is embedded in > the packet data Where exactly is that protocol value? Not every link level protocol is ethernet. We support FDDI, HIPPI, wireless, VLAN, PPP, and a host of others. So you can't know for sure unless you assume ethernet, which you can't do. -- 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/