Skip to content

Add ETH_P_ALL protocol number to SockProtocol#1768

Merged
bors[bot] merged 1 commit intonix-rust:masterfrom
valdaarhun:add_eth_p_all
Jul 24, 2022
Merged

Add ETH_P_ALL protocol number to SockProtocol#1768
bors[bot] merged 1 commit intonix-rust:masterfrom
valdaarhun:add_eth_p_all

Conversation

@valdaarhun
Copy link
Copy Markdown
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.

Comment thread src/sys/socket/mod.rs Outdated
@valdaarhun
Copy link
Copy Markdown
Contributor Author

@asomers I have made the changes.

Comment thread src/sys/socket/mod.rs Outdated
@asomers
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

I have squashed the commits.

Copy link
Copy Markdown
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