slppp.h

来自「用于嵌入式系统的TCP/IP协议栈及若干服务」· C头文件 代码 · 共 80 行

H
80
字号
/**            Copyright (c) 1998-2001 by NETsilicon Inc.**  This software is copyrighted by and is the sole property of*  NETsilicon.  All rights, title, ownership, or other interests*  in the software remain the property of NETsilicon.  This*  software may only be used in accordance with the corresponding*  license agreement.  Any unauthorized use, duplication, transmission,*  distribution, or disclosure of this software is expressly forbidden.**  This Copyright notice may not be removed or modified without prior*  written consent of NETsilicon.**  NETsilicon, reserves the right to modify this software*  without notice.**  NETsilicon*  411 Waverley Oaks Road                  USA 781.647.1234*  Suite 227                               http://www.netsilicon.com*  Waltham, MA 02452                       AmericaSales@netsilicon.com***************************************************************************  $Name: Fusion 6.52 Fusion 6.51 $*  $Date: 2001/09/20 10:25:00 $*  $Source: M:/psisrc/ppp/incl/rcs/slppp.h $*  $Revision: 1.11 $**************************************************************************  File Description:  Common definitions for SLIP and PPP Protocols*                                                                 *************************************************************************/#ifndef _SLPPP_#define _SLPPP_#include <std.h>#include <fnsproto.h>#ifdef SLIP_PROTOCOL#ifndef SLIP_PPP_PROTOCOL#define SLIP_PPP_PROTOCOL#endif#endif#ifdef PPP_PROTOCOL#ifndef SLIP_PPP_PROTOCOL#define SLIP_PPP_PROTOCOL#endif#endifextern	void	serial_init(netdev *ndp);	   extern	int	    serial_updown(netdev * ndp, u16	flags, char * opt);extern  char    serial_read(netdev * ndp);extern  void    serial_write(char * cp, int num_bytes, netdev * ndp);extern	int     serial_check_dsr(void);extern	int     serial_check_dcd(void);extern	int     serial_set_dtr(int option);extern  void    slppp_handler(netdev * ndp);extern	char	*get_login_name(void);extern	char	*get_password_name(void);extern	char	*get_command_name(void);extern	int	    get_send_expect_login(char * buf);extern	int	    set_send_expect_login(char * buf);extern	int	    set_login_array(char * newstr, char * oldstr);/* ML: pppse.c send sequence structure *//* OL: changed timeout from int to long for 16-bits integers * architecture and moved from ppp.h to here */#define MAX_SEND_EXPECT 20typedef struct se_sequence{    char send[MAX_SEND_EXPECT];    char expect[MAX_SEND_EXPECT];    long timeout;    int trys;} SE_SEQUENCE;#endif /* _SLPPP_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?