Hannes Gredler [Mon, 16 Feb 2009 21:31:54 +0000 (22:31 +0100)]
add a bit of guidance how to make a release
Henning Rogge [Sat, 14 Feb 2009 19:16:52 +0000 (20:16 +0100)]
Export getRelevantTcCount()
Henning Rogge [Thu, 12 Feb 2009 17:48:16 +0000 (18:48 +0100)]
Bugfix for new txtinfo code... thank you Aaron for testing it.
Henning Rogge [Thu, 12 Feb 2009 17:31:37 +0000 (18:31 +0100)]
Update for txtinfo plugin, new command is "/stats"
markus@DevVserver [Sun, 8 Feb 2009 21:39:24 +0000 (22:39 +0100)]
add interface to various routing log outputs
L. Aaron Kaplan [Sun, 8 Feb 2009 20:43:42 +0000 (21:43 +0100)]
olsr_exit() has only one parameter.
And the scheduler functions should also work on os x , *BSD
L. Aaron Kaplan [Sun, 8 Feb 2009 20:30:43 +0000 (20:30 +0000)]
in_addr_t does not exist in windows
L. Aaron Kaplan [Sun, 8 Feb 2009 20:23:31 +0000 (20:23 +0000)]
correct it on windows
Henning Rogge [Fri, 6 Feb 2009 15:17:55 +0000 (16:17 +0100)]
Convert duplicate set to new logger.
Add logger macros for "no header" lines.
example for new macros in duplcate_set.c olsr_print_duplicate_table()
Henning Rogge [Fri, 6 Feb 2009 14:42:27 +0000 (15:42 +0100)]
Bugfixes for new logging code
Henning Rogge [Fri, 6 Feb 2009 13:29:53 +0000 (14:29 +0100)]
Changed lq-plugin system to new logger
Henning Rogge [Fri, 6 Feb 2009 12:18:32 +0000 (13:18 +0100)]
First batch of olsrd logging changes
Removed all direct calls to olsr_syslog()
Dont initialize syslog unless the specific syslogger is called
Small modifications to olsr_exit() semantic
No direct creation of a signal to stop olsrd in the main code.
Sven-Ola Tuecke [Wed, 4 Feb 2009 10:07:57 +0000 (11:07 +0100)]
Fix warn_unused_result message
Henning Rogge [Mon, 2 Feb 2009 12:40:01 +0000 (13:40 +0100)]
Improvement for lq_ff metric (goes slowly down if no packages are received over a link)
Henning Rogge [Mon, 2 Feb 2009 11:52:05 +0000 (12:52 +0100)]
FIX: hanging topology entries when neighbor vanishes
Henning Rogge [Sun, 1 Feb 2009 19:38:37 +0000 (20:38 +0100)]
Fix a build break for BSD and two possible buffer overflows
Sven-Ola Tuecke [Sat, 31 Jan 2009 08:36:12 +0000 (09:36 +0100)]
replaced strcpy, strncat in config parser
Sven-Ola Tuecke [Sat, 31 Jan 2009 07:57:35 +0000 (08:57 +0100)]
fix for last fix: fbsd now compiles
Sven-Ola Tuecke [Fri, 30 Jan 2009 12:12:18 +0000 (13:12 +0100)]
Removed superfluous olsr_kernel_del_route6
L. Aaron Kaplan [Wed, 28 Jan 2009 16:54:35 +0000 (17:54 +0100)]
As requested...
Backed out changeset
c6a72905834aba39520e6277aca01da7ef2bf4c5
since the quickfixes for OpenBSD were a bit to ugly...
Need to make it nicer.
L. Aaron Kaplan [Wed, 28 Jan 2009 12:09:13 +0000 (13:09 +0100)]
Make tip compile on OpenBSD.
Some of the changes are a big ugly.
Like double calculations for str lengths for strncat and strncpy and so.
But on the other hand, the olsr_cfg.c code needs beautifying anyway.
(but it does work brilliantly and it is great that it was done!)
This patch is tested against openBSD 4.1 and it works together with Mac OS X (tip)
and freifunk fw 1.36
Sven-Ola Tuecke [Thu, 22 Jan 2009 11:22:07 +0000 (12:22 +0100)]
Win32: compile fix. Note: SEVERITY_ERROR also in windows.h
Sven-Ola Tuecke [Thu, 22 Jan 2009 11:19:22 +0000 (12:19 +0100)]
Removed End-of-line Spaces
Sven-Ola Tuecke [Tue, 20 Jan 2009 08:59:59 +0000 (09:59 +0100)]
Maint for .hgignore file
Sven-Ola Tuecke [Tue, 20 Jan 2009 08:51:45 +0000 (09:51 +0100)]
Include stand-alone config parser in makefile
to make sure that it can be compiled and nobody has
added global variables or references to olsr_cfg to
the wrong places.
Sven-Ola Tuecke [Mon, 19 Jan 2009 21:53:17 +0000 (22:53 +0100)]
dyn_gw_plain: cleanup and reformat
Sven-Ola Tuecke [Mon, 19 Jan 2009 21:52:07 +0000 (22:52 +0100)]
Fix for oops when removing ip_prefix from list
Sven-Ola Tuecke [Mon, 19 Jan 2009 18:58:25 +0000 (19:58 +0100)]
Repair --delgw option
Vasilis Tsiligiannis [Mon, 19 Jan 2009 16:04:32 +0000 (18:04 +0200)]
Fix 'inactive' routes when using 'additional' option
Henning Rogge [Mon, 19 Jan 2009 10:46:55 +0000 (11:46 +0100)]
Adds mode parameter to interface section of cfg.
Adds 'mesh' (default).
Adds 'ether' mode (for switched ethernet interfaces) to prevent
unnecessary forwardings of packages.
Sven-Ola Tuecke [Mon, 19 Jan 2009 07:27:57 +0000 (08:27 +0100)]
quagga: fixed 'additional' option
Sven-Ola Tuecke [Sun, 18 Jan 2009 23:07:04 +0000 (00:07 +0100)]
Corrected funny alignments in httpinfo
Sven-Ola Tuecke [Sun, 18 Jan 2009 22:42:54 +0000 (23:42 +0100)]
Reworked kernel routing
Sven-Ola Tuecke [Sun, 18 Jan 2009 18:57:41 +0000 (19:57 +0100)]
fbsd: bugfix for non-vxworks host routes
Sven-Ola Tuecke [Sun, 18 Jan 2009 18:56:05 +0000 (19:56 +0100)]
fbsd: cosmetical changes, sync comments ipv4/ipv6, removed superfluous debug
Sven-Ola Tuecke [Sun, 18 Jan 2009 12:14:35 +0000 (13:14 +0100)]
fbsd: applied gnu-indent to ease comparing
Sven-Ola Tuecke [Sun, 18 Jan 2009 08:39:51 +0000 (09:39 +0100)]
Moved packet display options to olsr_cnf
Sven-Ola Tuecke [Sat, 17 Jan 2009 17:27:01 +0000 (18:27 +0100)]
Updated license.sh script
Sven-Ola Tuecke [Sat, 17 Jan 2009 17:25:30 +0000 (18:25 +0100)]
Added missing BSD licenses as well as more exceptions
Sven-Ola Tuecke [Sat, 17 Jan 2009 13:17:26 +0000 (14:17 +0100)]
Updated license.sh script
Sven-Ola Tuecke [Sat, 17 Jan 2009 13:14:10 +0000 (14:14 +0100)]
License update in all source files (via license.sh script)
Sven-Ola Tuecke [Sat, 17 Jan 2009 13:11:38 +0000 (14:11 +0100)]
doc: re-added link to vxworks branch
Sven-Ola Tuecke [Sat, 17 Jan 2009 13:00:34 +0000 (14:00 +0100)]
doc: conv HISTORY chapter to man-page to ease converting to ASCII
Sven-Ola Tuecke [Sat, 17 Jan 2009 11:50:25 +0000 (12:50 +0100)]
added license to files/Makefile, harmonized license titles
Sven-Ola Tuecke [Sat, 17 Jan 2009 10:16:21 +0000 (11:16 +0100)]
Removed end-of-line spaces (from *.nsi and *.cpp)
Sven-Ola Tuecke [Sat, 17 Jan 2009 09:57:34 +0000 (10:57 +0100)]
Added missing licenses
Sven-Ola Tuecke [Sat, 17 Jan 2009 09:16:36 +0000 (10:16 +0100)]
Removed end-of-line spaces (also from Makefiles)
added also --noindent to gnu-indent script
Sven-Ola Tuecke [Fri, 16 Jan 2009 17:24:59 +0000 (18:24 +0100)]
doc: small addon to ipversion option
Sven-Ola Tuecke [Fri, 16 Jan 2009 17:12:06 +0000 (18:12 +0100)]
Removed superfluous olsr_print_cnf()
Sven-Ola Tuecke [Fri, 16 Jan 2009 17:02:04 +0000 (18:02 +0100)]
removed olsr_cnf->ip_version from anything the config parser uses
Sven-Ola Tuecke [Fri, 16 Jan 2009 16:24:45 +0000 (17:24 +0100)]
renamed src/olsrd_plugin.h to src/plugin.h to avoid doubles
Sven-Ola Tuecke [Fri, 16 Jan 2009 15:54:55 +0000 (16:54 +0100)]
win32verify: small fix
Sven-Ola Tuecke [Fri, 16 Jan 2009 06:30:26 +0000 (07:30 +0100)]
win32verify: solved runtime errs on olsr_cfg
Henning Rogge [Thu, 15 Jan 2009 14:09:50 +0000 (15:09 +0100)]
Move olsr_cnf cleanup down in olsr_shutdown() to prevent some segfaults
Sven-Ola Tuecke [Thu, 15 Jan 2009 10:26:04 +0000 (11:26 +0100)]
doc: new metrics man page, removed <> around emails
Sven-Ola Tuecke [Thu, 15 Jan 2009 10:02:19 +0000 (11:02 +0100)]
doc: added emails to history as well as section on licensing
Henning Rogge [Wed, 14 Jan 2009 18:19:47 +0000 (19:19 +0100)]
Put version string creation into one file because OSX seems to have problems with the "echo -n"
inside the Makefile.
Henning Rogge [Wed, 14 Jan 2009 17:45:35 +0000 (18:45 +0100)]
Add mercurial revision to custom build olsrds and tarballs
Henning Rogge [Wed, 14 Jan 2009 11:28:02 +0000 (12:28 +0100)]
Move logging sources/severities into their own file.
Sven-Ola Tuecke [Wed, 14 Jan 2009 08:34:49 +0000 (09:34 +0100)]
Added a licensing script as preparation of single file copyright block changes
Henning Rogge [Wed, 14 Jan 2009 08:07:40 +0000 (09:07 +0100)]
Rename main-ip into routerid in manpage, configfile and olsr_cnf.
Henning Rogge [Wed, 14 Jan 2009 07:40:20 +0000 (08:40 +0100)]
Mention log config option in manpage
Henning Rogge [Wed, 14 Jan 2009 07:32:20 +0000 (08:32 +0100)]
Add logging parameter to manpage.
Add --log=list parameter for displaying all logging sources.
Sven-Ola Tuecke [Tue, 13 Jan 2009 21:46:16 +0000 (22:46 +0100)]
cfg parser: changed exit() into return and msg
As a remark: we use parts of the olsr_config as global variables. Because
this saves some bytes in the resulting binary because no symbol info is
required, I leave it that way. Resorted olsr_config, so please add globals
below the marked line.
Sven-Ola Tuecke [Tue, 13 Jan 2009 08:43:28 +0000 (09:43 +0100)]
win32: first test, if olsr_cfg can be included/DLL'ed stand alone
Henning Rogge [Tue, 13 Jan 2009 07:15:23 +0000 (08:15 +0100)]
New parameter 'OriginatorAddress' to set a fixed main ip for the routing agent.
Warning when two interfaces have the same IP address
Henning Rogge [Mon, 12 Jan 2009 15:41:08 +0000 (16:41 +0100)]
force timevalue for logging to (long) to prevent compiler error
Sven-Ola Tuecke [Mon, 12 Jan 2009 13:17:43 +0000 (14:17 +0100)]
MacOSX: correct build error (from
27ad4ded6848)
Henning Rogge [Mon, 12 Jan 2009 09:27:22 +0000 (10:27 +0100)]
calculate global mask for logging events to speedup events that
are not displayed at all.
add comments to logging functions
Henning Rogge [Mon, 12 Jan 2009 07:32:21 +0000 (08:32 +0100)]
Add graceful fallback for logging if fopen fails
Add Debug severity to logging
Add timestamp to logfile output
Remove file/line output from logfile if not compiled with DEBUG option
Sven-Ola Tuecke [Sun, 11 Jan 2009 13:34:29 +0000 (14:34 +0100)]
Moved olsr_rt_flags() to bsd because it is used only there
Sven-Ola Tuecke [Sun, 11 Jan 2009 13:33:26 +0000 (14:33 +0100)]
Removed superfluous maxplen config var
Sven-Ola Tuecke [Sun, 11 Jan 2009 12:01:19 +0000 (13:01 +0100)]
fix: prefix_to_netmask(32) on ipv4 returns err
Sven-Ola Tuecke [Sun, 11 Jan 2009 09:41:22 +0000 (10:41 +0100)]
doc: 2nd draft for lq-plugin API man page
Henning Rogge [Sat, 10 Jan 2009 13:27:09 +0000 (14:27 +0100)]
Move filehandling for logfile into olsr_logging.c
Henning Rogge [Sat, 10 Jan 2009 12:56:57 +0000 (13:56 +0100)]
Prevent DOS-Style attack on txtinfo when more than 255 bytes are send to the plugini
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:54:44 +0000 (09:54 +0100)]
cfg parser: output warn on stderr for old options, using indent on new parse_cfg_log
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:49:03 +0000 (09:49 +0100)]
fbsd/win32: fixed make to also compile the lq_* plugins
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:46:57 +0000 (09:46 +0100)]
removed end-of-line spaces
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:46:31 +0000 (09:46 +0100)]
fbsd: compile fix
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:45:52 +0000 (09:45 +0100)]
fbsd: small renaming to make live easier on comparing
Vasilis Tsiligiannis [Sat, 10 Jan 2009 00:13:44 +0000 (02:13 +0200)]
Fix segmentation fault during socket reading
We were trying to malloc using realloc without initializing
buffer pointer to NULL
Vasilis Tsiligiannis [Fri, 9 Jan 2009 23:59:38 +0000 (01:59 +0200)]
Sync with git://git.acinonyx.ath.cx/olsrd-quagga.git
Henning Rogge [Fri, 9 Jan 2009 13:00:02 +0000 (14:00 +0100)]
Output all logging events in debug mode before log system is initialized.
Henning Rogge [Fri, 9 Jan 2009 07:35:59 +0000 (08:35 +0100)]
rough rfc hysteresis implementation
Sven-Ola Tuecke [Thu, 8 Jan 2009 20:37:54 +0000 (21:37 +0100)]
os dep optimization: small speedup/unbloat on linux
Sven-Ola Tuecke [Thu, 8 Jan 2009 16:53:44 +0000 (17:53 +0100)]
Refixed2: inlined olsr_times and moved error handling to init
Henning Rogge [Thu, 8 Jan 2009 15:42:01 +0000 (16:42 +0100)]
Better handling of dynamic loggers
Henning Rogge [Thu, 8 Jan 2009 14:11:24 +0000 (15:11 +0100)]
A little bit support for dynamic logging handler
Sven-Ola Tuecke [Thu, 8 Jan 2009 14:00:49 +0000 (15:00 +0100)]
Refixed: changed comment and error handling for olsr_times wrapper func
Henning Rogge [Thu, 8 Jan 2009 12:22:16 +0000 (13:22 +0100)]
allow multiple log targets for new logging system
Henning Rogge [Thu, 8 Jan 2009 11:40:07 +0000 (12:40 +0100)]
handle log_source all in --log parameter
Sven-Ola Tuecke [Thu, 8 Jan 2009 08:57:02 +0000 (09:57 +0100)]
Bug: on vpn.berlin.freifunk.net times() return negative value
for whatever reason. This node is a vmware-based virtual machine. Uptime says: 58 days,
which obviously overflows the value here. Because it looks like a negative return
value on errors, the most significant bit is zeroed with this fix.
Henning Rogge [Wed, 7 Jan 2009 20:22:10 +0000 (21:22 +0100)]
Add framework for new logging routines
Sven-Ola Tuecke [Wed, 7 Jan 2009 11:14:49 +0000 (12:14 +0100)]
doc: added README-metrics.txt as new man page
Henning Rogge [Wed, 7 Jan 2009 10:06:04 +0000 (11:06 +0100)]
set constants for ip_acl plugin parameters
add documentation for http/txtinfo plugin
Henning Rogge [Wed, 7 Jan 2009 09:31:08 +0000 (10:31 +0100)]
convert ip_prefix_list to common/list datastructure
add ip_acl list for easier handling in plugins
L. Aaron Kaplan [Tue, 6 Jan 2009 20:20:38 +0000 (20:20 +0000)]
moved README to the proper destination
L. Aaron Kaplan [Tue, 6 Jan 2009 20:17:42 +0000 (20:17 +0000)]
fix problem on OS X: no packets where sent out.
Because the timers did not trigger because olsr_times() returned 0 all the time.
Why is this so?
Because if you look at the BSD man pages of times(3) it will return the number of ticks since the epoche and not since booting.
Therefore the values are higher than the -1 of a singed long. Therefore -erro was being returned. And errno was 0 all the time.
This seems to be a very strange problem in OS X: for some time the FreeBSD man page was wrong. But FreeBSD actually returns the real uptime in clock ticks. But OS X actually returns the clock ticks since the epoche.
The fix makes the following: compare properly against the clock_t type (which is a unsigned long).
This way, nothing can go wrong in any case.
Cudos and and thanks for Henning Rogge for thinking this thru with me.
Reference to the FreeBSD man page for times(3): http://www.freebsd.org/cgi/query-pr.cgi?pr=122359
TIMES(3) BSD Library Functions Manual TIMES(3)
NAME
times -- process times
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/times.h>
clock_t
times(struct tms *buffer);
DESCRIPTION
This interface is obsoleted by getrusage(2) and gettimeofday(2).
The times() function returns the value of time in CLK_TCK's of a second since 0 hours, 0 minutes, 0 seconds, January 1, 1970,
Coordinated Universal Time.
Sven-Ola Tuecke [Tue, 6 Jan 2009 08:00:51 +0000 (09:00 +0100)]
Removed link to libpthread from daemon.
It is sufficient, if the BMF and dyn_gw plugins link in the
threads library. This also circumvent a bug in OpenWrt/Kamikaze,
where the kernel-libpthread support from uclibc is broken
(if you do not load dyn_gw nor BMF, olsrd may run without
the '-d' and '--nofork' options).