olsrd.git
12 years agoadd a bit of guidance how to make a release
Hannes Gredler [Mon, 16 Feb 2009 21:31:54 +0000 (22:31 +0100)]
add a bit of guidance how to make a release

12 years agoExport getRelevantTcCount()
Henning Rogge [Sat, 14 Feb 2009 19:16:52 +0000 (20:16 +0100)]
Export getRelevantTcCount()

12 years agoBugfix for new txtinfo code... thank you Aaron for testing it.
Henning Rogge [Thu, 12 Feb 2009 17:48:16 +0000 (18:48 +0100)]
Bugfix for new txtinfo code... thank you Aaron for testing it.

12 years agoUpdate for txtinfo plugin, new command is "/stats"
Henning Rogge [Thu, 12 Feb 2009 17:31:37 +0000 (18:31 +0100)]
Update for txtinfo plugin, new command is "/stats"

12 years agoadd interface to various routing log outputs
markus@DevVserver [Sun, 8 Feb 2009 21:39:24 +0000 (22:39 +0100)]
add interface to various routing log outputs

12 years agoolsr_exit() has only one parameter.
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

12 years agoin_addr_t does not exist in windows
L. Aaron Kaplan [Sun, 8 Feb 2009 20:30:43 +0000 (20:30 +0000)]
in_addr_t does not exist in windows

12 years agocorrect it on windows
L. Aaron Kaplan [Sun, 8 Feb 2009 20:23:31 +0000 (20:23 +0000)]
correct it on windows

12 years agoConvert duplicate set to new logger.
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()

12 years agoBugfixes for new logging code
Henning Rogge [Fri, 6 Feb 2009 14:42:27 +0000 (15:42 +0100)]
Bugfixes for new logging code

12 years agoChanged lq-plugin system to new logger
Henning Rogge [Fri, 6 Feb 2009 13:29:53 +0000 (14:29 +0100)]
Changed lq-plugin system to new logger

12 years agoFirst batch of olsrd logging changes
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.

12 years agoFix warn_unused_result message
Sven-Ola Tuecke [Wed, 4 Feb 2009 10:07:57 +0000 (11:07 +0100)]
Fix warn_unused_result message

12 years agoImprovement for lq_ff metric (goes slowly down if no packages are received over a...
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)

12 years agoFIX: hanging topology entries when neighbor vanishes
Henning Rogge [Mon, 2 Feb 2009 11:52:05 +0000 (12:52 +0100)]
FIX: hanging topology entries when neighbor vanishes

12 years agoFix a build break for BSD and two possible buffer overflows
Henning Rogge [Sun, 1 Feb 2009 19:38:37 +0000 (20:38 +0100)]
Fix a build break for BSD and two possible buffer overflows

12 years agoreplaced strcpy, strncat in config parser
Sven-Ola Tuecke [Sat, 31 Jan 2009 08:36:12 +0000 (09:36 +0100)]
replaced strcpy, strncat in config parser

12 years agofix for last fix: fbsd now compiles
Sven-Ola Tuecke [Sat, 31 Jan 2009 07:57:35 +0000 (08:57 +0100)]
fix for last fix: fbsd now compiles

12 years agoRemoved superfluous olsr_kernel_del_route6
Sven-Ola Tuecke [Fri, 30 Jan 2009 12:12:18 +0000 (13:12 +0100)]
Removed superfluous olsr_kernel_del_route6

12 years agoAs requested...
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.

12 years agoMake tip compile on OpenBSD.
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

12 years agoWin32: compile fix. Note: SEVERITY_ERROR also in windows.h
Sven-Ola Tuecke [Thu, 22 Jan 2009 11:22:07 +0000 (12:22 +0100)]
Win32: compile fix. Note: SEVERITY_ERROR also in windows.h

12 years agoRemoved End-of-line Spaces
Sven-Ola Tuecke [Thu, 22 Jan 2009 11:19:22 +0000 (12:19 +0100)]
Removed End-of-line Spaces

12 years agoMaint for .hgignore file
Sven-Ola Tuecke [Tue, 20 Jan 2009 08:59:59 +0000 (09:59 +0100)]
Maint for .hgignore file

