Hi all

I am trying get the IP address of the Adapter(802.3) from the NDIS IM
driver. I couldn't find any OID for this.

How to get the IP address of an adapter from NDIS IM Driver?
Any help is appreciated.

Thanks vary much
Ganesan

Re: IP address from IM driver by Paul

Paul
Tue Feb 01 12:57:03 CST 2005

You don't need to use that to get IP addresses. Use the IP Helper API. I
think that GetAdaptersInfo() will do it, for example.

Paul T.

<ganesan.nagrajan@gmail.com> wrote in message
news:1107218121.876347.280610@f14g2000cwb.googlegroups.com...
> Hi all
>
> I am trying get the IP address of the Adapter(802.3) from the NDIS IM
> driver. I couldn't find any OID for this.
>
> How to get the IP address of an adapter from NDIS IM Driver?
> Any help is appreciated.
>
> Thanks vary much
> Ganesan
>



Re: IP address from IM driver by ganesan

ganesan
Tue Feb 01 14:18:59 CST 2005

Thanks very much

I used that call in the Driver. But I had my doubts abouts this call
being called from IM Driver level (IRQ levels "may" not be correct).
But its seemed OK.

When I used it, the call succeded, I got Adaptername, DhcpServer
address.
But the current IPAddress and the IPAddressList(had only one element)
returned 0.0.0.0.

So I couldn't find the IP address. I couldn't find an OID from Ndis.h
to get this.

Any other clues?

(Note: Currently using the first send packet source address, and the
registry Tcpip values may not be always reliable)

Thanks
Ganesan


Re: IP address from IM driver by Paul

Paul
Tue Feb 01 14:39:50 CST 2005

If the adapter is currently bound to an address, the current IP address
should be right. Can you ping from the device outward? Can outside devices
ping it? It seems like it's configured for DHCP and no address has been
assigned yet (or the DHCP server has decided not to assign one to the device
for some reason).

Paul T.

<ganesan.nagrajan@gmail.com> wrote in message
news:1107289139.030585.206850@z14g2000cwz.googlegroups.com...
> Thanks very much
>
> I used that call in the Driver. But I had my doubts abouts this call
> being called from IM Driver level (IRQ levels "may" not be correct).
> But its seemed OK.
>
> When I used it, the call succeded, I got Adaptername, DhcpServer
> address.
> But the current IPAddress and the IPAddressList(had only one element)
> returned 0.0.0.0.
>
> So I couldn't find the IP address. I couldn't find an OID from Ndis.h
> to get this.
>
> Any other clues?
>
> (Note: Currently using the first send packet source address, and the
> registry Tcpip values may not be always reliable)
>
> Thanks
> Ganesan
>