1
2
3
4 #ifndef _NET_IF_STRIPVAR_H_
5 #define _NET_IF_STRIPVAR_H_
6
7
8
9
10
11
12 struct st_softc {
13 struct ifnet sc_if;
14 int sc_unit;
15 struct ifqueue sc_fastq;
16 struct tty *sc_ttyp;
17 u_char *sc_mp;
18 u_char *sc_ep;
19 u_char *sc_buf;
20 u_char *sc_rxbuf;
21 u_char *sc_txbuf;
22 u_int sc_flags;
23 long sc_oqlen;
24 long sc_otimeout;
25 #if defined(__NetBSD__) || defined(__OpenBSD__)
26 int sc_oldbufsize;
27 int sc_oldbufquot;
28 #endif
29 #ifdef INET
30 struct slcompress sc_comp;
31 #endif
32
33 int sc_state;
34 #define ST_ALIVE 0x0
35 #define ST_PROBE_SENT 0x1
36 #define ST_DEAD 0x2
37
38 long sc_statetimo;
39
40 caddr_t sc_bpf;
41 struct timeout sc_timo;
42
43 struct timeval sc_lastpacket;
44 };
45
46
47
48 #define SC_ERROR 0x0001
49
50 #define SC_TIMEOUT 0x00000400
51
52
53 #define SC_COMPRESS IFF_LINK0
54 #define SC_NOICMP IFF_LINK1
55 #define SC_AUTOCOMP IFF_LINK2
56
57 #ifdef _KERNEL
58 void stripattach(int n);
59 void stripclose(struct tty *);
60 void stripinput(int, struct tty *);
61 int stripioctl(struct ifnet *, u_long, caddr_t);
62 int stripopen(dev_t, struct tty *);
63 int stripoutput(struct ifnet *,
64 struct mbuf *, struct sockaddr *, struct rtentry *);
65 void stripstart(struct tty *);
66 int striptioctl(struct tty *, u_long, caddr_t, int);
67 #endif
68 #endif