Cleanups to RNDIS device demos. Fix issue in RNDIS demos where the memory would becom...
[pub/lufa.git] / Demos / Device / ClassDriver / RNDISEthernet / Lib / Ethernet.h
index a867ff6..1c85d6c 100644 (file)
@@ -53,7 +53,7 @@
                \r
        /* Macros: */\r
                /** Physical MAC address of the USB RNDIS network adapter */\r
-               #define ADAPTER_MAC_ADDRESS              {0x00, 0x02, 0x00, 0x02, 0x00, 0x02}           \r
+               #define ADAPTER_MAC_ADDRESS              {0x02, 0x00, 0x02, 0x00, 0x02, 0x00}\r
 \r
                /** Physical MAC address of the virtual server on the network */\r
                #define SERVER_MAC_ADDRESS               {0x00, 0x01, 0x00, 0x01, 0x00, 0x01}           \r
@@ -70,6 +70,9 @@
                 */\r
                #define MAC_COMPARE(MAC1, MAC2)          (memcmp(MAC1, MAC2, sizeof(MAC_Address_t)) == 0)\r
                \r
+               /** Minimum size of an Ethernet packet in bytes, to conform to the Ethernet V2 packet standard */\r
+               #define ETHERNET_VER2_MINSIZE            0x0600\r
+\r
                /** Return value for all sub protocol handling routines, indicating that no response packet has been generated */\r
                #define NO_RESPONSE                      0              \r
 \r