File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
6
6
## [ Unreleased] - ReleaseDate
7
7
### Added
8
8
9
+ - Added ETH_P_ALL to SockProtocol enum
10
+ (#[ 1768] ( https://github.com/nix-rust/nix/pull/1768 ) )
9
11
- Added four non-standard Linux ` SysconfVar ` variants
10
12
(#[ 1761] ( https://github.com/nix-rust/nix/pull/1761 ) )
11
13
- Added const constructors for ` TimeSpec ` and ` TimeVal `
Original file line number Diff line number Diff line change @@ -214,6 +214,13 @@ pub enum SockProtocol {
214
214
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
215
215
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
216
216
NetlinkCrypto = libc:: NETLINK_CRYPTO ,
217
+ /// Non-DIX type protocol number defined for the Ethernet IEEE 802.3 interface that allows packets of all protocols
218
+ /// defined in the interface to be received.
219
+ /// ([ref](https://man7.org/linux/man-pages/man7/packet.7.html))
220
+ // The protocol number is fed into the socket syscall in network byte order.
221
+ #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
222
+ #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
223
+ EthAll = libc:: ETH_P_ALL . to_be ( ) ,
217
224
}
218
225
219
226
#[ cfg( any( target_os = "linux" ) ) ]
You can’t perform that action at this time.
0 commit comments