4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 1992 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
31 #pragma ident "%Z%%M% %I% %E% SMI"
33 #define OLDPACKSIZE 128
36 #define MINPACKSIZE 32
37 #define MAXPACKSIZE 4096
54 short p_state
; /* line state */
55 short p_bits
; /* mask for getepack */
56 short p_rsize
; /* input packet size */
57 short p_xsize
; /* output packet size */
58 struct header p_ihbuf
; /* input header */
59 struct header p_ohbuf
; /* output header */
62 char p_xcount
; /* # active output buffers */
65 char p_lpsize
; /* log(psize/32) */
69 char p_rwindow
; /* window size */
71 char p_msg
; /* control msg */
72 char p_rmsg
; /* repeated control msg */
73 char p_ps
,p_pr
; /* last packet sent, recv'd */
75 char p_nxtps
; /* next output seq number */
76 char p_imap
; /* bit map of input buffers */
77 char p_pscopy
; /* newest output packet */
78 char *p_ob
[8]; /* output buffers */
79 char *p_ib
[8]; /* input buffers */
80 char p_os
[8]; /* output buffer status */
81 char p_is
[8]; /* input buffer status */
82 short p_osum
[8]; /* output checksums */
83 short p_isum
[8]; /* input checksums */
89 #define ISCNTL(a) ((a & 0300)==0)
91 #define MIN(a,b) ((a<b)? a:b)
100 extern struct pack
*Pk
;
117 #define BADFRAME 020000
135 /* #define SRJ 3 */ /* not supported */
142 /* #define M_SRJ 010 */ /* not used */