diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-10-24 15:59:21 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-10-25 14:27:17 +0200 |
commit | 81143813a6b3ec297c31d234bbdc6000ed8c7052 (patch) | |
tree | c77c4c34eb4293c923037f576acb3ff12904c946 /Makefile | |
parent | 13f0291ede19fc6baea02e8327acec144bdf79e6 (diff) | |
download | passt-81143813a6b3ec297c31d234bbdc6000ed8c7052.tar passt-81143813a6b3ec297c31d234bbdc6000ed8c7052.tar.gz passt-81143813a6b3ec297c31d234bbdc6000ed8c7052.tar.bz2 passt-81143813a6b3ec297c31d234bbdc6000ed8c7052.tar.lz passt-81143813a6b3ec297c31d234bbdc6000ed8c7052.tar.xz passt-81143813a6b3ec297c31d234bbdc6000ed8c7052.tar.zst passt-81143813a6b3ec297c31d234bbdc6000ed8c7052.zip |
tcp: Generalise probing for tcpi_snd_wnd field
In order to use the tcpi_snd_wnd field from the TCP_INFO getsockopt() we
need the field to be supported in the runtime kernel (snd_wnd_cap).
In fact we should check that for for every tcp_info field we want to use,
beyond the very old ones shared with BSD. Prepare to do that, by
generalising the probing from setting a single bool to instead record the
size of the returned TCP_INFO structure. We can then use that recorded
value to check for the presence of any field we need.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions