149284Sbostic /*- 249284Sbostic * Copyright (c) 1991 The Regents of the University of California. 349284Sbostic * All rights reserved. 449284Sbostic * 549284Sbostic * %sccs.include.redist.c% 649284Sbostic * 7*52203Skarels * @(#)if_slvar.h 7.9 (Berkeley) 01/14/92 849284Sbostic * 949284Sbostic * $Header: if_slvar.h,v 1.3 89/05/31 02:25:18 van Exp $ 1049284Sbostic */ 1138367Skarels 1238367Skarels /* 1338368Skarels * Definitions for SLIP interface data structures 1438368Skarels * 1549284Sbostic * (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 long sc_lasttime; /* last time a char arrived */ 2838368Skarels long sc_abortcount; /* number of abort esacpe chars */ 29*52203Skarels long sc_starttime; /* time of first abort in window */ 3038378Skarels #ifdef INET /* XXX */ 3138368Skarels struct slcompress sc_comp; /* tcp compression data */ 3238378Skarels #endif 3338367Skarels }; 3438367Skarels 3539947Ssam /* visible flags */ 36*52203Skarels #define SC_COMPRESS IFF_LINK0 /* compress TCP traffic */ 37*52203Skarels #define SC_NOICMP IFF_LINK1 /* supress ICMP traffic */ 38*52203Skarels #define SC_AUTOCOMP IFF_LINK2 /* auto-enable TCP compression */ 3938367Skarels 4038367Skarels /* this stuff doesn't belong here... */ 4146548Skarels #define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */ 42