diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-08-19 01:10:24 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-08-19 01:10:24 +0000 |
commit | 3f6fd9230eadf7e4793c572c01a8c987a486935f (patch) | |
tree | f8ad586633437ba6b833d0998e60419079325338 /usr.sbin/ppp/command.c | |
parent | 891e0f24c4381007f5211dbf365c0cdf95257631 (diff) | |
download | src-3f6fd9230eadf7e4793c572c01a8c987a486935f.tar.gz src-3f6fd9230eadf7e4793c572c01a8c987a486935f.zip |
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.
Notes
Notes:
svn path=/head/; revision=28394
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 21b26bc4f6f1..5896abfe71ce 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. */ |