How to get the IP address Of PPP adapter ????

Hi,

Could anyone tell me that in case of Dialup adapter on NT, after the PPP
negotiaition is done, how does the TCP/IP stack above get the IP address
which the PPP layer has dynamically got after the negotation???

I have implemented a TDI Filter driver in which i need to collect the IP
address assigned to the DialUp Adapter.How can a Filter driver come to
know that the adapter is on and is connected and has been assigned an IP
address??

Regards…
–Subodh

> ----------

From: xxxxx@softhome.net[SMTP:xxxxx@softhome.net]
Reply To: xxxxx@lists.osr.com
Sent: Saturday, October 19, 2002 5:15 PM
To: xxxxx@lists.osr.com
Subject: [ntdev] How to get the IP address Of PPP adapter ???

Could anyone tell me that in case of Dialup adapter on NT, after the PPP
negotiaition is done, how does the TCP/IP stack above get the IP address
which the PPP layer has dynamically got after the negotation???

It is stored in NDIS_WAN_LINE_UP ProtocolBuffer. The format is undocumented
but rather easy to distinguish. You need NDIS IM driver to see this
notification (via ProtocolReceive).

I have implemented a TDI Filter driver in which i need to collect the IP
address assigned to the DialUp Adapter.How can a Filter driver come to
know that the adapter is on and is connected and has been assigned an IP
address??

See TdiRegisterAddressChangeHandler and TdiRegisterPnpHandlers.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]