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:
David van Moolenbroek 2017-01-23 17:27:51 +00:00 committed by Sylvain Rochet
parent abef0b44a8
commit 2e528ad510

View File

@ -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;
}