From 9f1e5762da7582675336bfdb88cd5d9253e9f267 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 25 Oct 2023 11:18:43 +0700 Subject: [PATCH] fix IPv4 ECN control message length on Linux (#4127) --- sys_conn_helper_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_conn_helper_linux.go b/sys_conn_helper_linux.go index 622f4e6f..310c8374 100644 --- a/sys_conn_helper_linux.go +++ b/sys_conn_helper_linux.go @@ -19,7 +19,7 @@ const ( ipv4PKTINFO = unix.IP_PKTINFO ) -const ecnIPv4DataLen = 4 +const ecnIPv4DataLen = 1 const batchSize = 8 // needs to smaller than MaxUint8 (otherwise the type of oobConn.readPos has to be changed)