Skip to content

Conversation

@wangchen61698
Copy link
Contributor

Note: Please adhere to Contributing Guidelines.

Summary

when processing DHCP offer messages in dhcp_dequest, netlib_set_ipv4addr is used to set the IP regardless of whether the IP has changed, resulting in disconnection between the two communication devices

Impact

dhcpc setting ip addr

Testing

It has passed self-testing in true machine(speaker equipment)

@jerpelea jerpelea changed the title dhcpc.c: Avoid setting IP to stack when oldaddr matches presult->ipaddr netutils/dhcpc: avoid setting IP to stack when oldaddr matches presult->ipaddr Dec 22, 2025
jerpelea
jerpelea previously approved these changes Dec 22, 2025
Copy link
Contributor

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

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

What is the self-test? What were the results (and are there any test logs)? Can you say anything about the arch/chip of the test machine? Please provide some more testing information.

when processing DHCP offer messages in dhcp_dequest, netlib_set_ipv4addr is used to set the IP regardless of whether the IP has changed, resulting in disconnection between the two communication devices

Signed-off-by: wangchen <wangchen41@xiaomi.com>
@acassis
Copy link
Contributor

acassis commented Dec 23, 2025

@linguini1 please review

@linguini1
Copy link
Contributor

@linguini1 please review

I would still like to know what the testing is

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants