software/libnet/microudp: set raw frame size to ETHMAC_SLOT_SIZE
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 12 Apr 2019 15:09:50 +0000 (17:09 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 12 Apr 2019 15:09:50 +0000 (17:09 +0200)
litex/soc/software/libnet/microudp.c

index 90b73a7e11e537db1c65246120668f18b6b2dcbe..be23d73360faa0d8fcc651fc405fa06d0984ab2c 100644 (file)
@@ -111,7 +111,7 @@ struct ethernet_frame {
 
 typedef union {
        struct ethernet_frame frame;
-       unsigned char raw[1532];
+       unsigned char raw[ETHMAC_SLOT_SIZE];
 } ethernet_buffer;