diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-13 14:19:55 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-19 12:45:17 +0100 |
commit | 79f561a173c9ceb824d64aa32d82e43ba62acebc (patch) | |
tree | a043f293c41f66568871405fafae70e070fa8b43 /proto | |
parent | d9e7e1b13d69fa50d1979576c418c579f05463c6 (diff) | |
download | bird-79f561a173c9ceb824d64aa32d82e43ba62acebc.tar bird-79f561a173c9ceb824d64aa32d82e43ba62acebc.zip |
Fixes a typo (in OSPF_MAX_PKT_SIZE value).
And updates a comment.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/ospf.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 30922fa..341d9a7 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -10,13 +10,15 @@ #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 |