mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
slipif: Fix compile when only IPv6 is enabled
This commit is contained in:
parent
777e667f08
commit
aeab047ede
@ -155,6 +155,7 @@ slipif_output(struct netif *netif, struct pbuf *p)
|
|||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LWIP_IPV4
|
||||||
/**
|
/**
|
||||||
* Send a pbuf doing the necessary SLIP encapsulation
|
* Send a pbuf doing the necessary SLIP encapsulation
|
||||||
*
|
*
|
||||||
@ -171,6 +172,7 @@ slipif_output_v4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr)
|
|||||||
LWIP_UNUSED_ARG(ipaddr);
|
LWIP_UNUSED_ARG(ipaddr);
|
||||||
return slipif_output(netif, p);
|
return slipif_output(netif, p);
|
||||||
}
|
}
|
||||||
|
#endif /* LWIP_IPV4 */
|
||||||
|
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
/**
|
/**
|
||||||
@ -369,7 +371,9 @@ slipif_init(struct netif *netif)
|
|||||||
|
|
||||||
netif->name[0] = 's';
|
netif->name[0] = 's';
|
||||||
netif->name[1] = 'l';
|
netif->name[1] = 'l';
|
||||||
|
#if LWIP_IPV4
|
||||||
netif->output = slipif_output_v4;
|
netif->output = slipif_output_v4;
|
||||||
|
#endif /* LWIP_IPV4 */
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
netif->output_ip6 = slipif_output_v6;
|
netif->output_ip6 = slipif_output_v6;
|
||||||
#endif /* LWIP_IPV6 */
|
#endif /* LWIP_IPV6 */
|
||||||
|
Loading…
Reference in New Issue
Block a user