Enumerate IP addresses from kernel mode..

Hello,

Is there any way to enumerate list of IP addresses on
a given machine from a kernel mode device driver?

Thanks.
-Prasad


Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> ----------

From: Prasad Dabak[SMTP:xxxxx@yahoo.com]
Reply To: NT Developers Interest List
Sent: Tuesday, May 22, 2001 1:35 PM
To: NT Developers Interest List
Subject: [ntdev] Enumerate IP addresses from kernel mode…

Is there any way to enumerate list of IP addresses on
a given machine from a kernel mode device driver?

Look for TdiRegisterAddressChangeHandler() in tdikrnl.h file. It is
undocumented but I’m sure you will know what to do with it :slight_smile: IIRC callback
is called for every IP address even if a driver is started long after boot
so can be used for enumeration. Simply register callbacks and they should be
called immediatelly with all available IP addresses.

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Prasad,

Tdi provides a set of pnp event callbacks that you can use to enumerate the addresses currently registered with the system and track changes that occur over time. I don’t have access to my code right now, but I seem to remember that it is TdiRegisterEventHandlers on 2K and on NT there are address and binding specific versions. I hope this helps. Let me know if you need any more information.

Toby

On Tue, 22 May 2001 04:35:51 -0700 (PDT)
Prasad Dabak wrote:

> Hello,
>
> Is there any way to enumerate list of IP addresses on
> a given machine from a kernel mode device driver?
>
> Thanks.
> -Prasad
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> —
> You are currently subscribed to ntdev as: tball@ne.mediaone.net
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

There’s an API TdiEnumerateAddresses I think it may help u.

-Uma

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Prasad Dabak
Sent: Tuesday, May 22, 2001 4:36 AM
To: NT Developers Interest List
Subject: [ntdev] Enumerate IP addresses from kernel mode…

Hello,

Is there any way to enumerate list of IP addresses on
a given machine from a kernel mode device driver?

Thanks.
-Prasad


Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@cmoschips.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thanks a lot.

It works like a charm.

-Prasad

— “Vodicka, Michal” wrote:
> > ----------
> > From: Prasad Dabak[SMTP:xxxxx@yahoo.com]
> > Reply To: NT Developers Interest List
> > Sent: Tuesday, May 22, 2001 1:35 PM
> > To: NT Developers Interest List
> > Subject: [ntdev] Enumerate IP addresses from
> kernel mode…
> >
> > Is there any way to enumerate list of IP addresses
> on
> > a given machine from a kernel mode device driver?
> >
> Look for TdiRegisterAddressChangeHandler() in
> tdikrnl.h file. It is
> undocumented but I’m sure you will know what to do
> with it :slight_smile: IIRC callback
> is called for every IP address even if a driver is
> started long after boot
> so can be used for enumeration. Simply register
> callbacks and they should be
> called immediatelly with all available IP addresses.
>
> Best regards,
>
> Michal Vodicka
> Veridicom
> (RKK - Skytale)
> [WWW: http://www.veridicom.com ,
> http://www.skytale.com]
>
>
>
>
>
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

=====
Prasad S. Dabak
Chief Software Architect
Ensim India Private Limited
http://www.ensim.com
Co-author of the book “Undocumented Windows NT”
ISBN 0764545698

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com