From fc6ee88da5baa928aab7603db5e502dc4c4af44e Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 25 Mar 1998 03:08:47 +0000 Subject: [PATCH 1/1] set script env vars for local and remote IP numbers --- pppd/ipcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.39.2