📄 slip_str.h
字号:
/*
RCS header identifier - slip_str.h,v 1.3 1995/02/20 18:01:03 sford Exp
*/
/***************************************************************************
*
* Copyright (c) 1995 Microtec Research, Inc.
*
* All rights reserved. MICROTEC RESEARCH's source code is an unpublished
* work and the use of a copyright notice does not imply otherwise.
* This source code contains confidential, trade secret material of
* MICROTEC RESEARCH. Any attempt or participation in deciphering,
* decoding, reverse engineering or in any way altering the source code
* is strictly prohibited, unless the prior written consent of
* MICROTEC RESEARCH is obtained.
*
*
* Module Name: slip_str.h
*
* Identification: @(#) 1.1 slip_str.h
*
* Date: 9/16/94 17:54:04
*
****************************************************************************
*/
/*
;* Confidential and Proprietary.
;* Copyrighted as an unpublished work.
;* (c) Copyright 1987-1994 Legent Corporation.
;* All rights reserved.
;*
;* RESTRICTED RIGHTS
;*
;* These programs contain trade secrets and are supplied under a license
;* agreement. They may be used, disclosed, and/or copied only as
;* permitted under such license agreement. Any copy must contain the
;* above copyright notice and this restricted rights notice. Use,
;* copying, and/or disclosure of the programs is strictly prohibited
;* unless otherwise provided in the license agreement.
;*
* Copyrighted as an unpublished work.
* (c) Copyright 1987-1993 Lachman Technology, Incorporated
* All rights reserved.
*
* RESTRICTED RIGHTS
*
* These programs are supplied under a license. They may be used,
* disclosed, and/or copied only as permitted under such license
* agreement. Any copy must contain the above copyright notice and
* this restricted rights notice. Use, copying, and/or disclosure
* of the programs is strictly prohibited unless otherwise provided
* in the license agreement.
*/
#if !defined(SLIP_STR_H)
#define SLIP_STR_H
struct slip_state {
mblk_t FAR *ss_mp; /* where we gather incoming octets */
mblk_t FAR *ss_save; /* pointer to where this struct lives */
int ss_flags; /* state information and such */
int ss_mtu; /* mtu for this interface */
mblk_t FAR *ss_ifstats_mp;
struct ifstats FAR * ss_ifstats; /* if stat structure */
#if defined(TCPCOMPRESSION)
mblk_t FAR *ss_comp_mp; /* mblk to hold ss_comp */
struct incompress FAR *ss_comp; /* tcp compression struct */
#endif
char ss_ifname[IFNAMSIZ]; /* the name of this if. */
};
typedef struct slip_state slip_state_t;
/*
* macros for state flags
*/
#define SS_ERROR 0x00000001 /* when this is set an error in */
/* framing has occured, which */
/* implies that we eat octets */
/* until we receive a frame_end */
#define SS_ESCAPE 0x00000002 /* when set it implies the next */
/* octet should be escaped */
#define SS_COMPRESS 0x00000004 /* set when we are compressing */
#define SS_AUTOCOMPRESS 0x00000008 /* set when we will accept */
/* compressed packets */
#define SS_NOICMP 0x00000010 /* if set we will not send out */
/* any icmp packets */
#define SS_BOUND 0x00000020 /* interface is bound */
/* SS_INIT_FLAGS is used to initialize the ss_flags field in slip_state_t */
#define SS_INIT_FLAGS 0
#define MAXSLIP 296
#define MINSLIP 3 /* minimum packet size for slip. if we get something */
/* smaller, we just drop it silently */
#define SLIP_MODID 13
#define IP_SAP 0x800 /* SAP for IP protocol */
/* ioctl's */
#define SLIPIOCTL ('P'<<8)
#define S_MTU (SLIPIOCTL | 0xff)
#define S_COMPRESSON (SLIPIOCTL | 0xfe)
#define S_COMPRESSOFF (SLIPIOCTL | 0xfd)
#define S_COMPRESSAON (SLIPIOCTL | 0xfc)
#define S_COMPRESSAOFF (SLIPIOCTL | 0xfb)
#define S_NOICMP (SLIPIOCTL | 0xfa)
#define S_ICMP (SLIPIOCTL | 0xf9)
#define S_SETSPEED (SLIPIOCTL | 0xf8)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -