@@ -1071,6 +1071,108 @@ pub const IFF_TUN: ::c_int = 0x0001;
1071
1071
pub const IFF_TAP : :: c_int = 0x0002 ;
1072
1072
pub const IFF_NO_PI : :: c_int = 0x1000 ;
1073
1073
1074
+ // start android/platform/bionic/libc/kernel/uapi/linux/if_ether.h
1075
+ // from https://android.googlesource.com/
1076
+ // platform/bionic/+/master/libc/kernel/uapi/linux/if_ether.h
1077
+ pub const ETH_ALEN : :: c_int = 6 ;
1078
+ pub const ETH_HLEN : :: c_int = 14 ;
1079
+ pub const ETH_ZLEN : :: c_int = 60 ;
1080
+ pub const ETH_DATA_LEN : :: c_int = 1500 ;
1081
+ pub const ETH_FRAME_LEN : :: c_int = 1514 ;
1082
+ pub const ETH_FCS_LEN : :: c_int = 4 ;
1083
+ pub const ETH_MIN_MTU : :: c_int = 68 ;
1084
+ pub const ETH_MAX_MTU : :: c_int = 0xFFFF ;
1085
+ pub const ETH_P_LOOP : :: c_int = 0x0060 ;
1086
+ pub const ETH_P_PUP : :: c_int = 0x0200 ;
1087
+ pub const ETH_P_PUPAT : :: c_int = 0x0201 ;
1088
+ pub const ETH_P_TSN : :: c_int = 0x22F0 ;
1089
+ pub const ETH_P_IP : :: c_int = 0x0800 ;
1090
+ pub const ETH_P_X25 : :: c_int = 0x0805 ;
1091
+ pub const ETH_P_ARP : :: c_int = 0x0806 ;
1092
+ pub const ETH_P_BPQ : :: c_int = 0x08FF ;
1093
+ pub const ETH_P_IEEEPUP : :: c_int = 0x0a00 ;
1094
+ pub const ETH_P_IEEEPUPAT : :: c_int = 0x0a01 ;
1095
+ pub const ETH_P_BATMAN : :: c_int = 0x4305 ;
1096
+ pub const ETH_P_DEC : :: c_int = 0x6000 ;
1097
+ pub const ETH_P_DNA_DL : :: c_int = 0x6001 ;
1098
+ pub const ETH_P_DNA_RC : :: c_int = 0x6002 ;
1099
+ pub const ETH_P_DNA_RT : :: c_int = 0x6003 ;
1100
+ pub const ETH_P_LAT : :: c_int = 0x6004 ;
1101
+ pub const ETH_P_DIAG : :: c_int = 0x6005 ;
1102
+ pub const ETH_P_CUST : :: c_int = 0x6006 ;
1103
+ pub const ETH_P_SCA : :: c_int = 0x6007 ;
1104
+ pub const ETH_P_TEB : :: c_int = 0x6558 ;
1105
+ pub const ETH_P_RARP : :: c_int = 0x8035 ;
1106
+ pub const ETH_P_ATALK : :: c_int = 0x809B ;
1107
+ pub const ETH_P_AARP : :: c_int = 0x80F3 ;
1108
+ pub const ETH_P_8021Q : :: c_int = 0x8100 ;
1109
+ /* see rust-lang/libc#924 pub const ETH_P_ERSPAN: ::c_int = 0x88BE;*/
1110
+ pub const ETH_P_IPX : :: c_int = 0x8137 ;
1111
+ pub const ETH_P_IPV6 : :: c_int = 0x86DD ;
1112
+ pub const ETH_P_PAUSE : :: c_int = 0x8808 ;
1113
+ pub const ETH_P_SLOW : :: c_int = 0x8809 ;
1114
+ pub const ETH_P_WCCP : :: c_int = 0x883E ;
1115
+ pub const ETH_P_MPLS_UC : :: c_int = 0x8847 ;
1116
+ pub const ETH_P_MPLS_MC : :: c_int = 0x8848 ;
1117
+ pub const ETH_P_ATMMPOA : :: c_int = 0x884c ;
1118
+ pub const ETH_P_PPP_DISC : :: c_int = 0x8863 ;
1119
+ pub const ETH_P_PPP_SES : :: c_int = 0x8864 ;
1120
+ pub const ETH_P_LINK_CTL : :: c_int = 0x886c ;
1121
+ pub const ETH_P_ATMFATE : :: c_int = 0x8884 ;
1122
+ pub const ETH_P_PAE : :: c_int = 0x888E ;
1123
+ pub const ETH_P_AOE : :: c_int = 0x88A2 ;
1124
+ pub const ETH_P_8021AD : :: c_int = 0x88A8 ;
1125
+ pub const ETH_P_802_EX1 : :: c_int = 0x88B5 ;
1126
+ pub const ETH_P_TIPC : :: c_int = 0x88CA ;
1127
+ pub const ETH_P_MACSEC : :: c_int = 0x88E5 ;
1128
+ pub const ETH_P_8021AH : :: c_int = 0x88E7 ;
1129
+ pub const ETH_P_MVRP : :: c_int = 0x88F5 ;
1130
+ pub const ETH_P_1588 : :: c_int = 0x88F7 ;
1131
+ pub const ETH_P_NCSI : :: c_int = 0x88F8 ;
1132
+ pub const ETH_P_PRP : :: c_int = 0x88FB ;
1133
+ pub const ETH_P_FCOE : :: c_int = 0x8906 ;
1134
+ /* see rust-lang/libc#924 pub const ETH_P_IBOE: ::c_int = 0x8915;*/
1135
+ pub const ETH_P_TDLS : :: c_int = 0x890D ;
1136
+ pub const ETH_P_FIP : :: c_int = 0x8914 ;
1137
+ pub const ETH_P_80221 : :: c_int = 0x8917 ;
1138
+ pub const ETH_P_HSR : :: c_int = 0x892F ;
1139
+ /* see rust-lang/libc#924 pub const ETH_P_NSH: ::c_int = 0x894F;*/
1140
+ pub const ETH_P_LOOPBACK : :: c_int = 0x9000 ;
1141
+ pub const ETH_P_QINQ1 : :: c_int = 0x9100 ;
1142
+ pub const ETH_P_QINQ2 : :: c_int = 0x9200 ;
1143
+ pub const ETH_P_QINQ3 : :: c_int = 0x9300 ;
1144
+ pub const ETH_P_EDSA : :: c_int = 0xDADA ;
1145
+ /* see rust-lang/libc#924 pub const ETH_P_IFE: ::c_int = 0xED3E;*/
1146
+ pub const ETH_P_AF_IUCV : :: c_int = 0xFBFB ;
1147
+ pub const ETH_P_802_3_MIN : :: c_int = 0x0600 ;
1148
+ pub const ETH_P_802_3 : :: c_int = 0x0001 ;
1149
+ pub const ETH_P_AX25 : :: c_int = 0x0002 ;
1150
+ pub const ETH_P_ALL : :: c_int = 0x0003 ;
1151
+ pub const ETH_P_802_2 : :: c_int = 0x0004 ;
1152
+ pub const ETH_P_SNAP : :: c_int = 0x0005 ;
1153
+ pub const ETH_P_DDCMP : :: c_int = 0x0006 ;
1154
+ pub const ETH_P_WAN_PPP : :: c_int = 0x0007 ;
1155
+ pub const ETH_P_PPP_MP : :: c_int = 0x0008 ;
1156
+ pub const ETH_P_LOCALTALK : :: c_int = 0x0009 ;
1157
+ pub const ETH_P_CAN : :: c_int = 0x000C ;
1158
+ pub const ETH_P_CANFD : :: c_int = 0x000D ;
1159
+ pub const ETH_P_PPPTALK : :: c_int = 0x0010 ;
1160
+ pub const ETH_P_TR_802_2 : :: c_int = 0x0011 ;
1161
+ pub const ETH_P_MOBITEX : :: c_int = 0x0015 ;
1162
+ pub const ETH_P_CONTROL : :: c_int = 0x0016 ;
1163
+ pub const ETH_P_IRDA : :: c_int = 0x0017 ;
1164
+ pub const ETH_P_ECONET : :: c_int = 0x0018 ;
1165
+ pub const ETH_P_HDLC : :: c_int = 0x0019 ;
1166
+ pub const ETH_P_ARCNET : :: c_int = 0x001A ;
1167
+ pub const ETH_P_DSA : :: c_int = 0x001B ;
1168
+ pub const ETH_P_TRAILER : :: c_int = 0x001C ;
1169
+ pub const ETH_P_PHONET : :: c_int = 0x00F5 ;
1170
+ pub const ETH_P_IEEE802154 : :: c_int = 0x00F6 ;
1171
+ pub const ETH_P_CAIF : :: c_int = 0x00F7 ;
1172
+ pub const ETH_P_XDSA : :: c_int = 0x00F8 ;
1173
+ /* see rust-lang/libc#924 pub const ETH_P_MAP: ::c_int = 0x00F9;*/
1174
+ // end android/platform/bionic/libc/kernel/uapi/linux/if_ether.h
1175
+
1074
1176
f ! {
1075
1177
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
1076
1178
for slot in cpuset. __bits. iter_mut( ) {
0 commit comments