aboutsummaryrefslogtreecommitdiff
path: root/lwip/port/netif
diff options
context:
space:
mode:
authorJoan Lledó <joanlluislledo@gmail.com>2019-03-31 19:55:41 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-03-31 20:02:55 +0200
commitf20fab8d97b0bdac1bd5101c14336e89e055d7b7 (patch)
tree44057f9014132f10d707e588dc309ca0931aaa4a /lwip/port/netif
parent7bd734d38cad4292e4e7e60699a5abcc73430552 (diff)
downloadhurd-f20fab8d97b0bdac1bd5101c14336e89e055d7b7.tar.gz
hurd-f20fab8d97b0bdac1bd5101c14336e89e055d7b7.tar.bz2
hurd-f20fab8d97b0bdac1bd5101c14336e89e055d7b7.zip
lwip: Stop using netifapi.
Use tcpip_callback() to reconfigure interfaces in a thread-safe context instead. * lwip/lwip-util.c: * Replace all netifapi calls by their non-netifapi versions. * update_ifs() is called through tcpip_callback(). * lwip/options.c: * Call init_fs() through tcpip_callback(). * lwip/port/netif/ifcommon.c: * Replace all netifapi calls by their non-netifapi versions. Message-Id: <20190331175541.7095-5-jlledom@member.fsf.org>
Diffstat (limited to 'lwip/port/netif')
-rw-r--r--lwip/port/netif/ifcommon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lwip/port/netif/ifcommon.c b/lwip/port/netif/ifcommon.c
index 5a1c68a2..a7f28351 100644
--- a/lwip/port/netif/ifcommon.c
+++ b/lwip/port/netif/ifcommon.c
@@ -25,8 +25,6 @@
#include <net/if.h>
#include <errno.h>
-#include <lwip/netifapi.h>
-
/* Open the device and set the interface up */
static error_t
if_open (struct netif *netif)
@@ -40,7 +38,7 @@ if_open (struct netif *netif)
{
/* Up the inerface */
ifc->flags |= IFF_UP | IFF_RUNNING;
- netifapi_netif_set_up (netif);
+ netif_set_up (netif);
}
return err;
@@ -59,7 +57,7 @@ if_close (struct netif *netif)
{
/* Down the inerface */
ifc->flags &= ~(IFF_UP | IFF_RUNNING);
- netifapi_netif_set_down (netif);
+ netif_set_down (netif);
}
return err;