Re: NDRV sockets and Protocol Match error
Re: NDRV sockets and Protocol Match error
- Subject: Re: NDRV sockets and Protocol Match error
- From: "Duane Murphy" <email@hidden>
- Date: Fri, 5 Dec 2003 10:29:56 -0800
--- At Fri, 5 Dec 2003 09:17:18 -0800, Duane Murphy wrote:
>
We are using PFNDRV raw ethernet sockets in our product. We are running
>
into a case where adding a protocol matching specification is failing
>
with -1 and errno is 17 (EEXIST -- File exists).
>
>
All of the protocol specifications are for SNAP.
>
>
We are using two sockets at the same time on the same physical port with
>
different two different SNAP protocol specifications. The first one works
>
just fine. The second one fails.
This appears to be the problem. If I close the first socket, and open and
register the second socket, everything works fine.
I really dislike odd interactions like this. Sockets are independent
beasts. This shows that protocol matching is somehow shared between sockets.
This seems to unnecessarily complicate matters.
Any suggestions are most welcome.
>
The sockets are seperate, so we arent adding protocol specs to the same
>
socket. If the error is ignored, the socket works fine for sending, the
>
data goes out but nothing is accepted.
>
>
What can cause this error from setsockopt? Are there limits that we need
>
to be aware of?
...Duane
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.