Displaying 1 result from an estimated 1 matches for "proto_overhead".
2004 Jun 18
21
patch: HTB update for ADSL users
...,10 +59,19 @@
                while ((mtu>>cell_log) > 255)
                        cell_log++;
        }
+
+       // HACK - UK ATM Params
+       int encaps_cell_sz = 53;
+       int encaps_cell_overhead = 5;
+       int encaps_data_sz = encaps_cell_sz - encaps_cell_overhead;
+       int proto_overhead = 10; // PPP Overhead
+
        for (i=0; i<256; i++) {
-               unsigned sz = (i<<cell_log);
-               if (sz < mpu)
-                       sz = mpu;
+               unsigned sz = ((i+1)<<cell_log)-1;
+                sz = sz + proto_overhead;
+               sz = (...