Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
1925: fix: send ETH_P_ALL in htons format r=asomers a=tzneal

Co-authored-by: Todd Neal <[email protected]>
  • Loading branch information
2 people authored and asomers committed Aug 27, 2023
1 parent d34cf6a commit 4f80a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub enum SockProtocol {
// 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(),
EthAll = (libc::ETH_P_ALL as u16).to_be() as i32,
}

#[cfg(any(target_os = "linux"))]
Expand Down

0 comments on commit 4f80a18

Please sign in to comment.