diff options
author | brian <brian@FreeBSD.org> | 1997-08-19 01:10:24 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-08-19 01:10:24 +0000 |
commit | f4cc1c34030b6b39140566167f95d436ae620cf8 (patch) | |
tree | f4aec5bd5512e3c3e7b029d26903acef851e30ac /usr.sbin/ppp/command.c | |
parent | 03ba12afe1091b81f6f14967da3302842700df2a (diff) | |
download | FreeBSD-src-f4cc1c34030b6b39140566167f95d436ae620cf8.zip FreeBSD-src-f4cc1c34030b6b39140566167f95d436ae620cf8.tar.gz |
Correct the forth arg to "set ifaddr". If specified,
it gives the IP number that should be used for initial
IPCP config requests, irrespective of MYADDR.
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 21b26bc..5896abf 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.68 1997/08/17 20:45:45 brian Exp $ + * $Id: command.c,v 1.69 1997/08/18 20:15:09 brian Exp $ * */ #include <sys/types.h> @@ -1093,11 +1093,14 @@ struct cmdtab *list; int argc; char **argv; { - DefMyAddress.ipaddr.s_addr = DefHisAddress.ipaddr.s_addr = 0L; + if (argc > 4) return -1; + HaveTriggerAddress = 0; + ifnetmask.s_addr = 0; + if (argc > 0) { if (ParseAddr(argc, argv++, &DefMyAddress.ipaddr, @@ -1113,15 +1116,13 @@ char **argv; if (--argc > 0) { ifnetmask = GetIpAddr(*argv); if (--argc > 0) { - if (ParseAddr(argc, argv++, - &DefTriggerAddress.ipaddr, - &DefTriggerAddress.mask, - &DefTriggerAddress.width) == 0) - return 3; + TriggerAddress = GetIpAddr(*argv); + HaveTriggerAddress = 1; } } } } + /* * For backwards compatibility, 0.0.0.0 means any address. */ |