summaryrefslogtreecommitdiffstats
path: root/lib/birdlib.h
AgeCommit message (Collapse)Author
2010-09-20Changes print-like filter commands to use a log instead of a stderr.Ondrej Zajicek
And extends the log subsystem to better handle that.
2009-07-23Fixes compiler warning in OFFSETOF().Ondrej Zajicek
2009-02-26Rate limit for most abundant log messagesOndrej Zajicek
2004-06-05Renamed log() to log_msg(), but still keeping the old name as a macro.Martin Mares
This is done to avoid clashes with gcc-3.3 which has built-in logarithms :)
2004-06-05A better comment.Martin Mares
2004-06-01ALIGN -> BIRD_ALIGNOndrej Filip
2004-05-31Added UNUSED.Martin Mares
2004-05-31#ifndef ALIGN - it is defined on *BSDOndrej Filip
2002-11-13ABS should be a macro.Martin Mares
2001-02-20Fixed duplicity in log category numbering.Martin Mares
Thanks to Zheng Yuan for spotting this.
2000-04-12Introduced `ARRAY_SIZE' macro to replace all the sizeof(a)/sizeof(*a) ↵Martin Mares
constructs.
2000-03-12Use do { } while(0) instead of empty DBG if not debugging.Martin Mares
2000-03-07DBG calls debug() if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG).Martin Mares
1999-12-06Logging is now configurable. You can define multiple log outputs (to bothMartin Mares
files and syslog) and assign lists of message categories to each of them.
1999-08-17Added a function for generating 32-bit random numbers.Martin Mares
1999-03-29#define NULL if not defined by system includes.Martin Mares
1999-02-05Added several parentheses to MIN/MAX macros.Martin Mares
1998-12-20Finer grained logging levels:Martin Mares
#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. */ #define L_FATAL "\006" /* Fatal errors */ #define L_TRACE "\002" /* Protocol tracing */ #define L_INFO "\003" /* Informational messages */ #define L_REMOTE "\004" /* Remote protocol errors */ #define L_WARN "\004" /* Local warnings */ #define L_ERR "\005" /* Local errors */ #define L_AUTH "\006" /* Authorization failed etc. */ #define L_FATAL "\007" /* Fatal errors */ #define L_BUG "\010" /* BIRD bugs */ Introduced bug() which is like die(), but with level L_BUG. Protocols should _never_ call die() as it should be used only during initialization and on irrecoverable catastrophic events like out of memory. Also introduced ASSERT() which behaves like normal assert(), but it calls bug() when assertion fails. When !defined(DEBUGGING), it gets ignored.
1998-07-10Removed format specification attributes for log() and debug() untilMartin Mares
GCC is fixed to handle custom formats.
1998-07-09Adding MIN()/MAX() macrosPavel Machek
1998-05-26DBG now calls debug() instead of sending it to log().Martin Mares
1998-05-15The library is now glued together from generic and OS-dependent partsMartin Mares
by the `mergedirs' script. Few more IP address manipulation functions and some fixes.
1998-05-03BIRD library: The story continues.Martin Mares
Complete resource manages and IP address handling.
1998-04-23Added IP address manipulation macros, interface declarations and logging.Martin Mares
1998-04-22First look at data structures. More to come tomorrow...Martin Mares