update from van: add "auto enable" of compression (if auto
[unix-history] / usr / src / sys / net / if_slvar.h
CommitLineData
270f7144 1/* @(#)if_slvar.h 7.3 (Berkeley) %G% */
404373be
MK
2
3/*
9de3e30d
MK
4 * Definitions for SLIP interface data structures
5 *
6 * (this exists so programs like slstats can get at the definition
7 * of sl_softc.)
404373be 8 *
9de3e30d 9 * $Header: if_slvar.h,v 1.3 89/05/31 02:25:18 van Exp $
404373be
MK
10 */
11struct sl_softc {
12 struct ifnet sc_if; /* network-visible interface */
9de3e30d 13 struct ifqueue sc_fastq; /* interactive output queue */
404373be 14 struct tty *sc_ttyp; /* pointer to tty structure */
9de3e30d
MK
15 u_char *sc_mp; /* pointer to next available buf char */
16 u_char *sc_ep; /* pointer to last available buf char */
17 u_char *sc_buf; /* input buffer */
18 u_int sc_flags; /* see below */
19 u_int sc_escape; /* =1 if last char input was FRAME_ESCAPE */
20 u_int sc_bytessent;
21 u_int sc_bytesrcvd;
22 long sc_lasttime; /* last time a char arrived */
23 long sc_starttime; /* last time a char arrived */
24 long sc_abortcount; /* number of abort esacpe chars */
270f7144 25#ifdef INET /* XXX */
9de3e30d 26 struct slcompress sc_comp; /* tcp compression data */
270f7144 27#endif
404373be
MK
28};
29
30/* flags */
404373be
MK
31#define SC_COMPRESS 0x0002 /* compress TCP traffic */
32#define SC_NOICMP 0x0004 /* supress ICMP traffic */
33#define SC_ABORT 0x0008 /* have been sent an abort request */
404373be
MK
34
35/* this stuff doesn't belong here... */
36#define SLIOCGFLAGS _IOR('t', 90, int) /* get configuration flags */
37#define SLIOCSFLAGS _IOW('t', 89, int) /* set configuration flags */
270f7144 38#define SLIOGUNIT _IOW('t', 88, int) /* get slip unit number */