command.c (11336) | command.c (13379) |
---|---|
1/* 2 * PPP User command processing module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * | 1/* 2 * PPP User command processing module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * |
20 * $Id: command.c,v 1.9 1995/09/02 17:20:50 amurai Exp $ | 20 * $Id: command.c,v 1.10 1995/10/08 14:57:27 amurai Exp $ |
21 * 22 */ | 21 * 22 */ |
23#include <sys/types.h> |
|
23#include <ctype.h> 24#include <termios.h> | 24#include <ctype.h> 25#include <termios.h> |
26#include <wait.h> 27#include <time.h> |
|
25#include "fsm.h" 26#include "phase.h" 27#include "lcp.h" 28#include "ipcp.h" 29#include "modem.h" 30#include "command.h" 31#include "hdlc.h" 32#include "vars.h" --- 718 unchanged lines hidden (view full) --- 751} 752 753static int 754SetInterfaceAddr(list, argc, argv) 755struct cmdtab *list; 756int argc; 757char **argv; 758{ | 28#include "fsm.h" 29#include "phase.h" 30#include "lcp.h" 31#include "ipcp.h" 32#include "modem.h" 33#include "command.h" 34#include "hdlc.h" 35#include "vars.h" --- 718 unchanged lines hidden (view full) --- 754} 755 756static int 757SetInterfaceAddr(list, argc, argv) 758struct cmdtab *list; 759int argc; 760char **argv; 761{ |
759 int width; | |
760 761 DefMyAddress.ipaddr.s_addr = DefHisAddress.ipaddr.s_addr = 0L; 762 if (argc > 0) { 763 ParseAddr(argc, argv++, 764 &DefMyAddress.ipaddr, &DefMyAddress.mask, &DefMyAddress.width); 765 if (--argc > 0) { 766 ParseAddr(argc, argv++, 767 &DefHisAddress.ipaddr, &DefHisAddress.mask, &DefHisAddress.width); --- 212 unchanged lines hidden --- | 762 763 DefMyAddress.ipaddr.s_addr = DefHisAddress.ipaddr.s_addr = 0L; 764 if (argc > 0) { 765 ParseAddr(argc, argv++, 766 &DefMyAddress.ipaddr, &DefMyAddress.mask, &DefMyAddress.width); 767 if (--argc > 0) { 768 ParseAddr(argc, argv++, 769 &DefHisAddress.ipaddr, &DefHisAddress.mask, &DefHisAddress.width); --- 212 unchanged lines hidden --- |