Merge pull request #341 from ismb-pert/fix-lladdr

Fixed fail to build from source due to a bad &nbr->lladdr
This commit is contained in:
Adam Dunkels 2013-09-14 03:24:12 -07:00
commit 50395666fc

View File

@ -819,9 +819,10 @@ uip_nd6_ra_input(void)
if(nbr->state == NBR_INCOMPLETE) {
nbr->state = NBR_STALE;
}
uip_lladdr_t *lladdr = uip_ds6_nbr_get_ll(nbr);
if(memcmp(&nd6_opt_llao[UIP_ND6_OPT_DATA_OFFSET],
&nbr->lladdr, UIP_LLADDR_LEN) != 0) {
memcpy(&nbr->lladdr, &nd6_opt_llao[UIP_ND6_OPT_DATA_OFFSET],
lladdr, UIP_LLADDR_LEN) != 0) {
memcpy(lladdr, &nd6_opt_llao[UIP_ND6_OPT_DATA_OFFSET],
UIP_LLADDR_LEN);
nbr->state = NBR_STALE;
}