diff options
author | ajs <ajs> | 2005-11-16 20:17:52 +0000 |
---|---|---|
committer | ajs <ajs> | 2005-11-16 20:17:52 +0000 |
commit | 649654aba22704a792949374990bc2a29c357de8 (patch) | |
tree | dea4976f37c2719ccf2d6f01f14f32f2afac792b /ospfd/ospf_dump.h | |
parent | 70cd34749f3c57d6f67ab31a9552c46afe437553 (diff) |
[ospfd] Standardize buffer sizes used for displaying timers.
2005-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_dump.h: Define OSPF_TIME_DUMP_SIZE as appropriate buffer size
for use with ospf_timer_dump and ospf_timeval_dump.
* ospf_vty.c: Change all buffer sizes used with ospf_timer_dump and
ospf_timeval_dump to have size OSPF_TIME_DUMP_SIZE.
(show_ip_ospf_interface_sub) Fix possible buffer overflow in
call to ospf_timer_dump.
Diffstat (limited to 'ospfd/ospf_dump.h')
-rw-r--r-- | ospfd/ospf_dump.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_dump.h b/ospfd/ospf_dump.h index e24244ee..fb813719 100644 --- a/ospfd/ospf_dump.h +++ b/ospfd/ospf_dump.h @@ -137,4 +137,7 @@ extern void ospf_packet_dump (struct stream *); extern void ospf_lsa_header_dump (struct lsa_header *); extern void debug_init (void); +/* Appropriate buffer size to use with ospf_timer_dump and ospf_timeval_dump: */ +#define OSPF_TIME_DUMP_SIZE 16 + #endif /* _ZEBRA_OSPF_DUMP_H */ |