summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2005-03-14 12:24:56 +0100
committerOndrej Filip <feela@network.cz>2005-03-14 12:24:56 +0100
commite300066d5f66b8bd1d5561d63c10a8fbdce3ba8e (patch)
tree59a1850f334f13206bcc4d2e5ef57fff71a7d16f /proto/ospf/ospf.h
parent427e59939bc72c79f1566167b337927b14cb1715 (diff)
downloadbird-e300066d5f66b8bd1d5561d63c10a8fbdce3ba8e.tar
bird-e300066d5f66b8bd1d5561d63c10a8fbdce3ba8e.zip
OSPF can accept larger packets than MTU.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h15
1 files changed, 14 insertions, 1 deletions
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 <feela@network.cz>
+ * (c) 1999--2005 Ondrej Filip <feela@network.cz>
*
* 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