|
|
1.1 root 1: /* @(#)if_slvar.h 7.4 (Berkeley) 1/20/90 */
2:
3: /*
4: * Definitions for SLIP interface data structures
5: *
6: * (this exists so programs like slstats can get at the definition
7: * of sl_softc.)
8: *
9: * $Header: if_slvar.h,v 1.3 89/05/31 02:25:18 van Exp $
10: */
11: struct sl_softc {
12: struct ifnet sc_if; /* network-visible interface */
13: struct ifqueue sc_fastq; /* interactive output queue */
14: struct tty *sc_ttyp; /* pointer to tty structure */
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 */
25: #ifdef INET /* XXX */
26: struct slcompress sc_comp; /* tcp compression data */
27: #endif
28: };
29:
30: /* visible flags */
31: #define SC_COMPRESS 0x0002 /* compress TCP traffic */
32: #define SC_NOICMP 0x0004 /* supress ICMP traffic */
33: #define SC_AUTOCOMP 0x0008 /* auto-enable TCP compression */
34: /* internal flags (should be separate) */
35: #define SC_ABORT 0x10000 /* have been sent an abort request */
36:
37: /* this stuff doesn't belong here... */
38: #define SLIOCGFLAGS _IOR('t', 90, int) /* get configuration flags */
39: #define SLIOCSFLAGS _IOW('t', 89, int) /* set configuration flags */
40: #define SLIOGUNIT _IOW('t', 88, int) /* get slip unit number */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.