diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-12 14:39:47 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-12 14:39:47 +0000 |
commit | e9d9f1a03faaebd237b178bafd1984ebdb7f10ce (patch) | |
tree | 34061737a5a78521d3b8272572be78e37e2e5ee3 /usr.sbin/ppp/ipcp.c | |
parent | ea690c232d51299477c23bce3db9b26729d4878e (diff) | |
download | FreeBSD-src-e9d9f1a03faaebd237b178bafd1984ebdb7f10ce.zip FreeBSD-src-e9d9f1a03faaebd237b178bafd1984ebdb7f10ce.tar.gz |
The infamous IP aliasing code for ppp, modified to work as a runtime option
(otherwise ppp's behavior remains unchanged) and documented by myself,
Steve Sims, Nate Williams, Martin Renters and god-only-knows who else. :-)
Submitted by: nate
Obtained from: Charles Mott <cmott@srv.net>
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
-rw-r--r-- | usr.sbin/ppp/ipcp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index 6df1d4d..3be3686 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ipcp.c,v 1.8 1996/05/11 20:48:26 phk Exp $ + * $Id: ipcp.c,v 1.9 1996/10/06 13:32:28 jkh Exp $ * * TODO: * o More RFC1772 backwoard compatibility @@ -35,6 +35,7 @@ #include "os.h" #include "phase.h" #include "vars.h" +#include "alias.h" extern void PutConfValue(); extern void Prompt(); @@ -274,6 +275,8 @@ struct fsm *fp; OsLinkup(); IpcpStartReport(); StartIdleTimer(); + if (mode & MODE_ALIAS) + SetAliasAddress(IpcpInfo.want_ipaddr); } void |