mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 21:14:09 +00:00
acd: inform address is good only when going in ongoing state
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
05ffe144dd
commit
30d445bd39
@ -257,9 +257,6 @@ acd_tmr(void)
|
|||||||
if (acd->sent_num == 0) {
|
if (acd->sent_num == 0) {
|
||||||
acd->state = ACD_STATE_ANNOUNCING;
|
acd->state = ACD_STATE_ANNOUNCING;
|
||||||
|
|
||||||
/* let acd user know that the address is good and can be used */
|
|
||||||
acd->acd_conflict_callback(netif, ACD_IP_OK);
|
|
||||||
|
|
||||||
/* reset conflict count to ensure fast re-probing after announcing */
|
/* reset conflict count to ensure fast re-probing after announcing */
|
||||||
acd->num_conflicts = 0;
|
acd->num_conflicts = 0;
|
||||||
|
|
||||||
@ -283,6 +280,9 @@ acd_tmr(void)
|
|||||||
("acd_tmr(): changing state to ONGOING: %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n",
|
("acd_tmr(): changing state to ONGOING: %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n",
|
||||||
ip4_addr1_16(&acd->ipaddr), ip4_addr2_16(&acd->ipaddr),
|
ip4_addr1_16(&acd->ipaddr), ip4_addr2_16(&acd->ipaddr),
|
||||||
ip4_addr3_16(&acd->ipaddr), ip4_addr4_16(&acd->ipaddr)));
|
ip4_addr3_16(&acd->ipaddr), ip4_addr4_16(&acd->ipaddr)));
|
||||||
|
|
||||||
|
/* finally, let acd user know that the address is good and can be used */
|
||||||
|
acd->acd_conflict_callback(netif, ACD_IP_OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user