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

Add ETH_P_ALL protocol number to SockProtocol #1768

Merged
merged 1 commit into from
Jul 24, 2022
Merged

Add ETH_P_ALL protocol number to SockProtocol #1768

merged 1 commit into from
Jul 24, 2022

Conversation

valdaarhun
Copy link
Contributor

Hi. I am working on a networking project that uses packet sockets and noticed that ETH_P_ALL is not there in the SockProtocol enum. I thought it would be nice to have it here alongside IPPROTO_TCP and IPPROTO_UDP instead of having to separately import it from the libc crate.

src/sys/socket/mod.rs Outdated Show resolved Hide resolved
@valdaarhun
Copy link
Contributor Author

@asomers I have made the changes.

src/sys/socket/mod.rs Outdated Show resolved Hide resolved
@asomers
Copy link
Member

asomers commented Jul 24, 2022

Good. Now would you please squash? If you rebase too, that will fix the CI failures.

Add note to Changelog.md

Make changes in comments

Co-authored-by: Alan Somers <asomers@gmail.com>

Add Android as target os for ETH_P_ALL
@valdaarhun
Copy link
Contributor Author

I have squashed the commits.

Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

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

bors r+

@bors bors bot merged commit 00f6981 into nix-rust:master Jul 24, 2022
@valdaarhun valdaarhun deleted the add_eth_p_all branch July 24, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants