mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-30 22:43:54 +08:00
more cleanup prework to fix bug #45029
This commit is contained in:
@@ -1209,7 +1209,7 @@ int sif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) {
|
||||
LWIP_UNUSED_ARG(his_eui64);
|
||||
|
||||
IN6_LLADDR_FROM_EUI64(ip6, our_eui64);
|
||||
ip6_addr_copy(pcb->netif->ip6_addr[0], ip6);
|
||||
netif_ip6_addr_set(pcb->netif, 0, &ip6);
|
||||
netif_ip6_addr_set_state(pcb->netif, 0, IP6_ADDR_PREFERRED);
|
||||
/* FIXME: should we add an IPv6 static neighbor using his_eui64 ? */
|
||||
return 1;
|
||||
@@ -1223,8 +1223,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);
|
||||
ip6_addr_set_zero(&pcb->netif->ip6_addr[0]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user