History | View | Annotate | Download (1.61 KB)
Introduced `ARRAY_SIZE' macro to replace all the sizeof(a)/sizeof(*a) constructs.
Use do { } while(0) instead of empty DBG if not debugging.
DBG calls debug() if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG).
Logging is now configurable. You can define multiple log outputs (to bothfiles and syslog) and assign lists of message categories to each of them.
Added a function for generating 32-bit random numbers.
#define NULL if not defined by system includes.
Added several parentheses to MIN/MAX macros.
Finer grained logging levels:
#define L_DEBUG "\001" /* Debugging messages /#define L_INFO "\002" / Informational messages /#define L_WARN "\003" / Warnings /#define L_ERR "\004" / Errors /#define L_AUTH "\005" / Authorization failed etc. */...
Removed format specification attributes for log() and debug() untilGCC is fixed to handle custom formats.
Adding MIN/MAX macros
DBG now calls debug() instead of sending it to log().
The library is now glued together from generic and OS-dependent partsby the `mergedirs' script. Few more IP address manipulation functionsand some fixes.
BIRD library: The story continues.
Complete resource manages and IP address handling.
Added IP address manipulation macros, interface declarations and logging.
First look at data structures. More to come tomorrow...