]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Pass TCP keep-alive config define to LWIP code
authorMarco Schlumpp <marco@unikraft.io>
Mon, 30 Jan 2023 10:19:05 +0000 (11:19 +0100)
committerUnikraft <monkey@unikraft.io>
Fri, 3 Feb 2023 22:50:56 +0000 (22:50 +0000)
The corresponding Unikraft config has a CONFIG_ prefix that won't be
picked up by the LWIP source code.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Radu Nichita <radunichita99@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #26

include/lwipopts.h

index 4433bed69ad45c571378d6dc8b4be0668b9727a2..1f03ccb5b7c6ce05bc8356cf99c8d53916b99518 100644 (file)
@@ -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