传递更多数据时在FWPM

编程入门 行业动态 更新时间:2024-10-28 10:31:29
本文介绍了传递更多数据时在FWPM_LAYER_STREAM_V4发出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

推荐答案

对入站数据进行打包(拆分为正确的MTU和标题)添加)。因此,您指示的数据是数据包有效负载的大小。在出站时,数据尚未打包,因此表示整个金额超过到套接字调用。

On inbound the data has been packetized (split into the proper MTUs, and headers added). so the data you are indicated are the sizes from the packet payloads. on outbound, the data has not been packetized yet, so you are indicated the whole amount passed to the socket call.

如果你需要更多的入站字节来执行操作,您可以使用FWPS_STREAM_ACTION_NEED_MORE_DATA。此标志将导致更多数据提供给下一个callout调用。

If you need more bytes on inbound to act on, you can use the FWPS_STREAM_ACTION_NEED_MORE_DATA. This flag will cause more data to be provided to the next callout invocation.

msdn.microsoft/en-us/library/windows/hardware/ff570891(v=vs.85).aspx

希望这会有所帮助,

更多推荐

传递更多数据时在FWPM

本文发布于:2023-11-26 16:09:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634352.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:更多   数据   FWPM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!