home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / slip / cslip-2.6 / sunos3 / net / if_slvar.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-15  |  2.1 KB  |  56 lines

  1. /*
  2.  * Definitions for SLIP interface data structures
  3.  *
  4.  * (this exists so programs like slstats can get at the definition
  5.  *  of sl_softc.)
  6.  *
  7.  * @(#) $Header: if_slvar.h,v 1.8 92/06/16 03:14:00 leres Exp $ (LBL)
  8.  *
  9.  * Copyright (c) 1989, 1990, 1992 Regents of the University of California.
  10.  * All rights reserved.
  11.  *
  12.  * Redistribution and use in source and binary forms are permitted
  13.  * provided that the above copyright notice and this paragraph are
  14.  * duplicated in all such forms and that any documentation,
  15.  * advertising materials, and other materials related to such
  16.  * distribution and use acknowledge that the software was developed
  17.  * by the University of California, Berkeley.  The name of the
  18.  * University may not be used to endorse or promote products derived
  19.  * from this software without specific prior written permission.
  20.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  21.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  22.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  23.  *
  24.  *    Van Jacobson (van@ee.lbl.gov), Dec 31, 1989:
  25.  *    - Initial distribution.
  26.  */
  27. struct sl_softc {
  28.     struct ifnet sc_if;    /* network-visible interface */
  29.     struct ifqueue sc_fastq; /* interactive output queue */
  30.     struct tty *sc_ttyp;    /* pointer to tty structure */
  31.     u_char *sc_mp;        /* pointer to next available buf char */
  32.     u_char *sc_ep;        /* pointer to last available buf char */
  33.     u_char *sc_buf;        /* input buffer */
  34.     u_int sc_escape;    /* =1 if last char input was FRAME_ESCAPE */
  35.     u_int sc_bytessent;
  36.     u_int sc_bytesrcvd;
  37.     struct slcompress sc_comp; /* tcp compression data */
  38.     caddr_t sc_bpf;        /* bpf magic cookie */
  39. };
  40.  
  41. /*
  42.  * There are three per-line options kept in the device specific part of
  43.  * the interface flags word:  IFF_LINK0 enables compression; IFF_LINK1
  44.  * enables compression if a compressed packet is received from the
  45.  * other side; IFF_LINK2 will drop (not send) ICMP packets.
  46.  */
  47. #ifndef IFF_LINK0
  48. /*
  49.  * This system doesn't have defines for device specific interface flags,
  50.  * Define them.
  51.  */
  52. #define IFF_LINK0    0x8000
  53. #define IFF_LINK1    0x4000
  54. #define IFF_LINK2    0x2000
  55. #endif
  56.