mirror of
https://github.com/jiangcuo/nix.git
synced 2026-08-12 23:19:09 +00:00
Add ETH_P_ALL protocol number to SockProtocol
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
This commit is contained in:
parent
7cc33c15fe
commit
1040d97036
@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
||||
## [Unreleased] - ReleaseDate
|
||||
### Added
|
||||
|
||||
- Added ETH_P_ALL to SockProtocol enum
|
||||
(#[1768](https://github.com/nix-rust/nix/pull/1768))
|
||||
- Added four non-standard Linux `SysconfVar` variants
|
||||
(#[1761](https://github.com/nix-rust/nix/pull/1761))
|
||||
- Added const constructors for `TimeSpec` and `TimeVal`
|
||||
|
||||
@ -214,6 +214,13 @@ pub enum SockProtocol {
|
||||
#[cfg(any(target_os = "android", target_os = "linux"))]
|
||||
#[cfg_attr(docsrs, doc(cfg(all())))]
|
||||
NetlinkCrypto = libc::NETLINK_CRYPTO,
|
||||
/// Non-DIX type protocol number defined for the Ethernet IEEE 802.3 interface that allows packets of all protocols
|
||||
/// defined in the interface to be received.
|
||||
/// ([ref](https://man7.org/linux/man-pages/man7/packet.7.html))
|
||||
// The protocol number is fed into the socket syscall in network byte order.
|
||||
#[cfg(any(target_os = "android", target_os = "linux"))]
|
||||
#[cfg_attr(docsrs, doc(cfg(all())))]
|
||||
EthAll = libc::ETH_P_ALL.to_be(),
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "linux"))]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user