diff options
author | brian <brian@FreeBSD.org> | 1997-08-21 17:07:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-08-21 17:07:30 +0000 |
commit | 225778b10c5f4758de990a40ac0664d93c38661a (patch) | |
tree | 9fec82523b2b7556b44ecf653890aa3ee8d5a648 /usr.sbin/ppp/command.c | |
parent | 263a0e79cc4756de756f7812ae9239dfee01b6f5 (diff) | |
download | FreeBSD-src-225778b10c5f4758de990a40ac0664d93c38661a.zip FreeBSD-src-225778b10c5f4758de990a40ac0664d93c38661a.tar.gz |
Allow the use of HISADDR & MYADDR in ppp.conf.
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index c2eaf7a..8897127 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.72 1997/08/21 16:18:07 brian Exp $ + * $Id: command.c,v 1.73 1997/08/21 16:21:28 brian Exp $ * */ #include <sys/types.h> @@ -1184,11 +1184,15 @@ char **argv; DefHisAddress.width = 0; } + IpcpInfo.want_ipaddr.s_addr = DefMyAddress.ipaddr.s_addr; + IpcpInfo.his_ipaddr.s_addr = DefHisAddress.ipaddr.s_addr; + if ((mode & MODE_AUTO) || ((mode & MODE_DEDICATED) && dstsystem)) { if (OsSetIpaddress(DefMyAddress.ipaddr, DefHisAddress.ipaddr, ifnetmask) < 0) return 4; } + return 0; } |