Bugfix: the compile-time check for UIP_LLADDR_LEN previously generated a run-time error, when it should have generated a compile-time error

This commit is contained in:
adamdunkels 2010-02-28 08:30:39 +00:00
parent ba0e50a7b7
commit fa1a96636e

View file

@ -248,9 +248,7 @@ uip_netif_addr_autoconf_set(uip_ipaddr_t *ipaddr, uip_lladdr_t *lladdr)
memcpy(ipaddr->u8 + 13, (u8_t*)lladdr + 3, 3); memcpy(ipaddr->u8 + 13, (u8_t*)lladdr + 3, 3);
ipaddr->u8[8] ^= 0x02; ipaddr->u8[8] ^= 0x02;
#else #else
UIP_LOG("CAN NOT BUILD INTERFACE IDENTIFIER"); #error uip-netif.c cannot build interface address when UIP_LLADDR_LEN is not 6 or 8
UIP_LOG("THE STACK IS GOING TO SHUT DOWN");
UIP_LOG("THE HOST WILL BE UNREACHABLE");
#endif #endif
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/