mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +00:00
Correctly initialize netif flags in pppifNetifInit
This commit is contained in:
parent
758e99f362
commit
28dc5f491c
@ -1302,6 +1302,11 @@ pppifNetifInit(struct netif *netif)
|
||||
netif->name[1] = 'p';
|
||||
netif->output = pppifOutput;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user