Re: LSP bypass method - pls help

From: Jorge Cercadillo (JorgeCercadillo_at_discussions.microsoft.com)
Date: 01/19/05


Date: Wed, 19 Jan 2005 06:39:06 -0800


> Yeah, thats true.
> What I do now, if I detect there are calls in that socket after WSPSocket, I
> pass it directly to the lower level provider. For that, I keep I list of
> [Socket, pointer to lower level provider] in WSPSocket call, that I use later
> if needed.

This must solve your problem, because the lower provider called is diferent
for each protocol. With your bypass method it doesn't work because always the
same lower provider is called, indepently of which protocol is the socket for.

MS Recomends installing the LSP over all protocols of the same family,
because some aplications call select() with sockets of diferent protocols,
and this will stop working if and LSP is installed over only one of those
protocols



Relevant Pages

  • Re: REMINDER: Re: HEADS UP: network stack and socket hackery over the next few weeks (fwd)
    ... committed an extensive set of socket and netinet changes which will likely render the network stack broken. ... Protocols can now explicitly request that a socket not be freed on last ... consumer reference, using the SS_PROTOREF flag, in order that they can ...
    (freebsd-net)
  • Re: Protocols to exchange messages via a socket
    ... protocols are best suitable: ... socket in case of a decoding error? ... You cannot be sure how many messages were lost on the wire behind any ... assuming TCP the atomicity of writes isn't guaranteed. ...
    (comp.unix.programmer)
  • Re: Example network protocol implementation
    ... I think netgraph subsystem provides this infrastructure for implementing new protocols. ... This would be good if you are implementing an iSCSI ... you call socreate to get a socket. ...
    (freebsd-hackers)
  • Re: Non-blocking method for reading writing objects to sockets
    ... to this discussion, socket stream of non ASCII STREAMS, use two to four bytes preceding the data allowing the received to know the message size and prepare applications to receive the data. ... Some application protocols e.g. XDR do something else. ... There's now so much irrelevance being added such as lectures on threads and further incorrect claims that the orignal incorrect statement is being obscured, ...
    (comp.lang.java.programmer)