Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHARMAN-1818 : Adding a ipv6 toggle to solve link local DAD failure #85

Draft
wants to merge 2 commits into
base: bugfix_dhcpc_selfheal
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion source/WanManager/wanmgr_interface_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,15 @@ static void WanMgr_MonitorDhcpApps (WanMgr_IfaceSM_Controller_t* pWanIfaceCtrl)
(p_VirtIf->IP.Dhcp6cPid > 0 && // dhcp started by ISM
WanMgr_IsPIDRunning(p_VirtIf->IP.Dhcp6cPid) != TRUE))) // but DHCP client not running
{
if (p_VirtIf->IP.Dhcp6cPid != -1 )
if (p_VirtIf->IP.Dhcp6cPid == -1 )
{
/* DHCPv6c client can fail to start due to DAD failuer on the link local address.
* This could happen if multiple WAN interfaces are up with same MAC address. Toggling will restart the DAD again.
*/
CcspTraceInfo(("%s %d - DHCPv6c client failed to start. Toggeling Ipv6 before retry... \n", __FUNCTION__, __LINE__, p_VirtIf->Name));
Force_IPv6_toggle(p_VirtIf->Name);
}
else
{
#ifdef ENABLE_FEATURE_TELEMETRY2_0
t2_event_d("SYS_ERROR_DHCPV6Client_notrunning", 1);
Expand Down