]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes a typo (in OSPF_MAX_PKT_SIZE value).
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 13 Nov 2010 13:19:55 +0000 (14:19 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 19 Nov 2010 11:45:17 +0000 (12:45 +0100)
And updates a comment.

proto/ospf/ospf.h

index 30922faf3beb18f2fd0e3b9610445bee1dfc6e53..341d9a7c2120f1c7c59aa8f675927e466b3e0eac 100644 (file)
 #define _BIRD_OSPF_H_
 
 #define MAXNETS 10
-#define OSPF_MAX_PKT_SIZE 65536
-                       /*
-                         * 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)
-                        */
+#define OSPF_MAX_PKT_SIZE 65535
+/*
+ * RFC 2328 says, maximum packet size is 65535 (IP packet size
+ * limit). Really a bit less for OSPF, because this contains also IP
+ * header. This could be too much for small systems, so I normally
+ * allocate 2*mtu (i found one cisco sending packets mtu+16). OSPF
+ * packets are almost always sent small enough to not be fragmented.
+ */
+
 #ifdef LOCAL_DEBUG
 #define OSPF_FORCE_DEBUG 1
 #else