diff options
author | brian <brian@FreeBSD.org> | 1997-05-26 00:44:10 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-26 00:44:10 +0000 |
commit | 12b254e3164dbf2f773ea486a20102fd4183173c (patch) | |
tree | f69d2306d93e872c8408a5c5f9931535f7ecf7b1 /usr.sbin/ppp/ipcp.c | |
parent | 8089164d6fdd97167753a3a56afb162c5a6f699c (diff) | |
download | FreeBSD-src-12b254e3164dbf2f773ea486a20102fd4183173c.zip FreeBSD-src-12b254e3164dbf2f773ea486a20102fd4183173c.tar.gz |
De-couple ppp from libalias. If libalias isn't there, the
alias commands simply won't work. Only root may specify the
location of the alias lib (otherwise, it's hard-coded).
Make logprintf silently fail if LogOpen hasn't been called.
Suggested by: eivind
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
-rw-r--r-- | usr.sbin/ppp/ipcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index 2c414f3..2df6e87 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.18 1997/05/23 04:54:02 brian Exp $ + * $Id: ipcp.c,v 1.19 1997/05/24 17:32:35 brian Exp $ * * TODO: * o More RFC1772 backwoard compatibility @@ -31,10 +31,10 @@ #include <netinet/ip.h> #include <arpa/inet.h> #include <sys/socket.h> -#include <alias.h> #include "slcompress.h" #include "os.h" #include "phase.h" +#include "loadalias.h" #include "vars.h" extern void PutConfValue(); @@ -282,7 +282,7 @@ struct fsm *fp; IpcpStartReport(); StartIdleTimer(); if (mode & MODE_ALIAS) - SetPacketAliasAddress(IpcpInfo.want_ipaddr); + VarSetPacketAliasAddress(IpcpInfo.want_ipaddr); } void |