Skip to content

Zephyr RTOS: Getting bind error with respect to sockets #61506

Answered by rlubos
sanjatpanigrahi asked this question in General
Discussion options

You must be logged in to vote

printk("Error number = %d, Error status = %s \n", bind_status, strerror(-bind_status));

Just as I wrote above, bind_status should not be interpreted wiht strerror() as it does not carry the error code. Socket functions in case of error will always return -1, for the actual error code you should check the errno variable (so strerror(errno)) etc.).

As for the board, I'm not familiar with that particular one, but looking at the documentation it seems that the board does not support networking in any form in Zephyr:
https://docs.zephyrproject.org/latest/boards/arm64/intel_socfpga_agilex_socdk/doc/index.html#supported-features
So this is likely the culprit of the bind() failing - if there's …

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbrixandersen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #61319 on August 15, 2023 13:12.