Re: NDIS-cable status
From: Larry Clawson (larry.clawson_at_honeywell.com)
Date: 01/03/05
- Next message: Rob: "Bluetooth HID devices"
- Previous message: Gabriel Bogdan: "Re: MmMapLockedPagesSpecifyCache returning NULL"
- In reply to: Thomas F. Divine [DDK MVP]: "Re: NDIS-cable status"
- Next in thread: Senthil: "Re: NDIS-cable status"
- Reply: Senthil: "Re: NDIS-cable status"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 3 Jan 2005 13:12:45 -0700
I always return NDIS_STATUS_MEDIA_CONNECT for a disconnect notification in
my NDIS IM. The applications using the adapters do not get the disconnect
indication and continue to use the adapter, eventhough the system tray icon
for the adapter shows a "red X" and Network Connections shows "Network Cable
Disconnected".
Using "ping -t" and unplug the cable will normally give a "Hardware Error",
while with my driver always returning good the "ping" will not signal the
"Harware Error".
Just in case you are wondering why I do this, our nodes are dual homed and
my driver will redirect any traffic to the other adapter transparent to the
application. So the above "ping" will continue to work when a cable gets
broken. As will all other applications.
Larry C
"Thomas F. Divine [DDK MVP]" <tdivine@NOpcausaSPAM.com> wrote in message
news:OBvJ0Db8EHA.2032@tk2msftngp13.phx.gbl...
> If I recall correctly, the system fetches the media status indication from
> the NIC directly using a mechanism that bypasses the NDIS IM filter. I
don't
> think that there is any way to achieve your goal using a NDIS IM driver.
>
> Regards,
>
> Thomas F. Divine, Windows DDK MVP
> http://www.pcausa.com
>
>
> "Senthil" <Senthil@discussions.microsoft.com> wrote in message
> news:25896046-5446-4593-B10D-0CAE0CF0F922@microsoft.com...
> >I want to have the status of my network connection always connected
though
> >i
> > unplug the cable. whenever i unplug cable,ptstatus and ptstatuscomplete
> > of
> > my NDIS intermediate driver is getting called. I have modified the
status
> > to
> > media connected in ptstatus and passing it to the protocol driver.
> > Here is the code
> >
> > if ((GeneralStatus == NDIS_STATUS_MEDIA_CONNECT) ||
> > (GeneralStatus == NDIS_STATUS_MEDIA_DISCONNECT))
> > {
> > if(GeneralStatus == NDIS_STATUS_MEDIA_DISCONNECT)
> > {
> > GeneralStatus=NDIS_STATUS_MEDIA_CONNECT;
> >
> > }
> >
> >
> > but still the status of network connection becomes cable unpulgeed.
> >
> > Can anyone let me know what else i need to do to make it remain plugged?
> >
> > Thanks,
> > Senthil
>
>
- Next message: Rob: "Bluetooth HID devices"
- Previous message: Gabriel Bogdan: "Re: MmMapLockedPagesSpecifyCache returning NULL"
- In reply to: Thomas F. Divine [DDK MVP]: "Re: NDIS-cable status"
- Next in thread: Senthil: "Re: NDIS-cable status"
- Reply: Senthil: "Re: NDIS-cable status"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|