This change exposes the LWIP_SO_RCVBUF config option through the
Unikraft Kconfig, configuring whether lwip should use receive buffers.
Receive buffers enable support for the SO_RCVBUF socket option as
well as ioctl(FIONREAD).
This option is enabled by default to provide the most compatibility.
Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #50
help
Print netif status changes to standard console
+config LWIP_RCVBUF
+ bool "Use receive buffers"
+ default y
+ help
+ Use receive buffers, enabling the SO_RCVBUF socket option and FIONREAD ioctl
+
config LWIP_LOOPBACK
bool "Loopback traffic"
default y
#define LWIP_SOCKET 0
#endif
+#if CONFIG_LWIP_RCVBUF
+#define LWIP_SO_RCVBUF 1
+#endif
+
#if LWIP_SOCKET
#if CONFIG_HAVE_LIBC
/* Stop lwip to provide ioctl constants */