* Copyright (c) University of British Columbia, 1984
* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* the Laboratory for Computation Vision and the Computer Science Department
* of the University of British Columbia.
* %sccs.include.redist.c%
* @(#)hd_var.h 7.2 (Berkeley) %G%
struct hdcb
*hd_next
; /* pointer to next hdlc control block */
char hd_state
; /* link state */
char hd_vs
; /* send state variable */
char hd_vr
; /* receive state variable */
char hd_lastrxnr
; /* last received N(R) */
char hd_lasttxnr
; /* last transmitted N(R) */
#define TIMER_RECOVERY_CONDITION 0x01
#define REJ_CONDITION 0x02
#define REMOTE_RNR_CONDITION 0X04
struct mbuf
*hd_retxq
[MODULUS
];
#define SET_TIMER(hdp) hdp->hd_timer = hd_t1
#define KILL_TIMER(hdp) hdp->hd_timer = 0
char hd_dontcopy
; /* if-driver doesn't free I-frames */
struct ifnet
*hd_ifp
; /* device's network visible interface */
struct x25config
*hd_xcp
; /* copy of &hdp->hd_if->if_addr */
long hd_window_condition
;
struct hdcb
*hdcbhead
; /* head of linked list of hdcb's */
struct Frmr_frame hd_frmr
; /* rejected frame diagnostic info */
struct ifqueue hdintrq
; /* hdlc packet input queue */
int hd_t1
; /* timer T1 value */
int hd_t3
; /* RR send timer */
int hd_n2
; /* frame retransmission limit */