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

Remove redundant argument from POSIX_SOCKET_FAMILY_REGISTER macro #18

Closed
wants to merge 1 commit into from

Conversation

mariasfiraiala
Copy link
Contributor

Signed-off-by: Maria Sfiraiala maria.sfiraiala@gmail.com

@razvand razvand self-requested a review August 21, 2022 13:55
@razvand razvand added the bug Something isn't working label Aug 21, 2022
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mariasfiraiala

Please add an extended commit message, explaining what issue is solved by this commit (i.e. AF_INET6 registration).

@mariasfiraiala mariasfiraiala force-pushed the socket-fix branch 3 times, most recently from 4858168 to 6d4ddb6 Compare August 21, 2022 18:12
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thaks, @mariasfiraiala , works.

Reviewed-by: Razvan Deaconescu razvan.deaconescu@cs.pub.ro

In the `POSIX_SOCKET_FAMILY_REGISTER` macro, when the IPv6 option is
selected, the third argument produces a compilation error.

Due to the macro being defined in
`unikraft/lib/posix-socket/include/uk/socket_driver.h` with only 2
arguments, the third argument becomes redundant.

This commit removes it and ensures that the `AF_INET6` is successfully
registered.

Signed-off-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Copy link
Member

@marcrittinghaus marcrittinghaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! 🙏🏻

Good evidence of "what you didn't test, does not work". I use IPv4 99% of the time and must have forgotten to change this when updating the API.

Approved-by: Marc Rittinghaus marc.rittinghaus@kit.edu

unikraft-bot pushed a commit that referenced this pull request Aug 22, 2022
In the `POSIX_SOCKET_FAMILY_REGISTER` macro, when the IPv6 option is
selected, the third argument produces a compilation error.

Due to the macro being defined in
`unikraft/lib/posix-socket/include/uk/socket_driver.h` with only 2
arguments, the third argument becomes redundant.

This commit removes it and ensures that the `AF_INET6` is successfully
registered.

Signed-off-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Approved-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #18
@mariasfiraiala mariasfiraiala deleted the socket-fix branch August 22, 2022 08:56
@mariasfiraiala mariasfiraiala restored the socket-fix branch August 22, 2022 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci/merged
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

4 participants