From: Geoffrey D. B. <g...@ne...> - 2007-01-30 17:36:09
|
Hi there, Not sure if attachments are permitted on this mailing list so I've put it inline, and not sure if there's a better place to send this, but this patch is bound to improve the reliability of l2tpns for anyone whose LAC uses a window size which is a multiple of 256... Thanks, Geoffrey. -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----- diff -ur l2tpns-2.1.21.orig/l2tpns.c l2tpns-2.1.21/l2tpns.c --- l2tpns-2.1.21.orig/l2tpns.c 2006-06-23 01:00:50.000000000 +0930 +++ l2tpns-2.1.21/l2tpns.c 2007-01-31 03:50:56.000000000 +1030 @@ -2820,7 +2820,7 @@ if (tunnel[t].retry <= TIME) { controlt *c = tunnel[t].controls; - uint8_t w = tunnel[t].window; + uint16_t w = tunnel[t].window; tunnel[t].try++; // another try if (tunnel[t].try > 5) tunnelkill(t, "Timeout on control message"); // game over -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----- -- Geoffrey D. Bennett, RHCE, RHCX mailto:g...@ne... Senior Systems Engineer sip:g...@ne... NetCraft Australia Pty Ltd http://www.netcraft.com.au/geoffrey/ |