12 years agoInclude stand-alone config parser in makefile
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.

12 years agodyn_gw_plain: cleanup and reformat
Sven-Ola Tuecke [Mon, 19 Jan 2009 21:53:17 +0000 (22:53 +0100)]
dyn_gw_plain: cleanup and reformat

12 years agoFix for oops when removing ip_prefix from list
Sven-Ola Tuecke [Mon, 19 Jan 2009 21:52:07 +0000 (22:52 +0100)]
Fix for oops when removing ip_prefix from list

12 years agoRepair --delgw option
Sven-Ola Tuecke [Mon, 19 Jan 2009 18:58:25 +0000 (19:58 +0100)]
Repair --delgw option

12 years agoFix 'inactive' routes when using 'additional' option
Vasilis Tsiligiannis [Mon, 19 Jan 2009 16:04:32 +0000 (18:04 +0200)]
Fix 'inactive' routes when using 'additional' option

12 years agoAdds mode parameter to interface section of cfg.
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.

12 years agoquagga: fixed 'additional' option
Sven-Ola Tuecke [Mon, 19 Jan 2009 07:27:57 +0000 (08:27 +0100)]
quagga: fixed 'additional' option

12 years agoCorrected funny alignments in httpinfo
Sven-Ola Tuecke [Sun, 18 Jan 2009 23:07:04 +0000 (00:07 +0100)]
Corrected funny alignments in httpinfo

12 years agoReworked kernel routing
Sven-Ola Tuecke [Sun, 18 Jan 2009 22:42:54 +0000 (23:42 +0100)]
Reworked kernel routing

12 years agofbsd: bugfix for non-vxworks host routes
Sven-Ola Tuecke [Sun, 18 Jan 2009 18:57:41 +0000 (19:57 +0100)]
fbsd: bugfix for non-vxworks host routes

12 years agofbsd: cosmetical changes, sync comments ipv4/ipv6, removed superfluous debug
Sven-Ola Tuecke [Sun, 18 Jan 2009 18:56:05 +0000 (19:56 +0100)]
fbsd: cosmetical changes, sync comments ipv4/ipv6, removed superfluous debug

12 years agofbsd: applied gnu-indent to ease comparing
Sven-Ola Tuecke [Sun, 18 Jan 2009 12:14:35 +0000 (13:14 +0100)]
fbsd: applied gnu-indent to ease comparing

12 years agoMoved packet display options to olsr_cnf
Sven-Ola Tuecke [Sun, 18 Jan 2009 08:39:51 +0000 (09:39 +0100)]
Moved packet display options to olsr_cnf

12 years agoUpdated license.sh script
Sven-Ola Tuecke [Sat, 17 Jan 2009 17:27:01 +0000 (18:27 +0100)]
Updated license.sh script

12 years agoAdded missing BSD licenses as well as more exceptions
Sven-Ola Tuecke [Sat, 17 Jan 2009 17:25:30 +0000 (18:25 +0100)]
Added missing BSD licenses as well as more exceptions

12 years agoUpdated license.sh script
Sven-Ola Tuecke [Sat, 17 Jan 2009 13:17:26 +0000 (14:17 +0100)]
Updated license.sh script

12 years agoLicense update in all source files (via 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)

12 years agodoc: re-added link to vxworks branch
Sven-Ola Tuecke [Sat, 17 Jan 2009 13:11:38 +0000 (14:11 +0100)]
doc: re-added link to vxworks branch

12 years agodoc: conv HISTORY chapter to man-page to ease converting to ASCII
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

12 years agoadded license to files/Makefile, harmonized license titles
Sven-Ola Tuecke [Sat, 17 Jan 2009 11:50:25 +0000 (12:50 +0100)]
added license to files/Makefile, harmonized license titles

12 years agoRemoved end-of-line spaces (from *.nsi and *.cpp)
Sven-Ola Tuecke [Sat, 17 Jan 2009 10:16:21 +0000 (11:16 +0100)]
Removed end-of-line spaces (from *.nsi and *.cpp)

