Correctly initialize netif flags in pppifNetifInit

This commit is contained in:
goldsimon 2010-02-05 11:20:49 +00:00
parent 758e99f362
commit 28dc5f491c

View File

@ -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;
}