我可以在驱动程序工作时添加新的过滤器吗? [英] can I add new filter while the driver working ??
问题描述
您好
我想知道我是否可以在驱动程序工作时添加新的过滤器?在驱动程序启动时我是b $ b打开引擎句柄,启动事务,注册标注并添加过滤器,直到这里所有工作完美,但我的驱动程序检查数据包,我决定添加新的过滤器来阻止来自特定IP的流量,我可以这样做?
我尝试使用我在第一次使用的相同的引擎手柄,我没有关闭引擎或中止事务直到卸载驱动程序,这样没问题,当我做不添加新的过滤器,但当我尝试添加过滤器时我得到蓝屏异常
??
有什么问题?我应该使用新引擎句柄和新会话吗?或者在挂起数据包期间添加过滤器是不可能的?
I want to know if I can add new filter while the driver working ?
in the start of driver I open engine handle, start transaction , register callout and add filter and until here all thing work perfect , but while my driver checking packets I decide to add new filter to block traffic from specific IP can I do this ??
I try to use the same engine handle which I use in the first and I did not close the engine or abort the transaction until unload the driver , in this way no problem when I did not add new filter but when I try to add filter I get exception with blue screen
??
what problem ? should I use new engine handle and new session ??or adding filter during pending packet is impossible ?
推荐答案
是的,你可以添加一个在驱动程序处理NBL时过滤。 你能提供一个堆栈转储吗?
Yes, you can add a filter while the driver is processing NBLs. Can you provide a stack dump?
谢谢,
这篇关于我可以在驱动程序工作时添加新的过滤器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!