Skip to content

Commit 4f80a18

Browse files
bors[bot]tzneal
authored andcommitted
Merge #1925
1925: fix: send ETH_P_ALL in htons format r=asomers a=tzneal Co-authored-by: Todd Neal <[email protected]>
1 parent d34cf6a commit 4f80a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ pub enum SockProtocol {
226226
// The protocol number is fed into the socket syscall in network byte order.
227227
#[cfg(any(target_os = "android", target_os = "linux"))]
228228
#[cfg_attr(docsrs, doc(cfg(all())))]
229-
EthAll = libc::ETH_P_ALL.to_be(),
229+
EthAll = (libc::ETH_P_ALL as u16).to_be() as i32,
230230
}
231231

232232
#[cfg(any(target_os = "linux"))]

0 commit comments

Comments
 (0)