From: Paul Mackerras Date: Wed, 25 Mar 1998 03:08:47 +0000 (+0000) Subject: set script env vars for local and remote IP numbers X-Git-Tag: RELEASE_2_3_6~97 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=fc6ee88da5baa928aab7603db5e502dc4c4af44e set script env vars for local and remote IP numbers --- diff --git a/pppd/ipcp.c b/pppd/ipcp.c index 78366f4..fee6757 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ipcp.c,v 1.32 1997/07/14 03:52:56 paulus Exp $"; +static char rcsid[] = "$Id: ipcp.c,v 1.33 1998/03/25 03:08:47 paulus Exp $"; #endif /* @@ -1157,6 +1157,8 @@ ipcp_up(f) ipcp_close(f->unit, "Could not determine local IP address"); return; } + script_setenv("IPLOCAL", ip_ntoa(go->ouraddr)); + script_setenv("IPREMOTE", ip_ntoa(ho->hisaddr)); /* * Check that the peer is allowed to use the IP address it wants.