lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Patch for thread-safe DHCP handling


From: Mark Lakata
Subject: [lwip-users] Patch for thread-safe DHCP handling
Date: Wed, 09 Jan 2013 16:52:07 -0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

I'd like to request this patch be added, so that dhcp_inform, dhcp_renew and dhcp_release can be called from a thread-safe context. I think this is the Right Way.

Thanks,
Mark


 src/include/lwip/netifapi.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/include/lwip/netifapi.h b/src/include/lwip/netifapi.h
index 33318ef..648151b 100644
--- a/src/include/lwip/netifapi.h
+++ b/src/include/lwip/netifapi.h
@@ -96,6 +96,9 @@ err_t netifapi_netif_common    ( struct netif *netif,
 #define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL)
 #define netifapi_dhcp_start(n)        netifapi_netif_common(n, NULL, dhcp_start)
 #define netifapi_dhcp_stop(n)         netifapi_netif_common(n, dhcp_stop, NULL)
+#define netifapi_dhcp_inform(n)       netifapi_netif_common(n, dhcp_inform, NULL)
+#define netifapi_dhcp_renew(n)        netifapi_netif_common(n, NULL, dhcp_renew)
+#define netifapi_dhcp_release(n)      netifapi_netif_common(n, NULL, dhcp_release)
 #define netifapi_autoip_start(n)      netifapi_netif_common(n, NULL, autoip_start)
 #define netifapi_autoip_stop(n)       netifapi_netif_common(n, NULL, autoip_stop)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]