hdlc.h (78189) | hdlc.h (131327) |
---|---|
1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4 * Internet Initiative Japan, Inc (IIJ) 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/usr.sbin/ppp/hdlc.h 78189 2001-06-13 21:52:19Z brian $ | 28 * $FreeBSD: head/usr.sbin/ppp/hdlc.h 131327 2004-06-30 12:24:56Z brian $ |
29 */ 30 31/* 32 * Definition for Async HDLC 33 */ 34#define HDLC_SYN 0x7e /* SYNC character */ 35#define HDLC_ESC 0x7d /* Escape character */ 36#define HDLC_XOR 0x20 /* Modifier value */ --- 31 unchanged lines hidden (view full) --- 68 int unknownproto; 69 } laststats, stats; 70 71 struct { 72 struct lcp *owner; /* parent LCP */ 73 struct pppTimer timer; /* When to send */ 74 int method; /* bit-mask for LQM_* from lqr.h */ 75 | 29 */ 30 31/* 32 * Definition for Async HDLC 33 */ 34#define HDLC_SYN 0x7e /* SYNC character */ 35#define HDLC_ESC 0x7d /* Escape character */ 36#define HDLC_XOR 0x20 /* Modifier value */ --- 31 unchanged lines hidden (view full) --- 68 int unknownproto; 69 } laststats, stats; 70 71 struct { 72 struct lcp *owner; /* parent LCP */ 73 struct pppTimer timer; /* When to send */ 74 int method; /* bit-mask for LQM_* from lqr.h */ 75 |
76 u_int32_t OutPackets; /* Packets sent by me */ 77 u_int32_t OutOctets; /* Octets sent by me */ 78 u_int32_t SaveInPackets; /* Packets received from peer */ 79 u_int32_t SaveInDiscards; /* Discards */ 80 u_int32_t SaveInErrors; /* Errors */ 81 u_int32_t SaveInOctets; /* Octets received from peer */ | 76 u_int32_t ifOutUniPackets; /* Packets sent by me */ 77 u_int32_t ifOutOctets; /* Octets sent by me */ 78 u_int32_t ifInUniPackets; /* Packets received from peer */ 79 u_int32_t ifInDiscards; /* Discards */ 80 u_int32_t ifInErrors; /* Errors */ 81 u_int32_t ifInOctets; /* Octets received from peer (unused) */ |
82 83 struct { | 82 83 struct { |
84 u_int32_t InGoodOctets; /* Good octets received from peer */ |
|
84 u_int32_t OutLQRs; /* LQRs sent by me */ | 85 u_int32_t OutLQRs; /* LQRs sent by me */ |
85 u_int32_t SaveInLQRs; /* LQRs received from peer */ | 86 u_int32_t InLQRs; /* LQRs received from peer */ 87 88 struct lqrsavedata Save; /* Our last LQR */ 89 struct lqrsavedata prevSave; /* Our last-but-one LQR (analysis) */ 90 |
86 struct lqrdata peer; /* Last LQR from peer */ 87 int peer_timeout; /* peers max lqr timeout */ 88 int resent; /* Resent last packet `resent' times */ 89 } lqr; 90 91 struct { 92 u_int32_t seq_sent; /* last echo sent */ 93 u_int32_t seq_recv; /* last echo received */ --- 18 unchanged lines hidden --- | 91 struct lqrdata peer; /* Last LQR from peer */ 92 int peer_timeout; /* peers max lqr timeout */ 93 int resent; /* Resent last packet `resent' times */ 94 } lqr; 95 96 struct { 97 u_int32_t seq_sent; /* last echo sent */ 98 u_int32_t seq_recv; /* last echo received */ --- 18 unchanged lines hidden --- |