fixed so that uip6 sends icmp6 errors from correct source when acting as router - improves support for tracert, etc.
This commit is contained in:
parent
58c55340ed
commit
d75ec2da53
|
@ -161,7 +161,12 @@ uip_icmp6_error_output(u8_t type, u8_t code, u32_t param) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uip_ipaddr_copy(&UIP_IP_BUF->srcipaddr, &tmp_ipaddr);
|
#if UIP_CONF_ROUTER
|
||||||
|
/* need to pick a source that corresponds to this node */
|
||||||
|
uip_netif_select_src(&UIP_IP_BUF->srcipaddr, &tmp_ipaddr);
|
||||||
|
#else
|
||||||
|
uip_ipaddr_copy(&UIP_IP_BUF->srcipaddr, &tmp_ipaddr);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
UIP_ICMP_BUF->type = type;
|
UIP_ICMP_BUF->type = type;
|
||||||
|
|
Loading…
Reference in a new issue