main.c (29696) | main.c (30187) |
---|---|
1/* 2 * User Process PPP 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 * User Process PPP 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: main.c,v 1.80 1997/09/21 20:26:46 brian Exp $ | 20 * $Id: main.c,v 1.81 1997/09/22 00:46:55 brian Exp $ |
21 * 22 * TODO: 23 * o Add commands for traffic summary, version display, etc. 24 * o Add signal handler for misc controls. 25 */ 26#include "fsm.h" 27#include <fcntl.h> 28#include <paths.h> --- 26 unchanged lines hidden (view full) --- 55#include "lcpproto.h" 56 57#ifndef O_NONBLOCK 58#ifdef O_NDELAY 59#define O_NONBLOCK O_NDELAY 60#endif 61#endif 62 | 21 * 22 * TODO: 23 * o Add commands for traffic summary, version display, etc. 24 * o Add signal handler for misc controls. 25 */ 26#include "fsm.h" 27#include <fcntl.h> 28#include <paths.h> --- 26 unchanged lines hidden (view full) --- 55#include "lcpproto.h" 56 57#ifndef O_NONBLOCK 58#ifdef O_NDELAY 59#define O_NONBLOCK O_NDELAY 60#endif 61#endif 62 |
63extern void VjInit(), AsyncInit(); | 63extern void VjInit(int), AsyncInit(); |
64extern void AsyncInput(); 65extern int SelectSystem(); 66 67extern void DecodeCommand(), Prompt(); 68extern int aft_cmd; 69extern int IsInteractive(); 70static void DoLoop(void); 71static void TerminalStop(); --- 424 unchanged lines hidden (view full) --- 496void 497PacketMode() 498{ 499 if (RawModem(modem) < 0) { 500 LogPrintf(LogWARN, "PacketMode: Not connected.\n"); 501 return; 502 } 503 AsyncInit(); | 64extern void AsyncInput(); 65extern int SelectSystem(); 66 67extern void DecodeCommand(), Prompt(); 68extern int aft_cmd; 69extern int IsInteractive(); 70static void DoLoop(void); 71static void TerminalStop(); --- 424 unchanged lines hidden (view full) --- 496void 497PacketMode() 498{ 499 if (RawModem(modem) < 0) { 500 LogPrintf(LogWARN, "PacketMode: Not connected.\n"); 501 return; 502 } 503 AsyncInit(); |
504 VjInit(); | 504 VjInit(15); |
505 LcpInit(); 506 IpcpInit(); 507 CcpInit(); 508 LcpUp(); 509 510 LcpOpen(VarOpenMode); 511 if ((mode & (MODE_INTER | MODE_AUTO)) == MODE_INTER) { 512 TtyCommandMode(1); --- 508 unchanged lines hidden --- | 505 LcpInit(); 506 IpcpInit(); 507 CcpInit(); 508 LcpUp(); 509 510 LcpOpen(VarOpenMode); 511 if ((mode & (MODE_INTER | MODE_AUTO)) == MODE_INTER) { 512 TtyCommandMode(1); --- 508 unchanged lines hidden --- |