Skip to content

Commit

Permalink
Auto merge of #3332 - w1redch4d:fuchisa_ether, r=JohnTitor
Browse files Browse the repository at this point in the history
Added additional Ethernet Protocol Ids for fuchsia

Added all of the Ethernet Protocol ID's as per [fuchsia](https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/third_party/ulib/musl/include/netinet/if_ether.h)

Fixes #3331
  • Loading branch information
bors committed Sep 29, 2023
2 parents 5d5a855 + f368a01 commit 4dbe73d
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 0 deletions.
78 changes: 78 additions & 0 deletions libc-test/semver/fuchsia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,85 @@ ERFKILL
ESOCKTNOSUPPORT
ESRMNT
ESTRPIPE
ETH_P_LOOP
ETH_P_PUP
ETH_P_PUPAT
ETH_P_IP
ETH_P_X25
ETH_P_ARP
ETH_P_BPQ
ETH_P_IEEEPUP
ETH_P_IEEEPUPAT
ETH_P_BATMAN
ETH_P_DEC
ETH_P_DNA_DL
ETH_P_DNA_RC
ETH_P_DNA_RT
ETH_P_LAT
ETH_P_DIAG
ETH_P_CUST
ETH_P_SCA
ETH_P_TEB
ETH_P_RARP
ETH_P_ATALK
ETH_P_AARP
ETH_P_8021Q
ETH_P_IPX
ETH_P_IPV6
ETH_P_PAUSE
ETH_P_SLOW
ETH_P_WCCP
ETH_P_MPLS_UC
ETH_P_MPLS_MC
ETH_P_ATMMPOA
ETH_P_PPP_DISC
ETH_P_PPP_SES
ETH_P_LINK_CTL
ETH_P_ATMFATE
ETH_P_PAE
ETH_P_AOE
ETH_P_8021AD
ETH_P_802_EX1
ETH_P_TIPC
ETH_P_8021AH
ETH_P_MVRP
ETH_P_1588
ETH_P_PRP
ETH_P_FCOE
ETH_P_TDLS
ETH_P_FIP
ETH_P_80221
ETH_P_LOOPBACK
ETH_P_QINQ1
ETH_P_QINQ2
ETH_P_QINQ3
ETH_P_EDSA
ETH_P_AF_IUCV
ETH_P_802_3_MIN
ETH_P_802_3
ETH_P_AX25
ETH_P_ALL
ETH_P_802_2
ETH_P_SNAP
ETH_P_DDCMP
ETH_P_WAN_PPP
ETH_P_PPP_MP
ETH_P_LOCALTALK
ETH_P_CAN
ETH_P_CANFD
ETH_P_PPPTALK
ETH_P_TR_802_2
ETH_P_MOBITEX
ETH_P_CONTROL
ETH_P_IRDA
ETH_P_ECONET
ETH_P_HDLC
ETH_P_ARCNET
ETH_P_DSA
ETH_P_TRAILER
ETH_P_PHONET
ETH_P_IEEE802154
ETH_P_CAIF
ETIME
ETOOMANYREFS
EUCLEAN
Expand Down
80 changes: 80 additions & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,87 @@ pub const PT_GNU_STACK: u32 = 0x6474e551;
pub const PT_GNU_RELRO: u32 = 0x6474e552;

