关于WFP中的Stream层和传输层 [英] About Stream layer and Transport layer in WFP

查看:154
本文介绍了关于WFP中的Stream层和传输层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想构建一个使用WFP的驱动程序。我的目标是修改一些特殊的网络数据。我假设数据(不需要ip或tcp标题)放在FWPM_LAYER_STREAM_V4和FWPM_LAYER_STREAM_V6。

I want to build a driver use WFP. My goal is modify some special network data. I assume the data(no need ip or tcp header) is placed at FWPM_LAYER_STREAM_V4 and FWPM_LAYER_STREAM_V6.

所以我在该图层上注册了一个标注,当出站时,它工作正常。

So I registered a callout on that layer, when outbound, it works fine.

但是当Inbound时,我发现数据只是部分的,例如整个数据是2940字节,它将包含三个TCP包。 (1460字节,1460字节,20字节)。

But when Inbound, I found out that the data is only partial, e.g. the whole data is 2940 bytes, it will be consist with three TCP packages. (1460 bytes, 1460 bytes, 20bytes).

我想知道为什么当出站时,在流层,数据是全长(2940字节),但是当入站时,流层是不是2940字节?它与入站时的传输层相同。

I wonder why when outbound, at the stream layer, the data is whole length(2940 bytes), but when inbound, the stream layer is not the 2940 bytes? It is as same as the transport layer when inbound.

我是否有任何方法可以在入站时获取整个数据流?

Do I have any way to get the whole data stream when inbound?

BTW,my样本基于世界粮食计划署样本的Stmedit。

BTW, my sample is base on the Stmedit from WFP samples.

推荐答案

有没有人有想法?



提前致谢!
Does anyone have an idea?

Thanks in advance!


这篇关于关于WFP中的Stream层和传输层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