This commit optionalizes LwIP's "RAW" protocol, making it available to
use within Unikraft when enabled.
Signed-off-by: Ethan Cotterell <e.cotterell@lancs.ac.uk>
Signed-off-by: Alexander Jung <a.jung@lancs.ac.uk>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Approved-by: Simon Kuenzer <simon@unikraft.io>
GitHub-Closes: #2
bool "UDP support"
default y
+config LWIP_RAW
+ bool "RAW support"
+ default n
+ help
+ Enable the RAW address family (AF_RAW). This option allows an
+ application to be able to hook into the IP layer itself.
+
menuconfig LWIP_TCP
bool "TCP support"
default y
#define IP_REASS_MAX_PBUFS CONFIG_LWIP_IP_REASS_MAX_PBUFS
#endif
+/**
+ * RAW support
+ */
+#if CONFIG_LWIP_RAW
+#define LWIP_RAW 1
+#else
+#define LWIP_RAW 0
+#endif
+
/**
* UDP options
*/