mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
Correctly initialize netif flags in pppifNetifInit
This commit is contained in:
@@ -1302,6 +1302,11 @@ pppifNetifInit(struct netif *netif)
|
|||||||
netif->name[1] = 'p';
|
netif->name[1] = 'p';
|
||||||
netif->output = pppifOutput;
|
netif->output = pppifOutput;
|
||||||
netif->mtu = pppMTU((int)(size_t)netif->state);
|
netif->mtu = pppMTU((int)(size_t)netif->state);
|
||||||
|
netif->flags = NETIF_FLAG_POINTTOPOINT | NETIF_FLAG_LINK_UP;
|
||||||
|
#if LWIP_NETIF_HOSTNAME
|
||||||
|
/* @todo: Initialize interface hostname */
|
||||||
|
/* netif_set_hostname(netif, "lwip"); */
|
||||||
|
#endif /* LWIP_NETIF_HOSTNAME */
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user