// Ethernet protocol IDs.
pub const ETH_P_LOOP: ::c_int = 0x0060;
pub const ETH_P_PUP: ::c_int = 0x0200;
pub const ETH_P_PUPAT: ::c_int = 0x0201;
pub const ETH_P_IP: ::c_int = 0x0800;
pub const ETH_P_X25: ::c_int = 0x0805;
pub const ETH_P_ARP: ::c_int = 0x0806;
pub const ETH_P_BPQ: ::c_int = 0x08FF;
pub const ETH_P_IEEEPUP: ::c_int = 0x0a00;
pub const ETH_P_IEEEPUPAT: ::c_int = 0x0a01;
pub const ETH_P_BATMAN: ::c_int = 0x4305;
pub const ETH_P_DEC: ::c_int = 0x6000;
pub const ETH_P_DNA_DL: ::c_int = 0x6001;
pub const ETH_P_DNA_RC: ::c_int = 0x6002;
pub const ETH_P_DNA_RT: ::c_int = 0x6003;
pub const ETH_P_LAT: ::c_int = 0x6004;
pub const ETH_P_DIAG: ::c_int = 0x6005;
pub const ETH_P_CUST: ::c_int = 0x6006;
pub const ETH_P_SCA: ::c_int = 0x6007;
pub const ETH_P_TEB: ::c_int = 0x6558;
pub const ETH_P_RARP: ::c_int = 0x8035;
pub const ETH_P_ATALK: ::c_int = 0x809B;
pub const ETH_P_AARP: ::c_int = 0x80F3;
pub const ETH_P_8021Q: ::c_int = 0x8100;
pub const ETH_P_IPX: ::c_int = 0x8137;
pub const ETH_P_IPV6: ::c_int = 0x86DD;
pub const ETH_P_PAUSE: ::c_int = 0x8808;
pub const ETH_P_SLOW: ::c_int = 0x8809;
pub const ETH_P_WCCP: ::c_int = 0x883E;
pub const ETH_P_MPLS_UC: ::c_int = 0x8847;
pub const ETH_P_MPLS_MC: ::c_int = 0x8848;
pub const ETH_P_ATMMPOA: ::c_int = 0x884c;
pub const ETH_P_PPP_DISC: ::c_int = 0x8863;
pub const ETH_P_PPP_SES: ::c_int = 0x8864;
pub const ETH_P_LINK_CTL: ::c_int = 0x886c;
pub const ETH_P_ATMFATE: ::c_int = 0x8884;
pub const ETH_P_PAE: ::c_int = 0x888E;
pub const ETH_P_AOE: ::c_int = 0x88A2;
pub const ETH_P_8021AD: ::c_int = 0x88A8;
pub const ETH_P_802_EX1: ::c_int = 0x88B5;
pub const ETH_P_TIPC: ::c_int = 0x88CA;
pub const ETH_P_8021AH: ::c_int = 0x88E7;
pub const ETH_P_MVRP: ::c_int = 0x88F5;
pub const ETH_P_1588: ::c_int = 0x88F7;
pub const ETH_P_PRP: ::c_int = 0x88FB;
pub const ETH_P_FCOE: ::c_int = 0x8906;
pub const ETH_P_TDLS: ::c_int = 0x890D;
pub const ETH_P_FIP: ::c_int = 0x8914;
pub const ETH_P_80221: ::c_int = 0x8917;
pub const ETH_P_LOOPBACK: ::c_int = 0x9000;
pub const ETH_P_QINQ1: ::c_int = 0x9100;
pub const ETH_P_QINQ2: ::c_int = 0x9200;
pub const ETH_P_QINQ3: ::c_int = 0x9300;
pub const ETH_P_EDSA: ::c_int = 0xDADA;
pub const ETH_P_AF_IUCV: ::c_int = 0xFBFB;

pub const ETH_P_802_3_MIN: ::c_int = 0x0600;

pub const ETH_P_802_3: ::c_int = 0x0001;
pub const ETH_P_AX25: ::c_int = 0x0002;
pub const ETH_P_ALL: ::c_int = 0x0003;
pub const ETH_P_802_2: ::c_int = 0x0004;
pub const ETH_P_SNAP: ::c_int = 0x0005;
pub const ETH_P_DDCMP: ::c_int = 0x0006;
pub const ETH_P_WAN_PPP: ::c_int = 0x0007;
pub const ETH_P_PPP_MP: ::c_int = 0x0008;
pub const ETH_P_LOCALTALK: ::c_int = 0x0009;
pub const ETH_P_CAN: ::c_int = 0x000C;
pub const ETH_P_CANFD: ::c_int = 0x000D;
pub const ETH_P_PPPTALK: ::c_int = 0x0010;
pub const ETH_P_TR_802_2: ::c_int = 0x0011;
pub const ETH_P_MOBITEX: ::c_int = 0x0015;
pub const ETH_P_CONTROL: ::c_int = 0x0016;
pub const ETH_P_IRDA: ::c_int = 0x0017;
pub const ETH_P_ECONET: ::c_int = 0x0018;
pub const ETH_P_HDLC: ::c_int = 0x0019;
pub const ETH_P_ARCNET: ::c_int = 0x001A;
pub const ETH_P_DSA: ::c_int = 0x001B;
pub const ETH_P_TRAILER: ::c_int = 0x001C;
pub const ETH_P_PHONET: ::c_int = 0x00F5;
pub const ETH_P_IEEE802154: ::c_int = 0x00F6;
pub const ETH_P_CAIF: ::c_int = 0x00F7;

pub const SFD_CLOEXEC: ::c_int = 0x080000;

Expand Down

0 comments on commit 4dbe73d

Please sign in to comment.