net/ip: apply workaround to fix IP forwarding
When sending a packet a workaround is applied when ndp_get_ll_address() returns NULL as is's not implemented properly yet. The same should happen when a packet is forwarded as it's dropped otherwise.
This commit is contained in:
parent
adeae5eced
commit
143b6560da
@ -438,6 +438,11 @@ void ipv6_process(void)
|
|||||||
nce->lladdr_len,
|
nce->lladdr_len,
|
||||||
(uint8_t *)ipv6_get_buf_send(),
|
(uint8_t *)ipv6_get_buf_send(),
|
||||||
packet_length);
|
packet_length);
|
||||||
|
} else {
|
||||||
|
/* XXX: this is wrong, but until ND does not work correctly,
|
||||||
|
* this is the only way (aka the old way)*/
|
||||||
|
uint16_t raddr = dest->uint16[7];
|
||||||
|
sixlowpan_lowpan_sendto(0, &raddr, 2, (uint8_t *)ipv6_get_buf_send(), packet_length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user