File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 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/).
3434### Fixed
3535- Fix ` SockaddrIn6 ` bug that was swapping flowinfo and scope_id byte ordering.
3636 ([ #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 ) )
3739
3840### Removed
3941
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ pub enum SockProtocol {
217217 // The protocol number is fed into the socket syscall in network byte order.
218218 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
219219 #[ 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 ,
221221 /// The Controller Area Network raw socket protocol
222222 /// ([ref](https://docs.kernel.org/networking/can.html#how-to-use-socketcan))
223223 #[ cfg( target_os = "linux" ) ]
You can’t perform that action at this time.
0 commit comments