From e300066d5f66b8bd1d5561d63c10a8fbdce3ba8e Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 14 Mar 2005 11:24:56 +0000 Subject: OSPF can accept larger packets than MTU. --- proto/ospf/ospf.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'proto/ospf/ospf.h') diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 79d1f4f..e52a6ef 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -1,7 +1,7 @@ /* * BIRD -- OSPF * - * (c) 1999--2004 Ondrej Filip + * (c) 1999--2005 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -10,6 +10,19 @@ #define _BIRD_OSPF_H_ #define MAXNETS 10 +#undef OSPF_BIG_PACKETS /* + * RFC 2328 says, maximum packet size is 65535 + * This could be too much for small systems, so I + * normally allocate 2*mtu - (I found one cisco + * sending packets mtu+16) + */ + +#ifdef OSPF_BIG_PACKETS +#define OSPF_MAX_PKT_SIZE 65536 +#else +#define OSPF_MAX_PKT_SIZE (ifa->iface->mtu * 2) +#endif + #ifdef LOCAL_DEBUG #define OSPF_FORCE_DEBUG 1 #else -- cgit v1.2.3