mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-04 20:08:57 +00:00
fixed bug #48477 (ARP input packet might update static entry)
This commit is contained in:
parent
dff46e3816
commit
d0a79ff085
|
@ -321,6 +321,9 @@ HISTORY
|
||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2016-07-19: Simon Goldschmidt
|
||||||
|
* etharp.c: fixed bug #48477 (ARP input packet might update static entry)
|
||||||
|
|
||||||
2016-07-11: Simon Goldschmidt
|
2016-07-11: Simon Goldschmidt
|
||||||
* tcp_in.c: fixed bug #48476 (TCP sent callback called wrongly due to picking
|
* tcp_in.c: fixed bug #48476 (TCP sent callback called wrongly due to picking
|
||||||
up old pcb->acked
|
up old pcb->acked
|
||||||
|
|
|
@ -480,6 +480,9 @@ etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct et
|
||||||
if (flags & ETHARP_FLAG_STATIC_ENTRY) {
|
if (flags & ETHARP_FLAG_STATIC_ENTRY) {
|
||||||
/* record static type */
|
/* record static type */
|
||||||
arp_table[i].state = ETHARP_STATE_STATIC;
|
arp_table[i].state = ETHARP_STATE_STATIC;
|
||||||
|
} else if (arp_table[i].state == ETHARP_STATE_STATIC) {
|
||||||
|
/* found entry is a static type, don't overwrite it */
|
||||||
|
return ERR_VAL;
|
||||||
} else
|
} else
|
||||||
#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
|
#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user