Skip to content

Commit 4dbe73d

Browse files
committed
Auto merge of #3332 - w1redch4d:fuchisa_ether, r=JohnTitor
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
2 parents 5d5a855 + f368a01 commit 4dbe73d

File tree

2 files changed

+158
-0
lines changed

2 files changed

+158
-0
lines changed

libc-test/semver/fuchsia.txt

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,85 @@ ERFKILL
256256
ESOCKTNOSUPPORT
257257
ESRMNT
258258
ESTRPIPE
259+
ETH_P_LOOP
260+
ETH_P_PUP
261+
ETH_P_PUPAT
259262
ETH_P_IP
263+
ETH_P_X25
264+
ETH_P_ARP
265+
ETH_P_BPQ
266+
ETH_P_IEEEPUP
267+
ETH_P_IEEEPUPAT
268+
ETH_P_BATMAN
269+
ETH_P_DEC
270+
ETH_P_DNA_DL
271+
ETH_P_DNA_RC
272+
ETH_P_DNA_RT
273+
ETH_P_LAT
274+
ETH_P_DIAG
275+
ETH_P_CUST
276+
ETH_P_SCA
277+
ETH_P_TEB
278+
ETH_P_RARP
279+
ETH_P_ATALK
280+
ETH_P_AARP
281+
ETH_P_8021Q
282+
ETH_P_IPX
283+
ETH_P_IPV6
284+
ETH_P_PAUSE
285+
ETH_P_SLOW
286+
ETH_P_WCCP
287+
ETH_P_MPLS_UC
288+
ETH_P_MPLS_MC
289+
ETH_P_ATMMPOA
290+
ETH_P_PPP_DISC
291+
ETH_P_PPP_SES
292+
ETH_P_LINK_CTL
293+
ETH_P_ATMFATE
294+
ETH_P_PAE
295+
ETH_P_AOE
296+
ETH_P_8021AD
297+
ETH_P_802_EX1
298+
ETH_P_TIPC
299+
ETH_P_8021AH
300+
ETH_P_MVRP
301+
ETH_P_1588
302+
ETH_P_PRP
303+
ETH_P_FCOE
304+
ETH_P_TDLS
305+
ETH_P_FIP
306+
ETH_P_80221
307+
ETH_P_LOOPBACK
308+
ETH_P_QINQ1
309+
ETH_P_QINQ2
310+
ETH_P_QINQ3
311+
ETH_P_EDSA
312+
ETH_P_AF_IUCV
313+
ETH_P_802_3_MIN
314+
ETH_P_802_3
315+
ETH_P_AX25
316+
ETH_P_ALL
317+
ETH_P_802_2
318+
ETH_P_SNAP
319+
ETH_P_DDCMP
320+
ETH_P_WAN_PPP
321+
ETH_P_PPP_MP
322+
ETH_P_LOCALTALK
323+
ETH_P_CAN
324+
ETH_P_CANFD
325+
ETH_P_PPPTALK
326+
ETH_P_TR_802_2
327+
ETH_P_MOBITEX
328+
ETH_P_CONTROL
329+
ETH_P_IRDA
330+
ETH_P_ECONET
331+
ETH_P_HDLC
332+
ETH_P_ARCNET
333+
ETH_P_DSA
334+
ETH_P_TRAILER
335+
ETH_P_PHONET
336+
ETH_P_IEEE802154
337+
ETH_P_CAIF
260338
ETIME
261339
ETOOMANYREFS
262340
EUCLEAN

src/fuchsia/mod.rs

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,7 +2679,87 @@ pub const PT_GNU_STACK: u32 = 0x6474e551;
26792679
pub const PT_GNU_RELRO: u32 = 0x6474e552;
26802680

