Get ppp remote address and local address

How do I get the remote address and local address of ppp programmatically
after pppd is up ?
I am running both Full and Tiny TCP stack.

Thanks,
-Beth Chen

SIOCGIFADDR for the local addr. See an example two threads
above this one. Use the same example but replace
SIOCGIFADDR → SIOCGIFDSTADDR for the remote addr.

-seanb

Beth <id@net.com> wrote:

How do I get the remote address and local address of ppp programmatically
after pppd is up ?
I am running both Full and Tiny TCP stack.

Thanks,
-Beth Chen

Got it working, thanks!

“Sean Boudreau” <seanb@node25.ott.qnx.com> wrote in message
news:bbinmu$l8d$1@nntp.qnx.com

SIOCGIFADDR for the local addr. See an example two threads
above this one. Use the same example but replace
SIOCGIFADDR → SIOCGIFDSTADDR for the remote addr.

-seanb

Beth <> id@net.com> > wrote:
How do I get the remote address and local address of ppp
programmatically
after pppd is up ?
I am running both Full and Tiny TCP stack.

Thanks,
-Beth Chen