2007-07-15 01:02:36 +04:00
|
|
|
/* $NetBSD: if_stripvar.h,v 1.19 2007/07/14 21:02:42 ad Exp $ */
|
1998-02-09 20:43:44 +03:00
|
|
|
|
|
|
|
#ifndef _NET_IF_STRIPVAR_H_
|
|
|
|
#define _NET_IF_STRIPVAR_H_
|
1996-05-19 20:34:36 +04:00
|
|
|
|
|
|
|
/*
|
1998-02-09 20:43:44 +03:00
|
|
|
* Definitions for STRIP interface data structures
|
1996-05-19 20:34:36 +04:00
|
|
|
*/
|
1997-11-18 02:35:28 +03:00
|
|
|
struct strip_softc {
|
1996-05-19 20:34:36 +04:00
|
|
|
struct ifnet sc_if; /* network-visible interface */
|
1996-05-20 02:09:36 +04:00
|
|
|
int sc_unit; /* XXX unit number */
|
1996-05-19 20:34:36 +04:00
|
|
|
struct ifqueue sc_fastq; /* interactive output queue */
|
2001-01-12 01:31:49 +03:00
|
|
|
struct ifqueue sc_inq; /* input queue */
|
1996-05-19 20:34:36 +04:00
|
|
|
struct tty *sc_ttyp; /* pointer to tty structure */
|
2000-03-23 10:01:25 +03:00
|
|
|
struct callout sc_timo_ch; /* timeout callout */
|
1996-05-19 20:34:36 +04:00
|
|
|
u_char *sc_mp; /* pointer to next available buf char */
|
|
|
|
u_char *sc_ep; /* pointer to last available buf char */
|
2001-01-12 01:23:11 +03:00
|
|
|
u_char *sc_pktstart; /* pointer to beginning of packet */
|
|
|
|
struct mbuf *sc_mbuf; /* input buffer */
|
1996-05-19 20:34:36 +04:00
|
|
|
u_char *sc_rxbuf; /* input destuffing buffer */
|
|
|
|
u_char *sc_txbuf; /* output stuffing buffer */
|
|
|
|
u_int sc_flags; /* see below */
|
|
|
|
long sc_oqlen; /* previous output queue size */
|
|
|
|
long sc_otimeout; /* number of times output's stalled */
|
2001-01-15 19:33:30 +03:00
|
|
|
void *sc_si; /* softintr handle */
|
1997-11-18 02:35:28 +03:00
|
|
|
#ifdef __NetBSD__
|
1996-05-19 20:34:36 +04:00
|
|
|
int sc_oldbufsize; /* previous output buffer size */
|
|
|
|
int sc_oldbufquot; /* previous output buffer quoting */
|
|
|
|
#endif
|
|
|
|
#ifdef INET /* XXX */
|
|
|
|
struct slcompress sc_comp; /* tcp compression data */
|
|
|
|
#endif
|
1996-08-02 06:53:39 +04:00
|
|
|
|
|
|
|
int sc_state; /* Radio reset state-machine */
|
|
|
|
#define ST_ALIVE 0x0 /* answered probe */
|
|
|
|
#define ST_PROBE_SENT 0x1 /* probe sent, answer pending */
|
|
|
|
#define ST_DEAD 0x2 /* no answer to probe; do reset */
|
|
|
|
|
|
|
|
long sc_statetimo; /* When (secs) current state ends */
|
2001-06-14 09:44:23 +04:00
|
|
|
|
2006-06-08 02:33:33 +04:00
|
|
|
struct bintime sc_lastpacket; /* for watchdog */
|
2004-12-05 08:43:04 +03:00
|
|
|
LIST_ENTRY(strip_softc) sc_iflist;
|
1996-05-19 20:34:36 +04:00
|
|
|
};
|
|
|
|
|
1996-08-02 06:53:39 +04:00
|
|
|
|
|
|
|
/* Internal flags */
|
|
|
|
#define SC_ERROR 0x0001 /* Incurred error reading current pkt*/
|
|
|
|
|
|
|
|
#define SC_TIMEOUT 0x00000400 /* timeout is currently pending */
|
1996-05-19 20:34:36 +04:00
|
|
|
|
|
|
|
/* visible flags */
|
|
|
|
#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 */
|
|
|
|
|
|
|
|
#ifdef _KERNEL
|
2005-12-12 02:05:24 +03:00
|
|
|
void stripattach(void);
|
1996-05-19 20:34:36 +04:00
|
|
|
#endif /* _KERNEL */
|
1998-02-09 20:43:44 +03:00
|
|
|
|
2005-12-11 02:21:38 +03:00
|
|
|
#endif /* !_NET_IF_STRIPVAR_H_ */
|