X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/afe6ae14023c7040befe73e49d00077d3425c564..24f730fce3f2022762011d795c3feada5ef874b3:/Demos/Device/ClassDriver/RNDISEthernet/Lib/Ethernet.h diff --git a/Demos/Device/ClassDriver/RNDISEthernet/Lib/Ethernet.h b/Demos/Device/ClassDriver/RNDISEthernet/Lib/Ethernet.h index 0708268c6..3a41fa4b3 100644 --- a/Demos/Device/ClassDriver/RNDISEthernet/Lib/Ethernet.h +++ b/Demos/Device/ClassDriver/RNDISEthernet/Lib/Ethernet.h @@ -53,7 +53,7 @@ /* Macros: */ /** Physical MAC address of the USB RNDIS network adapter */ - #define ADAPTER_MAC_ADDRESS {0x00, 0x02, 0x00, 0x02, 0x00, 0x02} + #define ADAPTER_MAC_ADDRESS {0x02, 0x00, 0x02, 0x00, 0x02, 0x00} /** Physical MAC address of the virtual server on the network */ #define SERVER_MAC_ADDRESS {0x00, 0x01, 0x00, 0x01, 0x00, 0x01} @@ -63,13 +63,16 @@ /** Performs a comparison between two MAC addresses, indicating if they are identical. * - * \param MAC1 First MAC address - * \param MAC2 Second MAC address + * \param[in] MAC1 First MAC address + * \param[in] MAC2 Second MAC address * * \return True if the addresses match, false otherwise */ #define MAC_COMPARE(MAC1, MAC2) (memcmp(MAC1, MAC2, sizeof(MAC_Address_t)) == 0) + /** Minimum size of an Ethernet packet in bytes, to conform to the Ethernet V2 packet standard */ + #define ETHERNET_VER2_MINSIZE 0x0600 + /** Return value for all sub protocol handling routines, indicating that no response packet has been generated */ #define NO_RESPONSE 0 @@ -85,7 +88,7 @@ union { - uint16_t EtherType; /**< Ethernet packet subprotocol type, for Ethernet V2 packets */ + uint16_t EtherType; /**< Ethernet packet sub-protocol type, for Ethernet V2 packets */ uint16_t Length; /**< Ethernet frame length, for Ethernet V1 packets */ }; } Ethernet_Frame_Header_t;