Skip to content

net: sockets: Enable gethostname even if socket-offloading is selected #90849

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

Merged

Conversation

clamattia
Copy link
Collaborator

Also allow gethostname to be compiled in, even when the socket offloading option is selected.
Fixes: #90843

Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

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

Your issue only mentioned gethostname but now you are also enabling getnameinfo for offloaded sockets, perhaps that was not the intention?

@clamattia clamattia force-pushed the host_name_socket_offloading branch from f2633b0 to 23b9f0a Compare May 30, 2025 07:45
@clamattia
Copy link
Collaborator Author

Your issue only mentioned gethostname but now you are also enabling getnameinfo for offloaded sockets, perhaps that was not the intention?

My bad, fixed.

@github-actions github-actions bot added the size: XS A PR changing only a single line of code label May 30, 2025
Copy link
Collaborator

@rlubos rlubos left a comment

Choose a reason for hiding this comment

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

Please fix the compliance (missing signoff line in the commit message).

Also allow `gethostname` to be compiled in, even when the socket offloading
option is selected.

Signed-off-by: Cla Mattia Galliard <cla-mattia.galliard@zuehlke.com>
@clamattia clamattia force-pushed the host_name_socket_offloading branch from 23b9f0a to 39f7e2a Compare May 30, 2025 07:57
@clamattia
Copy link
Collaborator Author

Please fix the compliance (missing signoff line in the commit message).

done. Sorry.

@clamattia clamattia requested a review from jukkar May 30, 2025 08:22
Copy link

@kartben kartben merged commit 02d2cc5 into zephyrproject-rtos:main Jun 3, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Sockets Networking sockets size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

net: gethostname: Make available even if offloaded sockets are used
5 participants