mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
PPP: clear address state before clearing address
netif_ip6_addr_set_state() relies on being able to access the old address on invalidation, for example in order to invalidate PCBs and leave the correct solicited-node MLD group.
This commit is contained in:
parent
abef0b44a8
commit
2e528ad510
@ -1273,8 +1273,8 @@ int cif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) {
|
||||
LWIP_UNUSED_ARG(our_eui64);
|
||||
LWIP_UNUSED_ARG(his_eui64);
|
||||
|
||||
netif_ip6_addr_set(pcb->netif, 0, IP6_ADDR_ANY6);
|
||||
netif_ip6_addr_set_state(pcb->netif, 0, IP6_ADDR_INVALID);
|
||||
netif_ip6_addr_set(pcb->netif, 0, IP6_ADDR_ANY6);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user