+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#ifdef ENABLE_JUMBOGRAMS
+#define MTU 9014 /* 9000 bytes payload + 14 bytes ethernet header */
+#else
+#define MTU 1514 /* 1500 bytes payload + 14 bytes ethernet header */
+#endif
+
+#define MAXSIZE (MTU + 4 + EVP_MAX_BLOCK_LENGTH + EVP_MAX_MD_SIZE + MTU/64 + 20) /* MTU + seqno + padding + HMAC + compressor overhead */
+#define MAXBUFSIZE ((MAXSIZE > 2048 ? MAXSIZE : 2048) + 128) /* Enough room for a request with a MAXSIZEd packet or a 8192 bits RSA key */