MULTICAST is now standard
[unix-history] / usr / src / sys / net / if_slvar.h
index 6bf9e28..45f3adb 100644 (file)
@@ -1,12 +1,19 @@
-/*     @(#)if_slvar.h  7.5 (Berkeley) %G% */
+/*-
+ * Copyright (c) 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)if_slvar.h  7.9 (Berkeley) %G%
+ *
+ * $Header: if_slvar.h,v 1.3 89/05/31 02:25:18 van Exp $
+ */
 
 /*
  * Definitions for SLIP interface data structures
  * 
 
 /*
  * Definitions for SLIP interface data structures
  * 
- * (this exists so programs like slstats can get at the definition
+ * (This exists so programs like slstats can get at the definition
  *  of sl_softc.)
  *  of sl_softc.)
- *
- * $Header: if_slvar.h,v 1.3 89/05/31 02:25:18 van Exp $
  */
 struct sl_softc {
        struct  ifnet sc_if;            /* network-visible interface */
  */
 struct sl_softc {
        struct  ifnet sc_if;            /* network-visible interface */
@@ -17,24 +24,18 @@ struct sl_softc {
        u_char  *sc_buf;                /* input buffer */
        u_int   sc_flags;               /* see below */
        u_int   sc_escape;      /* =1 if last char input was FRAME_ESCAPE */
        u_char  *sc_buf;                /* input buffer */
        u_int   sc_flags;               /* see below */
        u_int   sc_escape;      /* =1 if last char input was FRAME_ESCAPE */
-       u_int   sc_bytessent;
-       u_int   sc_bytesrcvd;
        long    sc_lasttime;            /* last time a char arrived */
        long    sc_lasttime;            /* last time a char arrived */
-       long    sc_starttime;           /* last time a char arrived */
        long    sc_abortcount;          /* number of abort esacpe chars */
        long    sc_abortcount;          /* number of abort esacpe chars */
+       long    sc_starttime;           /* time of first abort in window */
 #ifdef INET                            /* XXX */
        struct  slcompress sc_comp;     /* tcp compression data */
 #endif
 };
 
 /* visible flags */
 #ifdef INET                            /* XXX */
        struct  slcompress sc_comp;     /* tcp compression data */
 #endif
 };
 
 /* visible flags */
-#define        SC_COMPRESS     0x0002          /* compress TCP traffic */
-#define        SC_NOICMP       0x0004          /* supress ICMP traffic */
-#define        SC_AUTOCOMP     0x0008          /* auto-enable TCP compression */
-/* internal flags (should be separate) */
-#define        SC_ABORT        0x10000         /* have been sent an abort request */
+#define        SC_COMPRESS     IFF_LINK0       /* compress TCP traffic */
+#define        SC_NOICMP       IFF_LINK1       /* supress ICMP traffic */
+#define        SC_AUTOCOMP     IFF_LINK2       /* auto-enable TCP compression */
 
 /* this stuff doesn't belong here... */
 
 /* this stuff doesn't belong here... */
-#define        SLIOCGFLAGS     _IOR('t', 90, int)      /* get configuration flags */
-#define        SLIOCSFLAGS     _IOW('t', 89, int)      /* set configuration flags */
-#define        SLIOCGUNIT      _IOW('t', 88, int)      /* get slip unit number */
+#define        SLIOCGUNIT      _IOR('t', 88, int)      /* get slip unit number */