async.h (9991562d362e7b9b7fe150c04a0f471cfa78de17) | async.h (2764b86afdc99a30f4b1a4da2c04db8aa7aa785d) |
---|---|
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: async.h,v 1.2.4.5 1998/02/08 11:04:42 brian Exp $ | 26 * $Id: async.h,v 1.2.4.6 1998/02/18 19:35:09 brian Exp $ |
27 */ 28 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 | 27 */ 28 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 |
|
44extern void async_Init(struct async *); 45extern void async_SetLinkParams(struct async *, struct lcp *); 46extern void async_Output(int, struct mbuf *, int, struct physical *); 47extern void async_Input(struct bundle *, u_char *, int, struct physical *); | 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 *); |