mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 09:33:44 +08:00
Removed unused netif flag for point to point connections
This commit is contained in:
@@ -438,7 +438,7 @@ static err_t ppp_netif_init_cb(struct netif *netif) {
|
||||
#if PPP_IPV6_SUPPORT
|
||||
netif->output_ip6 = ppp_netif_output_ip6;
|
||||
#endif /* PPP_IPV6_SUPPORT */
|
||||
netif->flags = NETIF_FLAG_POINTTOPOINT | NETIF_FLAG_LINK_UP;
|
||||
netif->flags = NETIF_FLAG_LINK_UP;
|
||||
#if LWIP_NETIF_HOSTNAME
|
||||
/* @todo: Initialize interface hostname */
|
||||
/* netif_set_hostname(netif, "lwip"); */
|
||||
|
||||
@@ -368,7 +368,6 @@ slipif_init(struct netif *netif)
|
||||
netif->output_ip6 = slipif_output_v6;
|
||||
#endif /* LWIP_IPV6 */
|
||||
netif->mtu = SLIP_MAX_SIZE;
|
||||
netif->flags |= NETIF_FLAG_POINTTOPOINT;
|
||||
|
||||
/* netif->state or netif->num contain the port number */
|
||||
if (netif->state != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user