mirror of
https://passt.top/passt
synced 2025-06-13 11:05:34 +02:00
Makefile, tcp: Don't try to use tcpi_snd_wnd from tcp_info on pre-5.3 kernels
Detect missing tcpi_snd_wnd in struct tcp_info at build time, otherwise build fails with a pre-5.3 linux/tcp.h header. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
a20626fb35
commit
849308d207
3 changed files with 15 additions and 1 deletions
2
tcp.h
2
tcp.h
|
@ -67,7 +67,9 @@ struct tcp_ctx {
|
|||
uint8_t port_to_init [USHRT_MAX / 8];
|
||||
int ns_detect_ports;
|
||||
struct timespec timer_run;
|
||||
#ifdef HAS_SND_WND
|
||||
int kernel_snd_wnd;
|
||||
#endif
|
||||
size_t pipe_size;
|
||||
struct timespec refill_ts;
|
||||
struct timespec port_detect_ts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue