8 #include <basictypes.h> 30 #define ETHERNET_ETHERTYPE_IPv4 (uint16_t)(0x0800) 31 #define ETHERNET_ETHERTYPE_ARP (uint16_t)(0x0806) 32 #define ETHERNET_ETHERTYPE_IPv6 (uint16_t)(0x86DD) 33 #define ETHERNET_ETHERTYPE_AARP (uint16_t)(0x80F3) 34 #define ETHERNET_ETHERTYPE_IPX (uint16_t)(0x8137) 35 #define ETHERNET_ETHERTYPE_EAPOL (uint16_t)(0x888E) 36 #define ETHERNET_ETHERTYPE_VLAN (uint16_t )( 0x8100 ) 38 #define IP_20BYTE_ID (0x4500) 55 typedef struct _EthernetFrameHeader
57 MACADDRESS_48 destinationMacAddress;
58 MACADDRESS_48 sourceMacAddress;
61 } __attribute__((packed)) EthernetFrameHeader;
87 void AddEthernetInterfaces();
108 void ManualEthernetConfig(
int interface, BOOL speed100Mbit, BOOL fullDuplex, BOOL autoNegotiate);
125 void DisablePHY(
int ifn);
142 void EnablePHY(
int ifn);
145 #define NO_AUTOMATIC_2ND_ETHERNET extern const bool bAutomatic2ndEther = false;