summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;