From b8ca97e5b02d74c4146808948259a7489fd9b165 Mon Sep 17 00:00:00 2001 From: miau Date: Fri, 2 Dec 2011 10:34:30 +0100 Subject: update max msg len to IPv6 UDP minimum diff --git a/src/common.h b/src/common.h index 5f24e57..5ce3c61 100644 --- a/src/common.h +++ b/src/common.h @@ -10,9 +10,14 @@ #include #include -#define SERVERPORT 4950 // the port users will be connecting to +/* the port users will be connecting to */ +#define SERVERPORT 4950 #define SERVERPORT_S "4950" -#define MAXBUFLEN 100 + +/* RFC 2460 requires IPv6 link MTU >= 1280, IPv6 UDP headers sum up to + 48 byte, the rest is for us. One extra byte is for the final \0 + (not transmitted) */ +#define MAXBUFLEN 1233 #define ENP(Cmd, Msg) \ if ((Cmd) == -1) { \ -- cgit v0.10.1