From: Marco Schlumpp Date: Mon, 30 Jan 2023 10:19:05 +0000 (+0100) Subject: Pass TCP keep-alive config define to LWIP code X-Git-Tag: RELEASE-0.12.0~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c32094646b092708379c961ee89ebd284bdee6b4;p=unikraft%2Flibs%2Flwip.git Pass TCP keep-alive config define to LWIP code The corresponding Unikraft config has a CONFIG_ prefix that won't be picked up by the LWIP source code. Signed-off-by: Marco Schlumpp Reviewed-by: Radu Nichita Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #26 --- diff --git a/include/lwipopts.h b/include/lwipopts.h index 4433bed..1f03ccb 100644 --- a/include/lwipopts.h +++ b/include/lwipopts.h @@ -154,6 +154,10 @@ void sys_free(void *ptr); #define TCP_CALCULATE_EFF_SEND_MSS 1 #define IP_FRAG 0 +#ifdef CONFIG_LWIP_TCP_KEEPALIVE +#define LWIP_TCP_KEEPALIVE 1 +#endif /* CONFIG_LWIP_TCP_KEEPALIVE */ + #if CONFIG_LWIP_WND_SCALE /* * Maximum window and scaling factor