-
Notifications
You must be signed in to change notification settings - Fork 7.4k
NET_SOCKETS_OFFLOAD conflicts with POSIX_API #26033
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
Comments
Since socket offloading is now done underneath As for deprecating |
It looks like the ublox-sara-r4 driver breaks when Should drivers like these include |
@carlescufi as far as I can tell two other drivers will fail to build if the dependency between the files I do not have that hardware but I would be happy to submit a PR for review. |
Thank you very much for the PR. I will wait until the TI maintainer has approved and then I'll merge it. |
Just to clarify, this specific issue should be closed when So if #26129 is okay and merged, there will be one more PR that modifies the Kconfig to remove this dependency. I was going to add the change to the PR in question but I felt the changes should be isolated. I could add the Kconfig change as a separate commit to PR #26129 if the team feels that is a better option. Please let me know. |
This change removes references to raw POSIX types and functions, allowing the drivers to build without NET_SOCKETS_POSIX_NAMES. After this, the dependency between NET_SOCKETS_OFFLOAD and NET_SOCKETS_POSIX_NAMES can be removed. See issue #26033 for additional context Signed-off-by: Adam Porter <[email protected]>
Describe the bug
When using NET_SOCKETS_OFFLOAD, the symbol NET_SOCKETS_POSIX_NAMES is selected. This symbol conflicts with POSIX_API.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to use NET_SOCKETS_OFFLOAD and POSIX_API at the same time. NET_SOCKETS_OFFLOAD should not depend on NET_SOCKETS_POSIX_NAMES.
Impact
I cannot use POSIX_API when using NET_SOCKETS_OFFLOAD.
Additional context
A similar issue was reported in #17353. It sounds like POSIX_API is the "preferred" way of using POSIX BSD sockets in my application. Perhaps NET_SOCKETS_POSIX_NAMES should be deprecated and removed, with breakages fixed where necessary.
The text was updated successfully, but these errors were encountered: