From b69cf13b2e798c8177a6e26074b6ce1e6f308c11 Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Mon, 1 Jul 2019 04:25:46 +0800 Subject: [PATCH] fix gateway can't work after restart by rpc --- uv_lwip/uv_lwip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uv_lwip/uv_lwip.c b/uv_lwip/uv_lwip.c index 49d3279..50b3cc2 100644 --- a/uv_lwip/uv_lwip.c +++ b/uv_lwip/uv_lwip.c @@ -412,6 +412,8 @@ static err_t uvl_netif_init_func (struct netif *netif) { netif->name[0] = 'h'; netif->name[1] = 'o'; + // fixed netif name to ho0 + netif->num = 0; netif->output = uvl_netif_output_func; return ERR_OK;