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>
15 lines
539 B
Diff
15 lines
539 B
Diff
Description: Fixes replies when icmp-ipid is used
|
|
Author: David Eisner <deisner@gmail.com>
|
|
Last-Update: 2015-12-18
|
|
--- a/waitpacket.c
|
|
+++ b/waitpacket.c
|
|
@@ -244,7 +244,8 @@ int recv_icmp(void *packet, size_t size)
|
|
if ((icmp.type == ICMP_ECHOREPLY ||
|
|
icmp.type == ICMP_TIMESTAMPREPLY ||
|
|
icmp.type == ICMP_ADDRESSREPLY) &&
|
|
- icmp.un.echo.id == (getpid() & 0xffff))
|
|
+ icmp.un.echo.id == ((icmp_ip_id == DEFAULT_ICMP_IP_ID) ?
|
|
+ getpid() & 0xffff : icmp_ip_id) )
|
|
{
|
|
int icmp_seq = icmp.un.echo.sequence;
|
|
int status;
|