Skip to content

Commit

Permalink
include: Expose LwIP's RAW protocol
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
flapjack321 authored and nderjung committed May 26, 2022
1 parent d83e056 commit 4a68271
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Config.uk
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ config LWIP_UDP
bool "UDP support"
default y

menuconfig LWIP_RAW
bool "RAW support"
default n
help
Enable the RAW address family (AF_RAW). This option enables an
application to be able to hook into the IP layer itself.

menuconfig LWIP_TCP
bool "TCP support"
default y
Expand Down
9 changes: 9 additions & 0 deletions include/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ void sys_free(void *ptr);
#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
*/
Expand Down

0 comments on commit 4a68271

Please sign in to comment.