]> git.ozlabs.org Git - ppp.git/commitdiff
set script env vars for local and remote IP numbers
authorPaul Mackerras <paulus@samba.org>
Wed, 25 Mar 1998 03:08:47 +0000 (03:08 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 25 Mar 1998 03:08:47 +0000 (03:08 +0000)
pppd/ipcp.c

index 78366f4cb3d3b146106f9c96cf0f1578a581d07f..fee6757439d76df99299c58f2312c9be1059639a 100644 (file)
@@ -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.