Skip to content

RDKB-63681: Move DHCP option43 and option60 related changes to the Hal layer#76

Merged
hpatel006c merged 21 commits intordkcentral:developfrom
Amaresh-Kotekal:develop
Feb 27, 2026
Merged

RDKB-63681: Move DHCP option43 and option60 related changes to the Hal layer#76
hpatel006c merged 21 commits intordkcentral:developfrom
Amaresh-Kotekal:develop

Conversation

@Amaresh-Kotekal
Copy link
Contributor

Reason for change:Move DHCP option related changes to the HAL
Test Procedure: verify the logic and functionality
Risks: High
Priority: P1

Amaresh-Kotekal and others added 20 commits January 20, 2026 19:40
Reason for change:preparing custom options for 43 and 60
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:preparing custom options for 43 and 60
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:preparing custom options for 43 and 60
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:Adding get handler for Device.DHCPv4.Client.%d.Events
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:Getting the supported codecs of option 60
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:Adding the get handler
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:Adding the get handler
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change: Voice DHCP No Response with PacketCable Supported
Codecs Length = 3

Test Procedure: Voice testing
Risks: NA
Priority: P1
Reason for change:Option 60, codec, mibs changes
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:DHCPv4.Client.2.Status is not correct
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
Reason for change:Enable the debug logs
Test Procedure: verify the logic and functionality
Risks: Low
Priority: P1
@Amaresh-Kotekal Amaresh-Kotekal requested a review from a team as a code owner February 25, 2026 00:16
Copilot AI review requested due to automatic review settings February 25, 2026 00:16
Reason for change:Move DHCP option related changes to the HAL
Test Procedure: verify the logic and functionality
Risks: High
Priority: P1
Copy link
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

This PR aims to relocate DHCPv4 option 43/60 (voice/MTA-related) logic out of DHCPMgrUtils and into the HAL layer, simplifying the CustomOptions library and build configuration.

Changes:

  • Removed the voice custom options implementation file and its inclusion in the CustomOptions build.
  • Dropped the --enable-voice_mta_support configure option / automake conditional.
  • Enabled udhcpc plugin file-logging debug macros by default.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
source/DHCPMgrUtils/CustomOptions/dhcpmgr_voice_custom_options.c Deleted the existing voice-specific implementations for DHCP option 43/60 generation.
source/DHCPMgrUtils/CustomOptions/Makefile.am Stops compiling the removed voice custom options source into libcustomoptions.
source/DHCPClientUtils/DHCPv4Client/dhcpmgr_udhcpc_plugin/dhcpmgr_udhcpc.c Switches plugin log redirection block from disabled to enabled.
configure.ac Removes the voice_mta_support configure flag and VOICE_MTA_SUPPORT conditional.
Comments suppressed due to low confidence (1)

source/DHCPClientUtils/DHCPv4Client/dhcpmgr_udhcpc_plugin/dhcpmgr_udhcpc.c:13

  • This change enables the plugin log redirection block unconditionally (#if 1), causing every DHCPMGR_LOG_* call in this plugin to append to /rdklogs/logs/DHCPMGRLog.txt.0. That can significantly increase I/O and log volume in production, and the comment now contradicts the behavior (“Uncomment ... to enable”). Please keep logging disabled by default (or gate it behind a build flag/runtime setting) and update the comment accordingly.
#if 1  // Uncomment the following code to enable plugin logs

#define PLUGIN_DBG_PRINT(fmt ...)     {\
    FILE     *fp        = NULL;\
    fp = fopen ( "/rdklogs/logs/DHCPMGRLog.txt.0", "a+");\

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

@hpatel006c hpatel006c merged commit a1ea01a into rdkcentral:develop Feb 27, 2026
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 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