Hi All,
I am writing a NIC card driver and a user mode
application. When my card is up, I needs to capture
all the packets in my network card. So when my card is
installed in the system, the route table has two
default routes as follows.
Destination Subnet Mask Next Hop Metric
0.0.0.0 0.0.0.0 Real Gateway 2
0.0.0.0 0.0.0.0 My own Gateway 1
When my G/W fails for some time, the Dead Gateway
Detection (RFC 816, “Fault Isolation and Discovery”)
is excuting and the “Default Gateway” is changing. So,
1)Is there any way to get the Default Gateway Change
notification in User Mode/Kernel Mode
2)Is there any way to disable this dead gateway
detection algorithm. The “EnableDeadGWDetect” is not
working as it is two card.
3)Is there any registry entry is updated when the
default gateway is changed.
4)I know removing the unwanted default route will
solve this. Is there any other solution?
Please help me on this,
Thanks,
Suja
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com
I don’t think using default gateway for such a purpose is a proper idea.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “SUJA JAMES”
To: “Windows System Software Devs Interest List”
Sent: Thursday, December 02, 2004 7:10 PM
Subject: [ntdev] Dead Gateway Detection
> Hi All,
>
> I am writing a NIC card driver and a user mode
> application. When my card is up, I needs to capture
> all the packets in my network card. So when my card is
> installed in the system, the route table has two
> default routes as follows.
>
> Destination Subnet Mask Next Hop Metric
> 0.0.0.0 0.0.0.0 Real Gateway 2
> 0.0.0.0 0.0.0.0 My own Gateway 1
>
> When my G/W fails for some time, the Dead Gateway
> Detection (RFC 816, “Fault Isolation and Discovery”)
> is excuting and the “Default Gateway” is changing. So,
>
> 1)Is there any way to get the Default Gateway Change
> notification in User Mode/Kernel Mode
> 2)Is there any way to disable this dead gateway
> detection algorithm. The “EnableDeadGWDetect” is not
> working as it is two card.
> 3)Is there any registry entry is updated when the
> default gateway is changed.
> 4)I know removing the unwanted default route will
> solve this. Is there any other solution?
>
> Please help me on this,
> Thanks,
> Suja
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> All your favorites on one personal page - Try My Yahoo!
> http://my.yahoo.com
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Hi Maxim,
Ok, I will agree to you, if you can point me some
methods to capture all the packets in my Virtual
Network Card.
Don’t suggest me to Write a TDI driver -> I will loose
packets originated from NetBIOS etc…
NDIS Miniport Filter for Real NIC -> This needs a
reboot to install and a complex thing.
Regards
Suja.
— “Maxim S. Shatskih”
wrote:
> I don’t think using default gateway for such a
> purpose is a proper idea.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “SUJA JAMES”
> To: “Windows System Software Devs Interest List”
>
> Sent: Thursday, December 02, 2004 7:10 PM
> Subject: [ntdev] Dead Gateway Detection
>
>
> > Hi All,
> >
> > I am writing a NIC card driver and a user mode
> > application. When my card is up, I needs to
> capture
> > all the packets in my network card. So when my
> card is
> > installed in the system, the route table has two
> > default routes as follows.
> >
> > Destination Subnet Mask Next Hop Metric
> > 0.0.0.0 0.0.0.0 Real Gateway 2
> > 0.0.0.0 0.0.0.0 My own Gateway 1
> >
> > When my G/W fails for some time, the Dead Gateway
> > Detection (RFC 816, “Fault Isolation and
> Discovery”)
> > is excuting and the “Default Gateway” is changing.
> So,
> >
> > 1)Is there any way to get the Default Gateway
> Change
> > notification in User Mode/Kernel Mode
> > 2)Is there any way to disable this dead gateway
> > detection algorithm. The “EnableDeadGWDetect” is
> not
> > working as it is two card.
> > 3)Is there any registry entry is updated when the
> > default gateway is changed.
> > 4)I know removing the unwanted default route will
> > solve this. Is there any other solution?
> >
> > Please help me on this,
> > Thanks,
> > Suja
> >
> >
> >
> >
> >
> >
> > Do you Yahoo!?
> > All your favorites on one personal page - Try My
> Yahoo!
> > http://my.yahoo.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> xxxxx@storagecraft.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
> NDIS Miniport Filter for Real NIC -> This needs a
reboot to install and a complex thing.
NDIS miniport is by far easier then a TDI filter, since TDI filter is an
undocumented kludge, while NDIS miniport is not.
From what I know, NDIS IM filter can be installed without reboot, just with
shutting down network interface and restarting it. This is a minimal
requirement, and, if your product inserts filters without a stack restart, then
“please tell me the product name and I will never use it”, this cannot be done
reliably (except for FltMgr’s filters).
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
Hi
The NDIS IM filer needs shutting down network
interface and restarting it. In that case there is
chance that we will disturb the existing application
which uses the network services. This is not
acceptable for us. So we moved to a virtual adapter
solution which will install and uninstall without
disturbing the existing applications. After the card
is up we are modifying the route table to put all
traffic to my virtual card and from there to the real
card.
But the dead gateway cause the system to change the
“default” gateway.
Regards
Suja
— “Maxim S. Shatskih”
wrote:
> > NDIS Miniport Filter for Real NIC -> This needs a
> > reboot to install and a complex thing.
>
> NDIS miniport is by far easier then a TDI filter,
> since TDI filter is an
> undocumented kludge, while NDIS miniport is not.
>
> From what I know, NDIS IM filter can be installed
> without reboot, just with
> shutting down network interface and restarting it.
> This is a minimal
> requirement, and, if your product inserts filters
> without a stack restart, then
> “please tell me the product name and I will never
> use it”, this cannot be done
> reliably (except for FltMgr’s filters).
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
__________________________________
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com
> chance that we will disturb the existing application
which uses the network services. This is not
acceptable for us
Installation of MUX IM will hardly require stopping the physical NICs below,
so, if the app uses physical NIC for networking, then it will not be touched by
your IM’s install.
But, to force the app to use your virtual driver, you will need to restart the
app in any possible case.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com