Skip to content

RDKB-66929 : [Rogers][8.6p4s4] Device inaccessible and loses internet | When GW switch back to router from bridge mode. - #232

Merged
guto86 merged 3 commits into
mainfrom
RDKB-66929-Test_1
Oct 1, 2026
Merged

guto86 merged 3 commits into
mainfrom
RDKB-66929-Test_1

Conversation

@LakshminarayananShenbagaraj

Copy link
Copy Markdown
Contributor

Reason for change:
When the CPE is in bridge mode router advertisement has been received for solicit via rdisc6 due to the reason IPv6 default gateway has not been filled up for connectivity checki. For Recovery, we have to restart connectivity check either IPv4 or IPv6 default gateway not valid case.

Test Procedure:

  1. Connectivity check should start with valid parameters.

Risks: High

… | When GW switch back to router from bridge mode.

Reason for change:
When the CPE is in bridge mode router advertisement has been received for solicit via rdisc6 due to the reason IPv6 default gateway has not been filled up for connectivity checki. For Recovery, we have to restart connectivity check either IPv4 or IPv6 default gateway not valid case.

Test Procedure:
1. Connectivity check should start with valid parameters.

Risks: High

Signed-off-by: LakshminarayananShenbagaraj <lakshminarayanan.shenbagaraj2@sky.uk>
… | When GW switch back to router from bridge mode.

Reason for change:
When the CPE is in bridge mode router advertisement has been received for solicit via rdisc6 due to the reason IPv6 default gateway has not been filled up for connectivity checki. For Recovery, we have to restart connectivity check either IPv4 or IPv6 default gateway not valid case.

Test Procedure:
1. Connectivity check should start with valid parameters.

Risks: High

Signed-off-by: LakshminarayananShenbagaraj <lakshminarayanan.shenbagaraj2@sky.uk>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 21:47
@LakshminarayananShenbagaraj LakshminarayananShenbagaraj added the bug Something isn't working label Sep 29, 2026

Copilot AI left a comment

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.

Copilot review overview

🟡 Changes recommended

STOP validation precedence, persistent DAD delays, and failing test expectations must be addressed.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Improves connectivity-check recovery after bridge-to-router transitions by validating gateways and IPv6 readiness.

Changes:

  • Restarts connectivity checks after DHCP updates.
  • Adds IPv6 DAD readiness detection.
  • Validates DNS and gateway availability before TAD startup.
File Description
source/​WanManager/​wanmgr_interface_sm.c Adds DAD checks and TAD success handling.
source/​WanManager/​wanmgr_dhcp_event_handler.c Triggers checks after DHCP lease updates.
source/​TR-181/​middle_layer_src/​wanmgr_rbus_handler_apis.c Adds gateway validation for TAD.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread source/TR-181/middle_layer_src/wanmgr_rbus_handler_apis.c Outdated
Comment thread source/WanManager/wanmgr_interface_sm.c
…rectly prevents stop events'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

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.

Copilot review overview

🟡 Changes recommended

DAD can incorrectly pass on link-local addresses, gateway validation permits mismatched families, and existing tests will fail.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (2)
Previously missed (1)

In code that hasn't changed since last review

Medium severity Restrict DAD completion check to global-scope IPv6 addresses

source/​WanManager/​wanmgr_interface_sm.c:1100

This treats any IPv6 address on the interface as proof that DAD is complete. A stable link-local address is normally already present, so the helper can return true before the newly assigned global WAN address even appears; scope is parsed but never used. Restrict the match to global-scope addresses so the wait actually covers the WAN address.

This issue also appears on line 1141 of the same file.

Comment thread source/TR-181/middle_layer_src/wanmgr_rbus_handler_apis.c
@guto86
guto86 merged commit c870dc7 into main Oct 1, 2026
8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants