Skip to content

RDKB-63810: Adding support for DHCP Release when DHCPManager is enabled#197

Open
aadhithan01 wants to merge 2 commits intordkcentral:mainfrom
aadhithan01:RDKB-63810
Open

RDKB-63810: Adding support for DHCP Release when DHCPManager is enabled#197
aadhithan01 wants to merge 2 commits intordkcentral:mainfrom
aadhithan01:RDKB-63810

Conversation

@aadhithan01
Copy link
Copy Markdown

RDKB-63810: CPE is sending DHCPv4/6 Releases in every FR/WAN refresh

Reason for change: CPE shouldn't send DHCPv4/6 Releases in every FR/WAN refresh
Test Procedure: provided Below
Risks: Low

Test the DHCPv6 RDKRelease(Device.DHCPv6.Client.1.X_RDK_Release) and collect the dibbler log and dhcpmanager log, also check DHPCManager sending release msg to wanmanager - Done
Test the DHCPv4 RDKRelease((Device.DHCPv4.Client.1.X_RDK_Release) ) and collect the udhcpc log and dhcpmaanger log, also check DHPCManager sending release msg to wanmanager - DONE
Test the RDK restart for DHCPv4(Device.DHCPv4.Client.1.X_RDK_Restart) and collect the udhcpc log and dhcpmaanger log
Test the RDK restart for DHCPv6 (Device.DHCPv6.Client.1.X_RDK_Restart) and collect the udhcpc log and dhcpmaanger log
Do Disable/Enable and check whether DHCPv4 and DHCPv6 release msg sent to WANMANAGER
(Device.DHCPv6.Client.1.Enable bool false), (Device.DHCPv6.Client.1.Enable bool true)
kill the udhcpc and dibbler-client with sigTERM(kill -TERM) and check whether DHCPv4 and DHCPv6 release msg sent to WANMANAGER

@aadhithan01 aadhithan01 requested a review from a team as a code owner March 17, 2026 12:43
Copilot AI review requested due to automatic review settings March 17, 2026 12:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds DHCP release support for DHCPManager-backed DHCPv4/v6 client stop flows so releases are only triggered when explicitly requested, avoiding release packets during FR/WAN refresh scenarios.

Changes:

  • Update DHCPManager stop logic to set <iface>.X_RDK_Release=true when a release is requested.
  • Retain <iface>.Enable=false behavior when stopping without release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants