Messages in this thread | | | Date | Tue, 05 Jan 2010 15:51:50 -0800 (PST) | Subject | Re: [PATCH] net: packet: option to only pass skb protocol | From | David Miller <> |
| |
From: "Chris Friesen" <cfriesen@nortel.com> 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.
| |