xref: /csrg-svn/sys/net/if_slvar.h (revision 38367)
1 /*	if_slvar.h	7.1	89/06/29	*/
2 
3 /*
4  * Definitions for SLIP "interface" data structure.
5  *
6  * (This exists so that programs can interpret the kernel data structures.)
7  */
8 struct sl_softc {
9 	struct	ifnet sc_if;		/* network-visible interface */
10 	short	sc_flags;		/* see below */
11 	short	sc_ilen;		/* length of input-packet-so-far */
12 	struct	tty *sc_ttyp;		/* pointer to tty structure */
13 	char	*sc_mp;			/* pointer to next available buf char */
14 	char	*sc_buf;		/* input buffer */
15 	long	sc_lasttime;	/* last time a char arrived - seconds */
16 	long	sc_starttime;	/* last time a char arrived - seconds */
17 	long	sc_abortcount;	/* number of abort esacpe chars */
18 #ifdef INET
19 	struct	slcompress sc_comp;	/* tcp compression state */
20 #endif
21 };
22 
23 /* flags */
24 #define	SC_ESCAPED	0x0001		/* saw a FRAME_ESCAPE */
25 #define	SC_COMPRESS	0x0002		/* compress TCP traffic */
26 #define	SC_NOICMP	0x0004		/* supress ICMP traffic */
27 #define	SC_ABORT	0x0008		/* have been sent an abort request */
28 #define	SC_OACTIVE	0x0010		/* output is active */
29 
30 /* this stuff doesn't belong here... */
31 #define	SLIOCGFLAGS	_IOR('t', 90, int)	/* get configuration flags */
32 #define	SLIOCSFLAGS	_IOW('t', 89, int)	/* set configuration flags */
33