Deleted Added
full compact
async.h (31921) async.h (36285)
1/*-
2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id$
26 * $Id: async.h,v 1.2.4.7 1998/04/07 00:53:17 brian Exp $
27 */
28
27 */
28
29extern void AsyncInit(void);
30extern void SetLinkParams(struct lcpstate *);
31extern void AsyncOutput(int, struct mbuf *, int);
32extern void AsyncInput(u_char *, int);
29#define HDLCSIZE (MAX_MRU*2+6)
30
31struct async {
32 int mode;
33 int length;
34 u_char hbuff[HDLCSIZE]; /* recv buffer */
35 u_char xbuff[HDLCSIZE]; /* xmit buffer */
36 u_long my_accmap;
37 u_long his_accmap;
38
39 struct {
40 u_char EscMap[33];
41 } cfg;
42};
43
44struct lcp;
45struct mbuf;
46struct physical;
47struct bundle;
48
49extern void async_Init(struct async *);
50extern void async_SetLinkParams(struct async *, struct lcp *);
51extern void async_Output(int, struct mbuf *, int, struct physical *);
52extern void async_Input(struct bundle *, u_char *, int, struct physical *);