[ofw] [ND 3/7] ND:listen APIs

Fab Tillier ftillier at windows.microsoft.com
Mon Apr 6 10:57:28 PDT 2009


> STDMETHODIMP CNDListen::
> Init(SIZE_T Backlog, INT Protocol, USHORT *pPort)
> {
>         WV_CONNECT_ATTRIBUTES attr;
>         WV_SOCKADDR addr;
>         HRESULT hr;
>
>         if (Protocol != 6) {
>                 return ND_NOT_SUPPORTED;

This check probably belongs in the underlying WV Provider, and for IB it should just put the protocol into the SID as defined in the IP Annex (one byte for protocol) after doing appropriate boundary checks.

MSMPI doesn't use protocol 6, and there are other potential users of ND that may not either.

Is WinVerbs restricted to the TCP protocol only?  I was going to code up a patch but I don't see how protocol is specified when creating an endpoint.

-Fab



More information about the ofw mailing list