-
Notifications
You must be signed in to change notification settings - Fork 8.2k
net: posix: fix hostname config conflict with unique updates #97826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
net: posix: fix hostname config conflict with unique updates #97826
Conversation
|
Hello @PragatiGarg-eaton, and thank you very much for your first pull request to the Zephyr project! |
|
@PragatiGarg-eaton - tests need to pass in order for the change to be merged. Can you revisit? Please feel free to jump on discord to ask for pointers for running failing tests. |
yes, I'll check the failures. |
7f28ab5 to
8ad0a48
Compare
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
b24c896 to
afaf16a
Compare
Decouple NET_HOSTNAME_MAX_LEN from NET_HOSTNAME_DYNAMIC to resolve Kconfig conflict when using POSIX networking with unique hostname updates. This restores functionality that worked in Zephyr 3.6. - Remove forced selection of NET_HOSTNAME_DYNAMIC from POSIX_NETWORKING - Make NET_HOSTNAME_MAX_LEN available independently - Add build assertions for hostname length validation - Update test configurations for new dependency structure Fixes zephyrproject-rtos#95811 Signed-off-by: Pragati Garg <[email protected]> Signed-off-by: PragatiGarg-eaton <[email protected]>
afaf16a to
72c0a13
Compare
|
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
Overview
Fixes Kconfig conflict between POSIX networking and unique hostname updates that was introduced in v3.7.1.
Problem
Enabling
CONFIG_POSIX_API=yauto-selectsCONFIG_POSIX_NETWORKING=y, which force-selectsCONFIG_NET_HOSTNAME_DYNAMIC=y. This conflicts withCONFIG_NET_HOSTNAME_UNIQUE_UPDATE=y, preventing the use of POSIX networking with unique hostname updates.Solution
Decouple
NET_HOSTNAME_MAX_LENfromNET_HOSTNAME_DYNAMICdependency:NET_HOSTNAME_DYNAMICfrom POSIX networkingTesting
Fixes #95811