DBG now calls debug() instead of sending it to log().

This commit is contained in:
Martin Mares 1998-05-26 21:36:17 +00:00
parent d804db0dab
commit 5222c46ceb
2 changed files with 3 additions and 6 deletions

7
TODO
View file

@ -4,12 +4,10 @@ Core
- config file: symbolic constants? - config file: symbolic constants?
- counters (according to SNMP MIB?) - counters (according to SNMP MIB?)
- generation of subnet mask ICMP's for v6? - generation of subnet mask ICMP's for v6?
- unaligned accesses?
- neighbor cache: local broadcast address? - neighbor cache: local broadcast address?
- ipv4: recognize site scope addresses? - ipv4: recognize site scope addresses?
- ifdef out some debugging code? - ifdef out some debugging code?
- better memory allocators - better memory allocators
- precedence of all packets (incl. TCP)
- default preferences of protocols: prefer BGP over OSPF/RIP external routes? - default preferences of protocols: prefer BGP over OSPF/RIP external routes?
- all internal tables are in host order - all internal tables are in host order
@ -18,8 +16,9 @@ Core
- alloca - alloca
- adding of route: clear all bits not covered by masklen - adding of route: clear all bits not covered by masklen
- switch: generate default route only if at least one BGP connection exists - switch: generate default route only if at least one BGP connection exists
- "interface kill" list
- route recalculation timing + flap dampening - route recalculation timing + flap dampening (?)
- reconfiguration without restart of all protocols? - reconfiguration without restart of all protocols?
- change of interface address: ??? (down and up?) - change of interface address: ??? (down and up?)
@ -29,9 +28,7 @@ Core
- interface is not required to exist - interface is not required to exist
- can specify a wildcard pattern or an interface list - can specify a wildcard pattern or an interface list
- timers - one-shot and periodic, resolution 1 sec, randomized
- re-configuration: restart of routing protocols (shutdown mode) - re-configuration: restart of routing protocols (shutdown mode)
- route: originating AS
- Check incoming packets and log errors!! - Check incoming packets and log errors!!

View file

@ -39,7 +39,7 @@ void debug(char *msg, ...); /* Printf to debug output */
/* Debugging */ /* Debugging */
#ifdef LOCAL_DEBUG #ifdef LOCAL_DEBUG
#define DBG(x, y...) log(L_DEBUG x, ##y) #define DBG(x, y...) debug(x, ##y)
#else #else
#define DBG(x, y...) #define DBG(x, y...)
#endif #endif