12 years agoAdded missing licenses
Sven-Ola Tuecke [Sat, 17 Jan 2009 09:57:34 +0000 (10:57 +0100)]
Added missing licenses

12 years agoRemoved end-of-line spaces (also from Makefiles)
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

12 years agodoc: small addon to ipversion option
Sven-Ola Tuecke [Fri, 16 Jan 2009 17:24:59 +0000 (18:24 +0100)]
doc: small addon to ipversion option

12 years agoRemoved superfluous olsr_print_cnf()
Sven-Ola Tuecke [Fri, 16 Jan 2009 17:12:06 +0000 (18:12 +0100)]
Removed superfluous olsr_print_cnf()

12 years agoremoved olsr_cnf->ip_version from anything the config parser uses
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

12 years agorenamed src/olsrd_plugin.h to src/plugin.h to avoid doubles
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

12 years agowin32verify: small fix
Sven-Ola Tuecke [Fri, 16 Jan 2009 15:54:55 +0000 (16:54 +0100)]
win32verify: small fix

12 years agowin32verify: solved runtime errs on olsr_cfg
Sven-Ola Tuecke [Fri, 16 Jan 2009 06:30:26 +0000 (07:30 +0100)]
win32verify: solved runtime errs on olsr_cfg

12 years agoMove olsr_cnf cleanup down in olsr_shutdown() to prevent some segfaults
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

12 years agodoc: new metrics man page, removed <> around emails
Sven-Ola Tuecke [Thu, 15 Jan 2009 10:26:04 +0000 (11:26 +0100)]
doc: new metrics man page, removed <> around emails

12 years agodoc: added emails to history as well as section on licensing
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

12 years agoPut version string creation into one file because OSX seems to have problems with...
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.

12 years agoAdd mercurial revision to custom build olsrds and tarballs
Henning Rogge [Wed, 14 Jan 2009 17:45:35 +0000 (18:45 +0100)]
Add mercurial revision to custom build olsrds and tarballs

12 years agoMove logging sources/severities into their own file.
Henning Rogge [Wed, 14 Jan 2009 11:28:02 +0000 (12:28 +0100)]
Move logging sources/severities into their own file.

12 years agoAdded a licensing script as preparation of single file copyright block changes
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

12 years agoRename main-ip into routerid in manpage, configfile and olsr_cnf.
Henning Rogge [Wed, 14 Jan 2009 08:07:40 +0000 (09:07 +0100)]
Rename main-ip into routerid in manpage, configfile and olsr_cnf.

12 years agoMention log config option in manpage
Henning Rogge [Wed, 14 Jan 2009 07:40:20 +0000 (08:40 +0100)]
Mention log config option in manpage

12 years agoAdd logging parameter to 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.

12 years agocfg parser: changed exit() into return and msg
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.

12 years agowin32: first test, if olsr_cfg can be included/DLL'ed stand alone
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

12 years agoNew parameter 'OriginatorAddress' to set a fixed main ip for the routing agent.
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

12 years agoforce timevalue for logging to (long) to prevent compiler error
Henning Rogge [Mon, 12 Jan 2009 15:41:08 +0000 (16:41 +0100)]
force timevalue for logging to (long) to prevent compiler error

12 years agoMacOSX: correct build error (from 27ad4ded6848)
Sven-Ola Tuecke [Mon, 12 Jan 2009 13:17:43 +0000 (14:17 +0100)]
MacOSX: correct build error (from 27ad4ded6848)

12 years agocalculate global mask for logging events to speedup events that
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

12 years agoAdd graceful fallback for logging if fopen fails
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

12 years agoMoved olsr_rt_flags() to bsd because it is used only there
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

12 years agoRemoved superfluous maxplen config var
Sven-Ola Tuecke [Sun, 11 Jan 2009 13:33:26 +0000 (14:33 +0100)]
Removed superfluous maxplen config var

12 years agofix: prefix_to_netmask(32) on ipv4 returns err
Sven-Ola Tuecke [Sun, 11 Jan 2009 12:01:19 +0000 (13:01 +0100)]
fix: prefix_to_netmask(32) on ipv4 returns err

