Re: NDIS-cable status

From: Larry Clawson (larry.clawson_at_honeywell.com)
Date: 01/03/05


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
>
>



Relevant Pages

  • Turn on/off WiFi.
    ... Build up an NDISPWR_SAVEPOWERSTATE structure with the right adapter name ... in it, along with the target state of D4 for disabled, and call ... How to check if NDIS supports power management? ... not know how big is the retrieved list of protocol driver names? ...
    (microsoft.public.windowsce.app.development)
  • Re: How to bind passthru to NDIS USB driver ?
    ... Adapters that implement NDIS in the adapter firmware and interface to NDIS using the "Remote NDIS" interface. ... "Other" implementations that can be called a "NDIS-Windows Driver Model" ... Almost any USB Ethernet or USB-802.11 adapter that you can find uses the RNDIS interface and bind quite nicely to Passthru. ...
    (microsoft.public.development.device.drivers)
  • Re: Installing NDIS miniport driver
    ... There are a few ways that NDIS drivers get loaded: ... At boot time (which occurs immediately after the device is powered on ... load/initialize adapter instances like AsyncMac1 that are always present. ... A bus driver can tell NDIS that a NIC is ...
    (microsoft.public.windowsce.embedded)
  • Re: selectively bind a NDIS IM
    ... You should take a look at the NDIS IM MUX driver sample in DDK. ... You can create a custom notify object for your driver. ... Then once your user mode application starts, it can explicitly bind your IM driver to which ever adapter you want. ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS-cable status
    ... the system fetches the media status indication from ... think that there is any way to achieve your goal using a NDIS IM driver. ... > but still the status of network connection becomes cable unpulgeed. ...
    (microsoft.public.development.device.drivers)

Loading