File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
34
34
### Fixed
35
35
- Fix ` SockaddrIn6 ` bug that was swapping flowinfo and scope_id byte ordering.
36
36
([ #1964 ] ( https://github.com/nix-rust/nix/pull/1964 ) )
37
+ - Fix: send ETH_P_ALL in htons format
38
+ ([ #1925 ] ( https://github.com/nix-rust/nix/pull/1925 ) )
37
39
38
40
### Removed
39
41
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ pub enum SockProtocol {
217
217
// The protocol number is fed into the socket syscall in network byte order.
218
218
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
219
219
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
220
- EthAll = libc:: ETH_P_ALL . to_be ( ) ,
220
+ EthAll = ( libc:: ETH_P_ALL as u16 ) . to_be ( ) as i32 ,
221
221
/// The Controller Area Network raw socket protocol
222
222
/// ([ref](https://docs.kernel.org/networking/can.html#how-to-use-socketcan))
223
223
#[ cfg( target_os = "linux" ) ]
You can’t perform that action at this time.
0 commit comments