/* SPDX-License-Identifier: GPL-2.0 */ /* * slip.h Define the SLIP device driver interface and constants. * * NOTE: THIS FILE WILL BE MOVED TO THE LINUX INCLUDE DIRECTORY * AS SOON AS POSSIBLE! * * Version: @(#)slip.h 1.2.0 03/28/93 * * Fixes: * Alan Cox : Added slip mtu field. * Matt Dillon : Printable slip (borrowed from net2e) * Alan Cox : Added SL_SLIP_LOTS * Dmitry Gorodchanin : A lot of changes in the 'struct slip' * Dmitry Gorodchanin : Added CSLIP statistics. * Stanislav Voronyi : Make line checking as created by * Igor Chechik, RELCOM Corp. * Craig Schlenter : Fixed #define bug that caused * CSLIP telnets to hang in 1.3.61-6 * * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
*/ #ifndef _LINUX_SLIP_H #define _LINUX_SLIP_H
/* SLIP configuration. */ #define SL_NRUNIT 256 /* MAX number of SLIP channels; This can be overridden with
insmod -oslip_maxdev=nnn */ #define SL_MTU 296 /* 296; I am used to 600- FvK */
/* some arch define END as assembly function ending, just undef it */ #undef END /* SLIP protocol characters. */ #define END 0300 /* indicates end of frame */ #define ESC 0333 /* indicates byte stuffing */ #define ESC_END 0334 /* ESC ESC_END means END 'data' */ #define ESC_ESC 0335 /* ESC ESC_ESC means ESC 'data' */
/* These are pointers to the malloc()ed frame buffers. */ unsignedchar *rbuff; /* receiver buffer */ int rcount; /* received chars counter */ unsignedchar *xbuff; /* transmitter buffer */ unsignedchar *xhead; /* pointer to next byte to XMIT */ int xleft; /* bytes left in XMIT queue */ int mtu; /* Our mtu (to spot changes!) */ int buffsize; /* Max buffers sizes */
#ifdef CONFIG_SLIP_MODE_SLIP6 int xdata, xbits; /* 6 bit slip controls */ #endif
unsignedlong flags; /* Flag values/ mode etc */ #define SLF_INUSE 0 /* Channel in use */ #define SLF_ESCAPE 1 /* ESC received */ #define SLF_ERROR 2 /* Parity, etc. error */ #define SLF_KEEPTEST 3 /* Keepalive test flag */ #define SLF_OUTWAIT 4 /* is outpacket was flag */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.