1*49284Sbostic /*- 2*49284Sbostic * Copyright (c) 1991 The Regents of the University of California. 3*49284Sbostic * All rights reserved. 4*49284Sbostic * 5*49284Sbostic * %sccs.include.redist.c% 6*49284Sbostic * 7*49284Sbostic * @(#)if_slvar.h 7.7 (Berkeley) 05/07/91 8*49284Sbostic * 9*49284Sbostic * $Header: if_slvar.h,v 1.3 89/05/31 02:25:18 van Exp $ 10*49284Sbostic */ 1138367Skarels 1238367Skarels /* 1338368Skarels * Definitions for SLIP interface data structures 1438368Skarels * 15*49284Sbostic * (This exists so programs like slstats can get at the definition 1638368Skarels * of sl_softc.) 1738367Skarels */ 1838367Skarels struct sl_softc { 1938367Skarels struct ifnet sc_if; /* network-visible interface */ 2038368Skarels struct ifqueue sc_fastq; /* interactive output queue */ 2138367Skarels struct tty *sc_ttyp; /* pointer to tty structure */ 2238368Skarels u_char *sc_mp; /* pointer to next available buf char */ 2338368Skarels u_char *sc_ep; /* pointer to last available buf char */ 2438368Skarels u_char *sc_buf; /* input buffer */ 2538368Skarels u_int sc_flags; /* see below */ 2638368Skarels u_int sc_escape; /* =1 if last char input was FRAME_ESCAPE */ 2738368Skarels u_int sc_bytessent; 2838368Skarels u_int sc_bytesrcvd; 2938368Skarels long sc_lasttime; /* last time a char arrived */ 3038368Skarels long sc_starttime; /* last time a char arrived */ 3138368Skarels long sc_abortcount; /* number of abort esacpe chars */ 3238378Skarels #ifdef INET /* XXX */ 3338368Skarels struct slcompress sc_comp; /* tcp compression data */ 3438378Skarels #endif 3538367Skarels }; 3638367Skarels 3739947Ssam /* visible flags */ 3838367Skarels #define SC_COMPRESS 0x0002 /* compress TCP traffic */ 3938367Skarels #define SC_NOICMP 0x0004 /* supress ICMP traffic */ 4039947Ssam #define SC_AUTOCOMP 0x0008 /* auto-enable TCP compression */ 4139947Ssam /* internal flags (should be separate) */ 4239947Ssam #define SC_ABORT 0x10000 /* have been sent an abort request */ 4338367Skarels 4438367Skarels /* this stuff doesn't belong here... */ 4538367Skarels #define SLIOCGFLAGS _IOR('t', 90, int) /* get configuration flags */ 4638367Skarels #define SLIOCSFLAGS _IOW('t', 89, int) /* set configuration flags */ 4746548Skarels #define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */ 48