131921Sbrian/*-
2330449Seadler * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3330449Seadler *
431921Sbrian * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
531921Sbrian * All rights reserved.
631921Sbrian *
731921Sbrian * Redistribution and use in source and binary forms, with or without
831921Sbrian * modification, are permitted provided that the following conditions
931921Sbrian * are met:
1031921Sbrian * 1. Redistributions of source code must retain the above copyright
1131921Sbrian *    notice, this list of conditions and the following disclaimer.
1231921Sbrian * 2. Redistributions in binary form must reproduce the above copyright
1331921Sbrian *    notice, this list of conditions and the following disclaimer in the
1431921Sbrian *    documentation and/or other materials provided with the distribution.
1531921Sbrian *
1631921Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1731921Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1831921Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1931921Sbrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2031921Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2131921Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2231921Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2331921Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2431921Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2531921Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2631921Sbrian * SUCH DAMAGE.
2731921Sbrian *
2850479Speter * $FreeBSD: stable/11/usr.sbin/ppp/async.h 330449 2018-03-05 07:26:05Z eadler $
2930715Sbrian */
3030715Sbrian
3136285Sbrian#define HDLCSIZE	(MAX_MRU*2+6)
3236285Sbrian
3336285Sbrianstruct async {
3436285Sbrian  int mode;
3536285Sbrian  int length;
3636285Sbrian  u_char hbuff[HDLCSIZE];	/* recv buffer */
3736285Sbrian  u_char xbuff[HDLCSIZE];	/* xmit buffer */
3837189Sbrian  u_int32_t my_accmap;
3937189Sbrian  u_int32_t his_accmap;
4036285Sbrian
4136285Sbrian  struct {
4236285Sbrian    u_char EscMap[33];
4336285Sbrian  } cfg;
4436285Sbrian};
4536285Sbrian
4636285Sbrianstruct lcp;
4736285Sbrianstruct mbuf;
4836285Sbrianstruct physical;
4936285Sbrianstruct bundle;
5036285Sbrian
5136285Sbrianextern void async_Init(struct async *);
5291623Sbrianextern void async_Setup(struct async *);
5393418Sbrianextern void async_SetLinkParams(struct async *, u_int32_t, u_int32_t);
5446686Sbrian
5546686Sbrianextern struct layer asynclayer;
56