Timers: Fix TBF and some last remains
Timers: Parse and format functions for microsecond times
Date/time output (e.g. in logs, show commands) can use %f to specifysubsecond time. By default, millisecond precision is used in output.
Merge branch 'master' into int-new
Some more autoconf cleanups
Replace integer type width detection with C99 fixed-width types.Also remove some unused or obsolete code.
Thanks to Ruben Kerkhof for the patchset.
Merge tag 'v1.6.2' into int-new
Log: Fix broken syslog name
BIRD passed string from configuration to openlog(), which kept itinternally. After reconfiguration the old string was freed, thereforeopenlog had invalid copy.
Thanks to Chris Caputo for the original patch.
Log: Fix error handling of debug file open
Logging is not yet initialized, we have to use fprintf() here.
Thanks to Pavel Tvrdik for noticing and debugging it.
cppcheck: fix va_end() functions
Merge remote-tracking branch 'origin/master' into int-new
Prog Doc: Complete several missing parameters
Merge branch 'int-new' into int-new-merged
Build system reworked to one global Makefile with includes and no nesting
Also removed the lib-dir merging with sysdep. Updated #include'saccordingly.
Fixed make doc on recent Debian together with moving generated doc intoobjdir.
Moved Makefile.in into root dir...
Unix: Fix bug in syslog name handling
Pointer to current_log_name has to be changed even if the name is thesame, because the old one will be invalid/freed after reconfiguration.
Add const to a param msg at functions log_msg, log_rl, die, bug and debug
Replacing GNU old-style field designator extension
Implements token bucket filter for rate limiting.
Workaround thread-unsafeness of cli_echo().
Minor fix in log_commit() w.r.t. changes in BFD branch.
BFD protocol, ready for release.
Supports OSPF and BGP and also statically configured sessions.
Fixes some BFD bugs and makes logging thread-safe.
Implements eval command and minor CLI cleanups.
Implemented eval command can be used to evaluate expressions.
The patch also documents echo command and allows to use log classesinstead of integer as a mask for echo.
Changes print-like filter commands to use a log instead of a stderr.
And extends the log subsystem to better handle that.
Configurable syslog name.
Also fixes a bug in syslog initialization.
Fix configure to enable warnings and fix most of them.
Makes date/time formats configurable.
Implements MRTdump feature.
Rate limit for most abundant log messages
Renamed log() to log_msg(), but still keeping the old name as a macro.This is done to avoid clashes with gcc-3.3 which has built-in logarithms :)
Fixed <time.h> vs. <sys/time.h> problems.
If compiled with --enable-debug, don't even try to log to syslog unlessthe user forces it in the config file.
During initialization, log to both syslog and stderr. When a configurationfile has been read and it doesn't specify any logging, log to syslog only(if syslog is not available, then stderr).
Fixes for the programmer's manual.
Spelling fixes to progdoc.
Documented all the sysdeps (only briefly, I admit).
Except for Filters, RIP and OSPF, the progdocs are complete.
Before configuration file is read, log to both syslog and stderr.
In non-debug mode, set default logging to syslog only, not stderr.
When reporting a bug(), call abort() instead of exit(), so that wecan analyse the core.
Fixed a bunch of FIXME's by removing them :)
Allow logging to stderr as well.
Logging is now configurable. You can define multiple log outputs (to bothfiles and syslog) and assign lists of message categories to each of them.
Implemented echoing of log messages to CLI connections. Just try `echo all'.
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. */...
Complain loudly if the logging buffer would overflow.
debug() and log() use the new printf. Feel free to use new formattingsequences for all output.
Added new subdir for UNIX-dependent files.
Now contains only functions for logging, but it will change soon.