mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
ethip6: forward correct error code
On failure, nd6_get_next_hop_entry() returns an ERR_ type negative error code. ethip6_output() erroneously assumed that that error would always be ERR_MEM, even though it may also be ERR_RTE in practice. With this patch, ethip6_output() simply forwards the returned error.
This commit is contained in:
parent
9d199a6d72
commit
002e077dbd
@ -113,7 +113,7 @@ ethip6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr)
|
|||||||
i = nd6_get_next_hop_entry(ip6addr, netif);
|
i = nd6_get_next_hop_entry(ip6addr, netif);
|
||||||
if (i < 0) {
|
if (i < 0) {
|
||||||
/* failed to get a next hop neighbor record. */
|
/* failed to get a next hop neighbor record. */
|
||||||
return ERR_MEM;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now that we have a destination record, send or queue the packet. */
|
/* Now that we have a destination record, send or queue the packet. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user