]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Correctly initialize netif flags in pppifNetifInit
authorgoldsimon <goldsimon>
Fri, 5 Feb 2010 11:20:49 +0000 (11:20 +0000)
committergoldsimon <goldsimon>
Fri, 5 Feb 2010 11:20:49 +0000 (11:20 +0000)
src/netif/ppp/ppp.c

index 5b25e90e231632a763e81a9102c6f56229c120ba..5f072e84d3c78025ea7305e4e2f4f196cc2d9c26 100644 (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;
 }