mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-13 19:03:52 +02:00
688a5413d0
The new package would help measuring one-way delays using ICMP type 13 packets. This is important for various scripts that automatically adjust CAKE shaper bandwidth based on the observed bufferbloat. They need to understand whether the delay is on the way up or on the way down, so that they can adjust the bandwidth of the proper part of the shaper. https://forum.openwrt.org/t/cake-w-adaptive-bandwidth-historic/108848 https://forum.openwrt.org/t/cake-w-adaptive-bandwidth/135379 V2: refreshed patches Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
20 lines
467 B
Diff
20 lines
467 B
Diff
Author: Michael Tautschnig <mt@debian.org>
|
|
Subject: Conflicting types for variable ip_optlen
|
|
- globals.h: extern char ip_optlen;
|
|
- main.c: unsigned ip_optlen;
|
|
Undefined behaviour if the value of ip_optlen exceeds 127 for
|
|
any architecture with signed char type.
|
|
Bug-Debian: https://bugs.debian.org/688458
|
|
|
|
--- a/main.c
|
|
+++ b/main.c
|
|
@@ -156,7 +156,7 @@ unsigned char
|
|
lsr [255] = {0},
|
|
ssr [255] = {0};
|
|
|
|
-unsigned
|
|
+char
|
|
ip_optlen = 0;
|
|
|
|
struct sockaddr_in
|