locked
How to get TCP head Or Other protocol header RRS feed

  • Question

  • In FWPM_LAYER_STREAM_V4 layer in  classifyFn function

    can i get TCP head Or Other  protocol header?

    If this layer can not get the protocol head,  please tell me how to get!

    If there is a better reference source!

    thank you!
    • Moved by Rob Pan Wednesday, July 27, 2011 6:10 AM (发件人:Visual C++)
    • Moved by Sheng Jiang 蒋晟 Wednesday, July 27, 2011 11:46 PM (From:一般性问题讨论区)
    Monday, July 25, 2011 3:05 PM

Answers

  • The transport header (TCP) is not available at STREAM.  You can get this easily from FWPM_LAYER_STREAM_PACKET_{4 / 6}, FWPM_LAYER_{INBOUND / OUTBOUND}_TRANSPORT_{4 / 6}, or with a little more work from FWPM_LAYER_{INBOUND / OUTBOUND}_IPPACKET_{4 / 6}.

     

    Hope this helps,

     


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Thursday, July 28, 2011 8:07 PM
    Moderator

All replies

  • Hi,

     

    According to your description, it seems that your thread is about  Windows Filtering Platform. So I suggest you can send your issue to the  Windows Filtering Platform forum in MSDN. Here is the website: http://social.msdn.microsoft.com/Forums/en-US/wfp/threads.  In addition, I will move your thread to the other forum. Thanks for your understanding.

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, July 27, 2011 6:09 AM
  • The transport header (TCP) is not available at STREAM.  You can get this easily from FWPM_LAYER_STREAM_PACKET_{4 / 6}, FWPM_LAYER_{INBOUND / OUTBOUND}_TRANSPORT_{4 / 6}, or with a little more work from FWPM_LAYER_{INBOUND / OUTBOUND}_IPPACKET_{4 / 6}.

     

    Hope this helps,

     


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Thursday, July 28, 2011 8:07 PM
    Moderator