fix copyright, this was done from scratch
[unix-history] / usr / src / sys / net / if_slvar.h
CommitLineData
6cfe221b
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
0e97cde8 7 * @(#)if_slvar.h 7.8 (Berkeley) %G%
6cfe221b
KB
8 *
9 * $Header: if_slvar.h,v 1.3 89/05/31 02:25:18 van Exp $
10 */
404373be
MK
11
12/*
9de3e30d
MK
13 * Definitions for SLIP interface data structures
14 *
6cfe221b 15 * (This exists so programs like slstats can get at the definition
9de3e30d 16 * of sl_softc.)
404373be
MK
17 */
18struct sl_softc {
19 struct ifnet sc_if; /* network-visible interface */
9de3e30d 20 struct ifqueue sc_fastq; /* interactive output queue */
404373be 21 struct tty *sc_ttyp; /* pointer to tty structure */
9de3e30d
MK
22 u_char *sc_mp; /* pointer to next available buf char */
23 u_char *sc_ep; /* pointer to last available buf char */
24 u_char *sc_buf; /* input buffer */
25 u_int sc_flags; /* see below */
26 u_int sc_escape; /* =1 if last char input was FRAME_ESCAPE */
27 u_int sc_bytessent;
28 u_int sc_bytesrcvd;
29 long sc_lasttime; /* last time a char arrived */
30 long sc_starttime; /* last time a char arrived */
31 long sc_abortcount; /* number of abort esacpe chars */
270f7144 32#ifdef INET /* XXX */
9de3e30d 33 struct slcompress sc_comp; /* tcp compression data */
270f7144 34#endif
404373be
MK
35};
36
8985215b 37/* visible flags */
0e97cde8
WN
38#define SC_COMPRESS IFF_LLC0 /* compress TCP traffic */
39#define SC_NOICMP IFF_LLC1 /* supress ICMP traffic */
40#define SC_AUTOCOMP IFF_LLC2 /* auto-enable TCP compression */
8985215b
SL
41/* internal flags (should be separate) */
42#define SC_ABORT 0x10000 /* have been sent an abort request */
404373be
MK
43
44/* this stuff doesn't belong here... */
45#define SLIOCGFLAGS _IOR('t', 90, int) /* get configuration flags */
46#define SLIOCSFLAGS _IOW('t', 89, int) /* set configuration flags */
06de6ce5 47#define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */