-
Notifications
You must be signed in to change notification settings - Fork 8.3k
drivers: nsos: Add support for AF_UNIX and AF_PACKET families #80557
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
Conversation
|
Hello @n-gillet, and thank you very much for your first pull request to the Zephyr project! |
|
Commit 09741c7c8f6e1d0ba4d97688ef5bc07bc787f444 looks unexpected here? |
Sorry. bad rebase. I will fix that. |
|
One question for you. I have the tests for |
That's not really correct, they're only supported with NSOS offloaded driver, it's not used in that tests. It fails because |
|
Hi, |
05a681a to
a63a177
Compare
|
@rlubos : I think I should merge this last commit. Tell me what you prefer. |
include/zephyr/net/net_ip.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message of the last commit drivers: nsos: fix support of AF_PACKET is a bit misleading as the change does not do any changes for the nsos driver, it just enables it to work.
Could you change the commit subject to net: ip: Add check for packet socket for offloaded sockets
Not sure what exactly to say in commit message. Could you describe there why this change is needed and also mention nsos driver there. Currently your commit message says it fixes things but does not describe why the fix works in this case (which is important to write here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I missed your comment about merging the last commit. Yes, we could merge it in which case my comment is not really valid any more 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, I missed your comment too. It should be done now.
7659840 to
7167cbc
Compare
Handle AF_UNIX family sockets for NSOS offloaded driver Note that the size of struct sockaddr_un is done conditionnaly based on CONFIG_NET_NATIVE_OFFLOADED_SOCKETS Also, NET_SOCKADDR_PTR_MAX_SIZE needs to be updated only if CONFIG_NET_SOCKETS_PACKET is not set. Otherwise, for a AF_PACKET socket, a struct net_context variable can be corrupted, as local would have be on 16 bytes instead of 20 bytes. Signed-off-by: Noemie Gillet <[email protected]>
Handle AF_PACKET family. Signed-off-by: Noemie Gillet <[email protected]>
7167cbc to
99c80f2
Compare
|
Hi,
What should I do ? |
This looks like some global issue, not related to this PR, it's also been reported in other PRs on Discord. Let's try a rerun for starters. |
Thanks ! |
These families were not supported.
Add the support based on already supported families.