Skip to content

ext/sockets: adding IPPROTO_ICMP* constants for socket creations. #16737

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

Closed
wants to merge 3 commits into from

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Nov 9, 2024

Is to create socket for Internet Control Message Protocol context. Due to their nature, they are meant to be used via raw sockets rather than TCP/UDP.

Is to create socket for Internet Control Message Protocol context.
Due to their nature, they are meant to be used via
raw sockets rather than TCP/UDP.
@cmb69
Copy link
Member

cmb69 commented Nov 9, 2024

Makes sense to me. Maybe add a test to show the intended usage?

@devnexen devnexen marked this pull request as draft November 9, 2024 13:59
@devnexen devnexen marked this pull request as ready for review November 9, 2024 14:41
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you for the test! With a couple of changes, the test should pass on Windows, too.

PS: for reference: https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket

@devnexen devnexen requested a review from cmb69 November 12, 2024 18:13
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

I'm fine with adding this. Final decision is up to the code owner of ext/sockets, though. ;)

@devnexen
Copy link
Member Author

I think he agrees with me ;)

@devnexen devnexen closed this in 33ba1a4 Nov 12, 2024
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.

2 participants