From: Guus Sliepen Date: Thu, 15 Apr 2004 14:09:56 +0000 (+0000) Subject: Increase MTU by 4 bytes to allow VLAN tagged Ethernet frames in hub and switch mode. X-Git-Tag: release-1.0.3~35 X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=commitdiff_plain;h=9e44f116bf0f72d1dd4f099440a351dbe0a74573 Increase MTU by 4 bytes to allow VLAN tagged Ethernet frames in hub and switch mode. --- diff --git a/src/net.h b/src/net.h index 54663aa..b5692ef 100644 --- a/src/net.h +++ b/src/net.h @@ -28,9 +28,9 @@ #include "ipv6.h" #ifdef ENABLE_JUMBOGRAMS -#define MTU 9014 /* 9000 bytes payload + 14 bytes ethernet header */ +#define MTU 9018 /* 9000 bytes payload + 14 bytes ethernet header + 4 bytes VLAN tag */ #else -#define MTU 1514 /* 1500 bytes payload + 14 bytes ethernet header */ +#define MTU 1518 /* 1500 bytes payload + 14 bytes ethernet header + 4 bytes VLAN tag */ #endif #define MAXSIZE (MTU + 4 + EVP_MAX_BLOCK_LENGTH + EVP_MAX_MD_SIZE + MTU/64 + 20) /* MTU + seqno + padding + HMAC + compressor overhead */