From eeb422fed8735188e4e141578d0383ae57ba8343 Mon Sep 17 00:00:00 2001 From: amurai Date: Sun, 26 Feb 1995 12:18:08 +0000 Subject: New user Process PPP based on iij-ppp0.94beta2. o Supporting SYNC SIO device (But need a device driver) - add "set speed sync" o Fixing bug for Predictor-1 function. o Add new parameter that re-sent interval for set timeout commands. o Improving RTT (Round Trip Time) and reducing processor time. - Previous Timer service was using polling, and now using SIGALRM ;-) - A 0.94beta2 will not work correctly.... -- Follows are additinal feature not including 0.94beta2 o Support Proxy ARP - add "enable/disable proxy" commands o Marging common routine in CHAP/PAP. o Enhancing LCP/IPCP log information. o Support local Authfication connection on port 300x and tty. - You can set up pair of your "hostname -s" and password in ppp.secret. if either ppp.secret file nor your hostname line don't exist, It will notify a message and working as same as previous version.(Backword compatibility) - If you did set up them, It's allow connection but nothing to do except help and passwd command. - add "passwd yourpasswd" commands o Support afilter - keep Alive filter that a packet can send/receiving according to ifilter/ofilter but doesn't count it as preventing idle timer expires. - Same syntax of other filters. o Fixing bugs reported by current user for previous one. Thanks !! Reviewed by: Atsushi Murai (amurai@spec.co.jp) --- usr.sbin/ppp/slcompress.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'usr.sbin/ppp/slcompress.c') diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index b3c6403..f3d57ce 100644 --- a/usr.sbin/ppp/slcompress.c +++ b/usr.sbin/ppp/slcompress.c @@ -18,7 +18,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * $Id:$ - * + * * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: * - Initial distribution. */ @@ -43,8 +43,6 @@ struct slstat slstat; #define ovbcopy bcopy #endif -static int reason1, reason2, reason3, reason4, reason5; - void sl_compress_init(comp) struct slcompress *comp; @@ -214,7 +212,6 @@ sl_compress_tcp(m, ip, comp, compress_cid) hlen <<= 2; if (hlen > m->cnt) return(TYPE_IP); -reason1++; goto uncompressed; found: @@ -256,7 +253,6 @@ reason1++; BCMP(ip + 1, &cs->cs_ip + 1, (deltaS - 5) << 2)) || (THOFFSET(th) > 5 && BCMP(th + 1, oth + 1, (THOFFSET(th) - 5) << 2))) { -reason2++; goto uncompressed; } @@ -275,7 +271,6 @@ reason2++; * implementation should never do this but RFC793 * doesn't prohibit the change so we have to deal * with it. */ -reason3++; goto uncompressed; } @@ -288,7 +283,6 @@ reason3++; deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack); if (deltaA) { if (deltaA > 0xffff) { -reason4++; goto uncompressed; } ENCODE(deltaA); @@ -298,7 +292,6 @@ reason4++; deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); if (deltaS) { if (deltaS > 0xffff) { - reason4++; goto uncompressed; } ENCODE(deltaS); @@ -328,7 +321,6 @@ reason4++; * actual changes match one of our special case encodings -- * send packet uncompressed. */ -reason5++; goto uncompressed; case NEW_S|NEW_A: @@ -464,7 +456,7 @@ sl_uncompress_tcp(bufp, len, type, comp) if (changes & NEW_C) { /* Make sure the state index is in range, then grab the state. * If we have a good state index, clear the 'discard' flag. */ - if (*cp >= MAX_STATES) + if (*cp >= MAX_STATES || comp->last_recv == 255) goto bad; comp->flags &=~ SLF_TOSS; @@ -584,6 +576,5 @@ ReportCompress() slstat.sls_compressedin, slstat.sls_uncompressedin); printf(" %d (error), %d (tossed)\n", slstat.sls_errorin, slstat.sls_tossed); - printf("%d, %d, %d, %d, %d\n", reason1, reason2, reason3, reason4, reason5); return(1); } -- cgit v1.1