X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet.h;h=261d9c3cfb40c17e0f57897c19d3c576e6329073;hb=0912276c6467aa3ee6f570b31245367319da572a;hp=b1792883382439c2961bb9e1be864f35efc0cd6b;hpb=e32d4f3db3f1ed3eebe2e11d57512b60a6c02fa6;p=tinc diff --git a/src/net.h b/src/net.h index b1792883..261d9c3c 100644 --- a/src/net.h +++ b/src/net.h @@ -36,6 +36,8 @@ #define MTU 1518 /* 1500 bytes payload + 14 bytes ethernet header + 4 bytes VLAN tag */ #endif +#define MINMTU 512 /* Below this we don't consider UDP to be working */ + /* MAXSIZE is the maximum size of an encapsulated packet: MTU + seqno + srcid + dstid + padding + HMAC + compressor overhead */ #define MAXSIZE (MTU + 4 + sizeof(node_id_t) + sizeof(node_id_t) + CIPHER_MAX_BLOCK_SIZE + DIGEST_MAX_SIZE + MTU/64 + 20)