Skip to content

Reason for change: Fix for Client IPv4 address display when#72

Open
sethumcacit-bot wants to merge 2 commits into
developfrom
topic/XB10-2559_Fix
Open

Reason for change: Fix for Client IPv4 address display when#72
sethumcacit-bot wants to merge 2 commits into
developfrom
topic/XB10-2559_Fix

Conversation

@sethumcacit-bot

Copy link
Copy Markdown

LAN DHCP is Disable
Test Procedure: Build and Verify
Priority: P1
Risks: low

LAN DHCP is Disable
Test Procedure: Build and Verify
Priority: P1
Risks: low
@sethumcacit-bot sethumcacit-bot requested a review from a team as a code owner May 27, 2026 11:13
Copilot AI review requested due to automatic review settings May 27, 2026 11:13
@sethumcacit-bot sethumcacit-bot requested a review from a team as a code owner May 27, 2026 11:13

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.

Pull request overview

This PR updates LAN Manager host state handling to remove a client's IPv4 address from the host table when LAN DHCP is disabled for supported product builds.

Changes:

  • Adds product-gated syscfg checks for device mode and DHCP server state.
  • Clears host IPv4 address state when DHCP is disabled.
  • Skips lease/range validation after IPv4 state is removed.

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

Comment thread source/lm/lm_main.c Outdated
Comment thread source/lm/lm_main.c Outdated
Comment on lines +723 to +729
CcspTraceWarning(("<%s> devicemode: %s\n",_FUNCTION__, device_mode));
if(strncmp(device_mode, "business", strlen("business")) == 0)
{
#endif
if(!syscfg_get( NULL, "dhcp_server_enabled", dhcp_server_enabled, sizeof(dhcp_server_enabled)))
{
CcspTraceWarning(("<%s> dhcp_server_enabled: %s\n",_FUNCTION__, dhcp_server_enabled));
Copilot AI review requested due to automatic review settings May 27, 2026 11:21

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.

Pull request overview

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

Comment thread source/lm/lm_main.c Outdated

if(pHost->ipv4Active == TRUE) {
if (state) {
CcspTraceWarning(("<%s> Debug trace for XB10-2559 \n",__FUNCTION__));
Comment thread source/lm/lm_main.c Outdated
Comment on lines +714 to +719
CcspTraceWarning(("<%s> Debug trace for XB10-2559 \n",__FUNCTION__));
#if defined (_CBR_PRODUCT_REQ_) || defined (_ONESTACK_PRODUCT_REQ_)
char device_mode[32] = {0};
char dhcp_server_enabled[32] = {0};

CcspTraceWarning(("<%s> _ONESTACK_PRODUCT_REQ_ \n",__FUNCTION__));
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants