Re: [PATCH] net: packet: option to only pass skb protocol

From: Chris Friesen
Date: Tue Jan 05 2010 - 16:32:45 EST


On 01/05/2010 12:57 PM, Michael S. Tsirkin wrote:
> When sending packets with a packet socket it is often necessary to set
> protocol in msg_name: otherwise the protocol field in the skb will not
> be set correctly.

What about automatically detecting the protocol from the data being sent
to avoid the necessity of specifying it in the first place?

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/