fix bug #44578: Build fails for IPv6-only configuration

This commit is contained in:
Ivan Delamer 2015-03-19 10:08:49 -06:00
parent b135a0aa49
commit d06a736f41

View File

@ -1348,7 +1348,7 @@ ethernet_input(struct pbuf *p, struct netif *netif)
{ {
struct eth_hdr* ethhdr; struct eth_hdr* ethhdr;
u16_t type; u16_t type;
#if LWIP_ARP || ETHARP_SUPPORT_VLAN #if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6
s16_t ip_hdr_offset = SIZEOF_ETH_HDR; s16_t ip_hdr_offset = SIZEOF_ETH_HDR;
#endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */ #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */