mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-28 14:54:05 +00:00
Fixed bug #29087: etharp: don't send packets for LinkLocal-addresses to gw
This commit is contained in:
parent
464950d51e
commit
fcf6434b4b
@ -141,6 +141,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2010-03-06: Simon Goldschmidt
|
||||||
|
* etharp.c: Fixed bug #29087: etharp: don't send packets for LinkLocal-
|
||||||
|
addresses to gw
|
||||||
|
|
||||||
2010-03-05: Simon Goldschmidt
|
2010-03-05: Simon Goldschmidt
|
||||||
* dhcp.c: Fixed bug #29072: Correctly set ciaddr based on message-type
|
* dhcp.c: Fixed bug #29072: Correctly set ciaddr based on message-type
|
||||||
and state.
|
and state.
|
||||||
|
@ -840,7 +840,8 @@ etharp_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr)
|
|||||||
/* unicast destination IP address? */
|
/* unicast destination IP address? */
|
||||||
} else {
|
} else {
|
||||||
/* outside local network? */
|
/* outside local network? */
|
||||||
if (!ip_addr_netcmp(ipaddr, &(netif->ip_addr), &(netif->netmask))) {
|
if (!ip_addr_netcmp(ipaddr, &(netif->ip_addr), &(netif->netmask)) &&
|
||||||
|
!ip_addr_islinklocal(ipaddr)) {
|
||||||
/* interface has default gateway? */
|
/* interface has default gateway? */
|
||||||
if (!ip_addr_isany(&netif->gw)) {
|
if (!ip_addr_isany(&netif->gw)) {
|
||||||
/* send to hardware address of default gateway IP address */
|
/* send to hardware address of default gateway IP address */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user