Is it possible to block request and inject response at STREAM layer? RRS feed

  • Question

  • I want to do something similar to that discussed in thread <Block send and inject recv at datagram layer> but at STREAM layer.

    I've tried it out but didn't get expected result.

    In my classifyFn() at STREAM layer, I blocked the original request and injected new created response with FwpsStreamInjectAsync0(..., FWPS_STREAM_FLAG_RECEIVE, ...). Everything's fine and no errors returned except that my client application got stuck without getting any response.

    If I allow the request, I can get my injected response prepeneded in front of the real response.

    Is it possible to do this at STREAM layer or any other layers?

    Tuesday, January 3, 2012 2:43 AM

All replies

  • If you are blocking the request, then the client isn't going to receive anything.  You have essentially made your callout the "client" in this scenario, by having it inject the response.


    Please clarify if my interpretation is incorrect.


    Hope this helps,


    Dusty Harper [MSFT]
    Microsoft Corporation
    This posting is provided "AS IS", with NO warranties and confers NO rights
    Tuesday, January 3, 2012 6:41 PM