vcl: fix ldp getsockopt tcp_info length check 76/41976/3
authorFlorin Coras <[email protected]>
Sat, 7 Dec 2024 22:28:46 +0000 (17:28 -0500)
committerDave Barach <[email protected]>
Sun, 8 Dec 2024 21:32:39 +0000 (21:32 +0000)
commit4c1f178063124644e7a88089e22dccd796682f10
tree41ee2038532404f41a16ba844fe50b30e5506292
parent4e271dda7b7177e73199b0ccdbf047c0bb55714d
vcl: fix ldp getsockopt tcp_info length check

netinet/tcp.h and linux/tcp.h have different lenghts but overlap. LDP
uses the former while iperf the latter. Accept both lengths for now as
we do not support exposing tcp metrics via ldp.

Type: improvement

Change-Id: I13a149d68715ed9451773630a3595c09c421aa29
Signed-off-by: Florin Coras <[email protected]>
src/vcl/ldp.c