PATCH: SLIP bug nailed properly!!

Craig Schlenter (cschle@paradigm.co.za)
Sun, 18 Feb 1996 08:56:35 +0200 (SAT)


Hi

This patch is *untested* but I think this should solve the real SLIP bug
present in 1.3.61 to 1.3.66 (Linus is really working quickly !). The mode
byte seems to have been clobberred by SLF_OUTWAIT=8 ...

Please include it in 1.3.67. (The other patch I posted with the #define's
can be axed but it does save a few bytes ...)

Cheers

--Craig

--- slip.h.old Sun Feb 18 09:06:37 1996
+++ slip.h Sun Feb 18 09:06:08 1996
@@ -14,6 +14,8 @@
* Dmitry Gorodchanin : Added CSLIP statistics.
* Stanislav Voronyi : Make line checking as created by
* Igor Chechik, RELCOM Corp.
+ * Craig Schlenter : Fixed #define bug that caused
+ * CSLIP telnets to hang in 1.3.61-6
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
*/
@@ -89,8 +91,8 @@
#define SLF_INUSE 0 /* Channel in use */
#define SLF_ESCAPE 1 /* ESC received */
#define SLF_ERROR 2 /* Parity, etc. error */
-#define SLF_KEEPTEST 4 /* Keepalive test flag */
-#define SLF_OUTWAIT 8 /* is outpacket was flag */
+#define SLF_KEEPTEST 3 /* Keepalive test flag */
+#define SLF_OUTWAIT 4 /* is outpacket was flag */

unsigned char mode; /* SLIP mode */
#define SL_MODE_SLIP 0