Hi All,
I have a private protocol, say A. In Win2K8 R2 Hyper V, when I virtualize my pNic, all well know protocols are moved up to the vNic. The reqirement for my protocol is still to stay bound with the pNic, which is what is happening.
But during the virtualization process, my protocol is getting an Unbind call, followed immeiately by a bind call. I want to prevent the unbind call from the Virtual Switch Protocol (vms_pp) to reach my protocol stack.
So in my Notify Object I try to identify the path by doing a string comparison to see if the Upper Component of the binding interface matches with “vms_pp” (to identify that the call is from Virtual Switch Protocol) and then if this matches, do the follwoing -
from the SysNotifyBindingPath call on getting a NCN_DISABLE I set the INetConfigBindingPath -> Enable(FALSE); and return S_OK.
But this does not seem to solve anything.
I think I am making some fundamental mistake. I read the documentation in MSDN WDK and tried different ways to twist the code and debug, but no result.
Can someone please help me understandwhat I am doing wrong ?
Thanks for your time and my appologies for the long post.
Regards
Sourav
Why do you want to prevent getting Unbind call? Your should better to concentrate of handling this situation correctly .
Unbind/Bind calls could be cause by different events or network state. For example, if 1G NIC connected to 100M switch all network drivers in a stack, during initialization, would get Unbind call following by Bind.
Igor Sharovar
Hi Igor,
Thanks for your reply.
The long term solution, I agree, is to getting the synchorization fixed. Right now Unbind immediately followed by Bind call is causing my PDO to disapear. It is causing a race condition.(need some re-designing)
Thus I am trying to come up with a temporary solution. I am new to Notify Objects and from what I read in documentation I have a sense that I may be able to filter out the call.(or can I?)
That is what I want to understand. If there is a way at all to do this by using Notify Objects?
Regards
Sourav
I am not sure if it is possible. You couldn’t skip Unbind between two Bind calls.
Igor Sharovar