Skip to content

net: gethostname: Make available even if offloaded sockets are used #90843

@clamattia

Description

@clamattia

Is your enhancement proposal related to a problem? Please describe.
As an application developer, I would like a build not to fail, when offloaded sockets are activated, even when gethostname is used.

if(NOT CONFIG_NET_SOCKETS_OFFLOAD)
zephyr_library_sources(
  getnameinfo.c
  sockets_misc.c
  )
endif()

Implementation:

int z_impl_zsock_gethostname(char *buf, size_t len)

Describe the solution you'd like
gethostname is available even if offloaded sockets are used.

Describe alternatives you've considered
None

Additional context
Please let me know, if this is technically not possible. I will close the issue happily.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions