aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ccp.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-01-29 20:45:16 +0000
committerBrian Somers <brian@FreeBSD.org>1998-01-29 20:45:16 +0000
commit247ab36d2858e9c2e6310d7dde2134d0fd8a1bdc (patch)
tree4f24dab489588a26d87e89806df4dc0df5d7bf93 /usr.sbin/ppp/ccp.h
parent63b7346316afa0c20b6cf22506bcc53abc9f08f8 (diff)
downloadsrc-247ab36d2858e9c2e6310d7dde2134d0fd8a1bdc.tar.gz
src-247ab36d2858e9c2e6310d7dde2134d0fd8a1bdc.zip
o Move in_algorithm and out_algorithm into CcpInfo.
o Take note of the return value of the compression layers init routine, and if it fails, bring the whole layer cleanly back down again. o Only use srandomdev() if ``__FreeBSD__ > 2'' - this makes these sources buildable on 2.2 (where I'm testing).
Notes
Notes: svn path=/cvs2svn/branches/MP/; revision=32877
Diffstat (limited to 'usr.sbin/ppp/ccp.h')
-rw-r--r--usr.sbin/ppp/ccp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ccp.h b/usr.sbin/ppp/ccp.h
index 5ac4fd4c4ac7..c03158144bc5 100644
--- a/usr.sbin/ppp/ccp.h
+++ b/usr.sbin/ppp/ccp.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ccp.h,v 1.14 1998/01/11 17:50:29 brian Exp $
+ * $Id: ccp.h,v 1.14.2.1 1998/01/29 00:49:13 brian Exp $
*
* TODO:
*/
@@ -42,11 +42,14 @@ struct ccpstate {
int reset_sent; /* If != -1, ignore compressed 'till ack */
int last_reset; /* We can receive more (dups) w/ this id */
+ int in_algorithm; /* Incoming algorithm in use */
+ int out_algorithm; /* Outgoing algorithm in use */
+
u_int32_t his_reject; /* Request codes rejected by peer */
u_int32_t my_reject; /* Request codes I have rejected */
- int out_init; /* Init called for out algorithm */
- int in_init; /* Init called for in algorithm */
+ int out_init : 1; /* Init called for out algorithm */
+ int in_init : 1; /* Init called for in algorithm */
u_long uncompout, compout;
u_long uncompin, compin;