X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_ethernet.h;h=b141a59debd6f95f026717f297d5879ab8fbeb4a;hb=2f4952e76f4fadb1abd32626b57b6d9b272003cc;hp=1fd00acdd8a18b937234821a1982cea85d660a8b;hpb=4b11cc9abd662b9099b167c72afafa984b0a5b07;p=palacios.git diff --git a/palacios/include/palacios/vmm_ethernet.h b/palacios/include/palacios/vmm_ethernet.h index 1fd00ac..b141a59 100644 --- a/palacios/include/palacios/vmm_ethernet.h +++ b/palacios/include/palacios/vmm_ethernet.h @@ -28,10 +28,9 @@ #define ETH_ALEN 6 #define MIN_MTU 68 -//#define MAX_MTU 65535 -#define MAX_MTU 9000 +#define MAX_MTU 65536 -#define MAX_PACKET_LEN (ETHERNET_HEADER_LEN + MAX_MTU) +#define MAX_PACKET_LEN (MAX_MTU + ETHERNET_HEADER_LEN) #ifdef V3_CONFIG_VNET extern int net_debug; @@ -103,9 +102,10 @@ static inline int compare_ether_hdr(const uint8_t * hdr1, const uint8_t * hdr2) /* AA:BB:CC:DD:EE:FF */ static inline int str2mac(char * macstr, uint8_t * mac){ - char hex[2], *s = macstr; + char hex[3], *s = macstr; int i = 0; + hex[2] = 0; while(s){ memcpy(hex, s, 2); mac[i++] = (char)atox(hex);