From: Florent Kermarrec Date: Fri, 12 Apr 2019 15:09:50 +0000 (+0200) Subject: software/libnet/microudp: set raw frame size to ETHMAC_SLOT_SIZE X-Git-Tag: 24jan2021_ls180~1337 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdeff7f64fc9280a347be9e8a6fcfac9d173e0c4;p=litex.git software/libnet/microudp: set raw frame size to ETHMAC_SLOT_SIZE --- diff --git a/litex/soc/software/libnet/microudp.c b/litex/soc/software/libnet/microudp.c index 90b73a7e..be23d733 100644 --- a/litex/soc/software/libnet/microudp.c +++ b/litex/soc/software/libnet/microudp.c @@ -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;