async.h revision 50479
1204431Sraj/*-
2204431Sraj * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3204431Sraj * All rights reserved.
4204431Sraj *
5204431Sraj * Redistribution and use in source and binary forms, with or without
6204431Sraj * modification, are permitted provided that the following conditions
7204431Sraj * are met:
8204431Sraj * 1. Redistributions of source code must retain the above copyright
9204431Sraj *    notice, this list of conditions and the following disclaimer.
10204431Sraj * 2. Redistributions in binary form must reproduce the above copyright
11204431Sraj *    notice, this list of conditions and the following disclaimer in the
12204431Sraj *    documentation and/or other materials provided with the distribution.
13204431Sraj *
14204431Sraj * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15204431Sraj * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16204431Sraj * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17204431Sraj * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18204431Sraj * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19204431Sraj * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20204433Sraj * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21204433Sraj * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22204433Sraj * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23204431Sraj * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24266130Sian * SUCH DAMAGE.
25204431Sraj *
26238742Simp * $FreeBSD: head/usr.sbin/ppp/async.h 50479 1999-08-28 01:35:59Z peter $
27238742Simp */
28238742Simp
29204431Sraj#define HDLCSIZE	(MAX_MRU*2+6)
30238742Simp
31238742Simpstruct async {
32204431Sraj  int mode;
33204431Sraj  int length;
34238742Simp  u_char hbuff[HDLCSIZE];	/* recv buffer */
35238742Simp  u_char xbuff[HDLCSIZE];	/* xmit buffer */
36238742Simp  u_int32_t my_accmap;
37238742Simp  u_int32_t his_accmap;
38238742Simp
39238742Simp  struct {
40238742Simp    u_char EscMap[33];
41238742Simp  } cfg;
42238742Simp};
43238742Simp
44238742Simpstruct lcp;
45238742Simpstruct mbuf;
46238742Simpstruct physical;
47238742Simpstruct bundle;
48238742Simp
49238742Simpextern void async_Init(struct async *);
50238742Simpextern void async_SetLinkParams(struct async *, struct lcp *);
51238742Simp
52238742Simpextern struct layer asynclayer;
53238742Simp