summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brown <nickbrow@google.com>2022-07-15 20:16:17 +0000
committerNick Brown <nickbrow@google.com>2022-07-15 20:32:23 +0000
commitf274d907620b8600ddb0d1774d258249bdd6ed06 (patch)
tree4909e5b7ccd90171848d30be4e459b27eef609d8
parent8dbd2c9653b16ba04881edf5caa944e62889245f (diff)
downloadrust-libc-f274d907620b8600ddb0d1774d258249bdd6ed06.tar.gz
Add ETH_P_IP to Fuchsia public constants
-rw-r--r--libc-test/semver/fuchsia.txt1
-rw-r--r--src/fuchsia/mod.rs3
2 files changed, 4 insertions, 0 deletions
diff --git a/libc-test/semver/fuchsia.txt b/libc-test/semver/fuchsia.txt
index b6201975d3..a4ff41defe 100644
--- a/libc-test/semver/fuchsia.txt
+++ b/libc-test/semver/fuchsia.txt
@@ -256,6 +256,7 @@ ERFKILL
ESOCKTNOSUPPORT
ESRMNT
ESTRPIPE
+ETH_P_IP
ETIME
ETOOMANYREFS
EUCLEAN
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs
index 0406f06b42..4a18a8daab 100644
--- a/src/fuchsia/mod.rs
+++ b/src/fuchsia/mod.rs
@@ -2677,6 +2677,9 @@ pub const PT_GNU_EH_FRAME: u32 = 0x6474e550;
pub const PT_GNU_STACK: u32 = 0x6474e551;
pub const PT_GNU_RELRO: u32 = 0x6474e552;
+// Ethernet protocol IDs.
+pub const ETH_P_IP: ::c_int = 0x0800;
+
pub const SFD_CLOEXEC: ::c_int = 0x080000;
pub const NCCS: usize = 32;