26812681
// Ethernet protocol IDs.
2682+
pub const ETH_P_LOOP: ::c_int = 0x0060;
2683+
pub const ETH_P_PUP: ::c_int = 0x0200;
2684+
pub const ETH_P_PUPAT: ::c_int = 0x0201;
26822685
pub const ETH_P_IP: ::c_int = 0x0800;
2686+
pub const ETH_P_X25: ::c_int = 0x0805;
2687+
pub const ETH_P_ARP: ::c_int = 0x0806;
2688+
pub const ETH_P_BPQ: ::c_int = 0x08FF;
2689+
pub const ETH_P_IEEEPUP: ::c_int = 0x0a00;
2690+
pub const ETH_P_IEEEPUPAT: ::c_int = 0x0a01;
2691+
pub const ETH_P_BATMAN: ::c_int = 0x4305;
2692+
pub const ETH_P_DEC: ::c_int = 0x6000;
2693+
pub const ETH_P_DNA_DL: ::c_int = 0x6001;
2694+
pub const ETH_P_DNA_RC: ::c_int = 0x6002;
2695+
pub const ETH_P_DNA_RT: ::c_int = 0x6003;
2696+
pub const ETH_P_LAT: ::c_int = 0x6004;
2697+
pub const ETH_P_DIAG: ::c_int = 0x6005;
2698+
pub const ETH_P_CUST: ::c_int = 0x6006;
2699+
pub const ETH_P_SCA: ::c_int = 0x6007;
2700+
pub const ETH_P_TEB: ::c_int = 0x6558;
2701+
pub const ETH_P_RARP: ::c_int = 0x8035;
2702+
pub const ETH_P_ATALK: ::c_int = 0x809B;
2703+
pub const ETH_P_AARP: ::c_int = 0x80F3;
2704+
pub const ETH_P_8021Q: ::c_int = 0x8100;
2705+
pub const ETH_P_IPX: ::c_int = 0x8137;
2706+
pub const ETH_P_IPV6: ::c_int = 0x86DD;
2707+
pub const ETH_P_PAUSE: ::c_int = 0x8808;
2708+
pub const ETH_P_SLOW: ::c_int = 0x8809;
2709+
pub const ETH_P_WCCP: ::c_int = 0x883E;
2710+
pub const ETH_P_MPLS_UC: ::c_int = 0x8847;
2711+
pub const ETH_P_MPLS_MC: ::c_int = 0x8848;
2712+
pub const ETH_P_ATMMPOA: ::c_int = 0x884c;
2713+
pub const ETH_P_PPP_DISC: ::c_int = 0x8863;
2714+
pub const ETH_P_PPP_SES: ::c_int = 0x8864;
2715+
pub const ETH_P_LINK_CTL: ::c_int = 0x886c;
2716+
pub const ETH_P_ATMFATE: ::c_int = 0x8884;
2717+
pub const ETH_P_PAE: ::c_int = 0x888E;
2718+
pub const ETH_P_AOE: ::c_int = 0x88A2;
2719+
pub const ETH_P_8021AD: ::c_int = 0x88A8;
2720+
pub const ETH_P_802_EX1: ::c_int = 0x88B5;
2721+
pub const ETH_P_TIPC: ::c_int = 0x88CA;
2722+
pub const ETH_P_8021AH: ::c_int = 0x88E7;
2723+
pub const ETH_P_MVRP: ::c_int = 0x88F5;
2724+
pub const ETH_P_1588: ::c_int = 0x88F7;
2725+
pub const ETH_P_PRP: ::c_int = 0x88FB;
2726+
pub const ETH_P_FCOE: ::c_int = 0x8906;
2727+
pub const ETH_P_TDLS: ::c_int = 0x890D;
2728+
pub const ETH_P_FIP: ::c_int = 0x8914;
2729+
pub const ETH_P_80221: ::c_int = 0x8917;
2730+
pub const ETH_P_LOOPBACK: ::c_int = 0x9000;
2731+
pub const ETH_P_QINQ1: ::c_int = 0x9100;
2732+
pub const ETH_P_QINQ2: ::c_int = 0x9200;
2733+
pub const ETH_P_QINQ3: ::c_int = 0x9300;
2734+
pub const ETH_P_EDSA: ::c_int = 0xDADA;
2735+
pub const ETH_P_AF_IUCV: ::c_int = 0xFBFB;
2736+
2737+
pub const ETH_P_802_3_MIN: ::c_int = 0x0600;
2738+
2739+
pub const ETH_P_802_3: ::c_int = 0x0001;
2740+
pub const ETH_P_AX25: ::c_int = 0x0002;
2741+
pub const ETH_P_ALL: ::c_int = 0x0003;
2742+
pub const ETH_P_802_2: ::c_int = 0x0004;
2743+
pub const ETH_P_SNAP: ::c_int = 0x0005;
2744+
pub const ETH_P_DDCMP: ::c_int = 0x0006;
2745+
pub const ETH_P_WAN_PPP: ::c_int = 0x0007;
2746+
pub const ETH_P_PPP_MP: ::c_int = 0x0008;
2747+
pub const ETH_P_LOCALTALK: ::c_int = 0x0009;
2748+
pub const ETH_P_CAN: ::c_int = 0x000C;
2749+
pub const ETH_P_CANFD: ::c_int = 0x000D;
2750+
pub const ETH_P_PPPTALK: ::c_int = 0x0010;
2751+
pub const ETH_P_TR_802_2: ::c_int = 0x0011;
2752+
pub const ETH_P_MOBITEX: ::c_int = 0x0015;
2753+
pub const ETH_P_CONTROL: ::c_int = 0x0016;
2754+
pub const ETH_P_IRDA: ::c_int = 0x0017;
2755+
pub const ETH_P_ECONET: ::c_int = 0x0018;
2756+
pub const ETH_P_HDLC: ::c_int = 0x0019;
2757+
pub const ETH_P_ARCNET: ::c_int = 0x001A;
2758+
pub const ETH_P_DSA: ::c_int = 0x001B;
2759+
pub const ETH_P_TRAILER: ::c_int = 0x001C;
2760+
pub const ETH_P_PHONET: ::c_int = 0x00F5;
2761+
pub const ETH_P_IEEE802154: ::c_int = 0x00F6;
2762+
pub const ETH_P_CAIF: ::c_int = 0x00F7;
26832763

26842764
pub const SFD_CLOEXEC: ::c_int = 0x080000;
26852765

0 commit comments

Comments
 (0)