Skip to content

Commit 9e9f343

Browse files
committed
changelog entry
1 parent 9a7b5b2 commit 9e9f343

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/2581.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add ```sys::socket::SockProtocol::EthIp```, ```sys::socket::SockProtocol::EthIpv6```, ```sys::socket::SockProtocol::EthLoop```

src/sys/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl SockProtocol {
259259
#[cfg(linux_android)]
260260
#[allow(non_upper_case_globals)]
261261
#[cfg(target_endian = "big")]
262-
pub const EthIp: i32 = (libc::ETH_P_IP as u16).to_be() as i32;
262+
pub const EthIp: SockProtocol = SockProtocol(libc::ETH_P_IP as i32);
263263
}
264264
#[cfg(linux_android)]
265265
libc_bitflags! {

0 commit comments

Comments
 (0)