|
595 |
|
595 |
|
596 |
if (!entry) |
596 |
if (!entry) |
597 |
{ |
597 |
{ |
598 |
/* ouch!! we are victim of a DAD */ |
598 |
/* ouch!! we might be victim of a DAD */ |
599 |
|
599 |
|
600 |
/* Logically dead code (DEADCODE) |
|
|
601 |
* b/c loop test compares default Ipv6InterfaceAddress to target |
602 |
|
603 |
Ipv6InterfaceAddress ifaddr; |
600 |
Ipv6InterfaceAddress ifaddr; |
604 |
bool found = false; |
601 |
bool found = false; |
605 |
uint32_t i = 0; |
602 |
uint32_t i = 0; |
606 |
uint32_t nb = 0; |
603 |
uint32_t nb = interface->GetNAddresses (); |
607 |
|
604 |
|
608 |
for (i = 0; i < nb; i++) |
605 |
for (i = 0; i < nb; i++) |
609 |
{ |
606 |
{ |
|
|
607 |
ifaddr = interface->GetAddress (i); |
610 |
if (ifaddr.GetAddress () == target) |
608 |
if (ifaddr.GetAddress () == target) |
611 |
{ |
609 |
{ |
612 |
found = true; |
610 |
found = true; |
|
621 |
interface->SetState (ifaddr.GetAddress (), Ipv6InterfaceAddress::INVALID); |
619 |
interface->SetState (ifaddr.GetAddress (), Ipv6InterfaceAddress::INVALID); |
622 |
} |
620 |
} |
623 |
} |
621 |
} |
624 |
*/ |
622 |
|
625 |
/* we have not initiated any communication with the target so... discard the NA */ |
623 |
/* we have not initiated any communication with the target so... discard the NA */ |
626 |
return; |
624 |
return; |
627 |
} |
625 |
} |