Skip to content

RDKCOM-5438: RDKBDEV-3293 Fix Condition check for adding default IPv6 route in WANManager#150

Merged
guto86 merged 1 commit into
rdkcentral:mainfrom
aprasad-97:RDKBDEV-3293
Jan 14, 2026
Merged

RDKCOM-5438: RDKBDEV-3293 Fix Condition check for adding default IPv6 route in WANManager#150
guto86 merged 1 commit into
rdkcentral:mainfrom
aprasad-97:RDKBDEV-3293

Conversation

@aprasad-97
Copy link
Copy Markdown
Contributor

Reason for change: After enabling Wan Manager Unification flag in MXL build, we observed that default IPv6 route for erouter0 was not getting added in CM during bootup. So fixed condition check to specifically check erouter0 interface while adding route.

Risks: Low

Signed-off-by: Aiswarya Prasad aprasad@maxlinear.com

@aprasad-97 aprasad-97 requested a review from a team as a code owner September 24, 2025 11:35
Comment thread source/WanManager/wanmgr_interface_sm.c Outdated

buffer[0] = '\0';
if ((fp_route = popen("ip -6 ro | grep default", "r"))) {
if ((fp_route = popen("ip -6 ro show default dev erouter0", "r"))) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p_VirtIf->Name should be used instead of hard-coding erouter0.
Could you please clarify how this change addresses the IPv6 router issue?
does the MXL platform have a different default IPv6 router apart from the WAN interface in this scenario?"

Copy link
Copy Markdown
Contributor Author

@aprasad-97 aprasad-97 Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, correct.
This is observed in MXL platform because we have default IPv6 route present for wan0(for Docsis Management) apart from that of erouter0 in CM.
So, this condition check is not enough to add default erouter0 route and thus default route for erouter0 is missing in MXL setup.

To fix this, we have modified the condition check in code to add route for erouter0 irrespective of any other default route in CM.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay.
Could you please change the hardcoded erouter0 to "p_VirtIf->Name" ?

Copy link
Copy Markdown
Contributor Author

@aprasad-97 aprasad-97 Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, addressed the review comment @S-Parthiban-Selvaraj
Sorry the delay in response. I was occupied with a bit high priority work in our platform so far.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aprasad-97
Thanks for the update. The changes look good. We will bring this change in the next release.

@pradeeptakdas pradeeptakdas changed the title RDKBDEV-3293 : Fix Condition check for adding default IPv6 route in WANManager RDKCOM-5438: RDKBDEV-3293 Fix Condition check for adding default IPv6 route in WANManager Sep 24, 2025
@aprasad-97 aprasad-97 force-pushed the RDKBDEV-3293 branch 3 times, most recently from 4d47111 to d781ebd Compare November 17, 2025 07:39
…ANManager

Reason for change: After enabling Wan Manager Unification flag in MXL build, we observed that default IPv6 route for erouter0 was not getting added in CM during bootup. So fixed condition check to specifically check erouter0 interface while adding route.
Risks: Low
Signed-off-by: Aiswarya Prasad <aprasad@maxlinear.com>
@guto86 guto86 merged commit 919a2cb into rdkcentral:main Jan 14, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants