Skip to content
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

net: NET_NATIVE nad Multicast Listener Discovery cherry-picks #2064

Merged

Conversation

rlubos
Copy link
Contributor

@rlubos rlubos commented Oct 7, 2024

Cherry-pick NET_NATIVE improvements and MLD public header.

…ATIVE_IPV4

IPv4 Kconfig options which only affect native IPv4 stack should be
dependent on NET_NATIVE_IPV4, similarly as it's done for IPv6.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 5d085b4)
…r IP address

It shouldn't be needed to enable native networking to be able to
add/delete IP addresses on network interfaces.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 8d296ba)
…ess registration

Make sure it's possible to register IPv4/6 addresses on an offloaded
interface. Add an extra build configuration to make sure it's also
possible when native IP stack is disabled.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 4595295)
…TIVE is disabled

Some commands can be executed and some statuses can be printed even if
native IP is disabled.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit c377017)
…om syscalls

Native IP socket implementation need only be build if native IP stack is
enabled. Therefore, split the native IP sockets from the common socket
syscalls shared across all socket implementations.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 404e9c7)
…T_NATIVE

In case NET_NATIVE is disabled, certain network stack components do not
need to be compiled. Otherwise, they could throw errors if
--no-gc-sections compiler options is enabled.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 2e1d896)
…_OFFLOAD

Net offloading doesn't need net TC threads to be enabled as they're used
by the native stack. This fixes build if CONFIG_NET_OFFLOAD is enabled
but native stack is disabled.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit bdbf7cc)
Macros with flow control are discouraged and generate compliance error,
hence remove it and replace the corresponding code with simple errno
assignments.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 0c1550d)
IPv6 MLD API was so far defined in an internal header. This does not
seem correct though, as application code should be able to join/leave
multicast groups, hence the API should be exposed in a public header,
just as it is done for its IPv4 countepart - IGMP.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit c6498bb)
…6 lookups

IPv6 based interface lookups doesn't require native IP stack support,
hence reflect that in the API.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit f4335d2)
…mon file

msghdr_non_empty_iov_count() is used by TLS sockets too therefore should
be available regardless of native IP sockets being enabled or not.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 66ff30e)
@rlubos rlubos force-pushed the ncs/cherry-pick-native-separation-and-mld branch from e10e6e4 to a34ef1d Compare October 10, 2024 11:53
@rlubos rlubos merged commit 20e2052 into nrfconnect:main Oct 16, 2024
16 checks passed
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.

4 participants