diff --git a/packages/genodelabs/lwip.patch b/packages/genodelabs/lwip.patch new file mode 100644 index 0000000..93e8d58 --- /dev/null +++ b/packages/genodelabs/lwip.patch @@ -0,0 +1,29 @@ +diff --git a/repos/libports/include/lwip/nic_netif.h b/repos/libports/include/lwip/nic_netif.h +index 167abecb3f..426b17cf8b 100644 +--- a/repos/libports/include/lwip/nic_netif.h ++++ b/repos/libports/include/lwip/nic_netif.h +@@ -17,6 +17,8 @@ + #ifndef __LWIP__NIC_NETIF_H__ + #define __LWIP__NIC_NETIF_H__ + ++#include ++ + #if ETH_PAD_SIZE + #error ETH_PAD_SIZE defined but unsupported by lwip/nic_netif.h + #endif +@@ -194,6 +196,7 @@ class Lwip::Nic_netif + + if (config.has_attribute("netmask")) { + Str str = config.attribute_value("netmask", Str()); ++ PDBG("netmask is ", str); + ip_addr_t ip; + ipaddr_aton(str.string(), &ip); + netif_set_netmask(&_netif, ip_2_ip4(&ip)); +@@ -205,7 +208,6 @@ class Lwip::Nic_netif + ipaddr_aton(str.string(), &ip); + netif_set_gw(&_netif, ip_2_ip4(&ip)); + } +- + } + + if (config.has_attribute("nameserver")) {