On 12/05/10 04:57 PM, Garrett D'Amore wrote:
On 05/12/10 04:51 PM, Jason King wrote:
On Wed, May 12, 2010 at 6:46 PM, Darren Reed<[email protected]>
wrote:
Looking through the networking code, it is hard to tell if
Open/Solaris supports doing an explicit bind to a SAP that
refers directly to either 802.2 or 802.3. Am I missing
something?
If it is true that we don't and we were to support that,
what values would be appropriate?
The reasoning behind these questions is that I'm trying to
make sense of what it would mean to create a socket like
this on Open/Solaris:
fd = socket(PF_PACKET, SOCK_RAW, ETH_P_802_2);
or
fd = socket(PF_PACKET, SOCK_RAW, ETH_P_802_3);
Of course it may be that it just doesn't make sense on
Open/Solaris but I'm curious to know what others thing.
I don't believe it does -- the best you can do is bind to SAP 0, then
push the pfil module configured to pass the desired packets through.
There used to be an llc2 module that would help with this... I'm not
sure these days though. You should check llc2 to see if it will work
with modern drivers.
llc2 still exists (in the closed part of the source code tree.)
I suppose I could equate ETH_P_802_2 with 802.2 SNAP?
Darren
_______________________________________________
networking-discuss mailing list
[email protected]