Fixed LWIP_IPV6==0

This commit is contained in:
Simon Goldschmidt 2014-01-17 21:57:40 +01:00
parent 1e65eb4936
commit 5070cc07be

View File

@ -96,7 +96,9 @@ static err_t netif_null_output_ip6(struct netif *netif, struct pbuf *p, ip6_addr
#if LWIP_HAVE_LOOPIF #if LWIP_HAVE_LOOPIF
static err_t netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, ip_addr_t* addr); static err_t netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, ip_addr_t* addr);
#if LWIP_IPV6
static err_t netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, ip6_addr_t* addr); static err_t netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, ip6_addr_t* addr);
#endif
static struct netif loop_netif; static struct netif loop_netif;
@ -119,7 +121,9 @@ netif_loopif_init(struct netif *netif)
netif->name[0] = 'l'; netif->name[0] = 'l';
netif->name[1] = 'o'; netif->name[1] = 'o';
netif->output = netif_loop_output_ipv4; netif->output = netif_loop_output_ipv4;
#if LWIP_IPV6
netif->output_ip6 = netif_loop_output_ipv6; netif->output_ip6 = netif_loop_output_ipv6;
#endif
return ERR_OK; return ERR_OK;
} }
#endif /* LWIP_HAVE_LOOPIF */ #endif /* LWIP_HAVE_LOOPIF */
@ -765,12 +769,14 @@ netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, ip_addr_t* addr)
return netif_loop_output(netif, p); return netif_loop_output(netif, p);
} }
#if LWIP_IPV6
static err_t static err_t
netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, ip6_addr_t* addr) netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, ip6_addr_t* addr)
{ {
LWIP_UNUSED_ARG(addr); LWIP_UNUSED_ARG(addr);
return netif_loop_output(netif, p); return netif_loop_output(netif, p);
} }
#endif
/** /**