Skip to content

Conversation

@jukkar
Copy link
Member

@jukkar jukkar commented Sep 24, 2023

It is always possible to bind to same port if the sockets are in different address family.

It is always possible to bind to same port if the sockets
are in different address family.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
@jukkar
Copy link
Member Author

jukkar commented Sep 24, 2023

Tried to run a sample app with both IPv4 and IPv6 enabled, and noticed that IPv4 binding failed because same port was used by IPv6. I even disabled reuseport support which did not help. This used to work earlier but started to fail after the reuseport PR #61885

@carlescufi carlescufi merged commit 37b8dc1 into zephyrproject-rtos:main Sep 25, 2023
@jukkar jukkar deleted the fix-reuseport-with-different-af branch September 26, 2023 09:05
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.

6 participants