12 years agodoc: 2nd draft for lq-plugin API man page
Sven-Ola Tuecke [Sun, 11 Jan 2009 09:41:22 +0000 (10:41 +0100)]
doc: 2nd draft for lq-plugin API man page

12 years agoMove filehandling for logfile into olsr_logging.c
Henning Rogge [Sat, 10 Jan 2009 13:27:09 +0000 (14:27 +0100)]
Move filehandling for logfile into olsr_logging.c

12 years agoPrevent DOS-Style attack on txtinfo when more than 255 bytes are send to the plugini
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

12 years agocfg parser: output warn on stderr for old options, using indent on new parse_cfg_log
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

12 years agofbsd/win32: fixed make to also compile the lq_* plugins
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:49:03 +0000 (09:49 +0100)]
fbsd/win32: fixed make to also compile the lq_* plugins

12 years agoremoved end-of-line spaces
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:46:57 +0000 (09:46 +0100)]
removed end-of-line spaces

12 years agofbsd: compile fix
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:46:31 +0000 (09:46 +0100)]
fbsd: compile fix

12 years agofbsd: small renaming to make live easier on comparing
Sven-Ola Tuecke [Sat, 10 Jan 2009 08:45:52 +0000 (09:45 +0100)]
fbsd: small renaming to make live easier on comparing

12 years agoFix segmentation fault during socket reading
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

12 years agoSync with git://git.acinonyx.ath.cx/olsrd-quagga.git
Vasilis Tsiligiannis [Fri, 9 Jan 2009 23:59:38 +0000 (01:59 +0200)]
Sync with git://git.acinonyx.ath.cx/olsrd-quagga.git

12 years agoOutput all logging events in debug mode before log system is initialized.
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.

12 years agorough rfc hysteresis implementation
Henning Rogge [Fri, 9 Jan 2009 07:35:59 +0000 (08:35 +0100)]
rough rfc hysteresis implementation

12 years agoos dep optimization: small speedup/unbloat on linux
Sven-Ola Tuecke [Thu, 8 Jan 2009 20:37:54 +0000 (21:37 +0100)]
os dep optimization: small speedup/unbloat on linux

12 years agoRefixed2: inlined olsr_times and moved error handling to init
Sven-Ola Tuecke [Thu, 8 Jan 2009 16:53:44 +0000 (17:53 +0100)]
Refixed2: inlined olsr_times and moved error handling to init

12 years agoBetter handling of dynamic loggers
Henning Rogge [Thu, 8 Jan 2009 15:42:01 +0000 (16:42 +0100)]
Better handling of dynamic loggers

12 years agoA little bit support for dynamic logging handler
Henning Rogge [Thu, 8 Jan 2009 14:11:24 +0000 (15:11 +0100)]
A little bit support for dynamic logging handler

12 years agoRefixed: changed comment and error handling for olsr_times wrapper func
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

12 years agoallow multiple log targets for new logging system
Henning Rogge [Thu, 8 Jan 2009 12:22:16 +0000 (13:22 +0100)]
allow multiple log targets for new logging system

12 years agohandle log_source all in --log parameter
Henning Rogge [Thu, 8 Jan 2009 11:40:07 +0000 (12:40 +0100)]
handle log_source all in --log parameter

12 years agoBug: on vpn.berlin.freifunk.net times() return negative value
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.

12 years agoAdd framework for new logging routines
Henning Rogge [Wed, 7 Jan 2009 20:22:10 +0000 (21:22 +0100)]
Add framework for new logging routines

12 years agodoc: added README-metrics.txt as new man page
Sven-Ola Tuecke [Wed, 7 Jan 2009 11:14:49 +0000 (12:14 +0100)]
doc: added README-metrics.txt as new man page

12 years agoset constants for ip_acl plugin parameters
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

12 years agoconvert ip_prefix_list to common/list datastructure
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

12 years agomoved README to the proper destination
L. Aaron Kaplan [Tue, 6 Jan 2009 20:20:38 +0000 (20:20 +0000)]
moved README to the proper destination

12 years agofix problem on OS X: no packets where sent out.
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.

12 years agoRemoved link to libpthread from daemon.
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).