Hi All,
I am making use of netvmini sample(Virtual miniport driver). I
have modified the code in such a way that i can change the cable status using
control codes which will trigger a NDIS_MEDIA_STATUS_CONNECT and
NDIS_MEDIA_STATUS_DISCONNECT in driver. It is working fine.

But sometimes though adapter is configured to use static
IP, on receiving CONNECT control code which will trigger
NDIS_MEDIA_STATUS_CONNECT, the status in the network connections window says
"Acquiring network address" . The ip address displayed is 0.0.0.0 but soon
after the status becomes connected and it chages back to static IP which i
configured .

What i observed is this happens with LAN as well as WLAN in my machine when
they are configured with static IP. When i unplug and plug network cable of
LAN adapter, the same event happens sometimes which results in erratic
behavior of sockets.

Could anyone let me know how can i fix this?Would be of great help if u
could let me know what all are the events happens at "Acquiring network
address".

Thanks,
Senthil

RE: Ndis - DHCP by Senthil

Senthil
Fri Apr 22 09:49:21 CDT 2005

Adding to the mail below,sometimes in network connections window the status
says "Acquiring network address" where as it shows the ip addres of static ip
which i configured and when i used ipconfig it hanged.
Thanks,
Senthil


"Senthil" wrote:

> Hi All,
> I am making use of netvmini sample(Virtual miniport driver). I
> have modified the code in such a way that i can change the cable status using
> control codes which will trigger a NDIS_MEDIA_STATUS_CONNECT and
> NDIS_MEDIA_STATUS_DISCONNECT in driver. It is working fine.
>
> But sometimes though adapter is configured to use static
> IP, on receiving CONNECT control code which will trigger
> NDIS_MEDIA_STATUS_CONNECT, the status in the network connections window says
> "Acquiring network address" . The ip address displayed is 0.0.0.0 but soon
> after the status becomes connected and it chages back to static IP which i
> configured .
>
> What i observed is this happens with LAN as well as WLAN in my machine when
> they are configured with static IP. When i unplug and plug network cable of
> LAN adapter, the same event happens sometimes which results in erratic
> behavior of sockets.
>
> Could anyone let me know how can i fix this?Would be of great help if u
> could let me know what all are the events happens at "Acquiring network
> address".
>
> Thanks,
> Senthil
>

Re: Ndis - DHCP by Stephan

Stephan
Fri Apr 22 10:23:34 CDT 2005

I guess this is the result of Windows trying to figure out whether the
IP address you have configured is already in use by some other host. An
ARP request is usually sent to all connected network interfaces that
asks for the configured local IP address. If an answer is receieved,
the IP address is aleady in use (duplicate address) and the local IP
stack will decline using it.

Try and run some network sniffer to check whether you see ARP requests
for your configured IP address being sent from your test machine.

Stephan