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

From: David Miller
Date: Tue Jan 05 2010 - 18:51:54 EST


From: "Chris Friesen" <cfriesen@xxxxxxxxxx>
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/