Sven-Ola Tuecke [Tue, 13 May 2008 09:22:13 +0000 (11:22 +0200)]
squelch memory allocator traces
Henning Rogge [Tue, 13 May 2008 09:11:10 +0000 (11:11 +0200)]
bugfix jitter calculation
Hannes Gredler [Mon, 12 May 2008 18:11:41 +0000 (20:11 +0200)]
bump version to 0.5.6-rc2
Hannes Gredler [Mon, 12 May 2008 18:09:40 +0000 (20:09 +0200)]
Added tag OLSRD_0_5_6_RC2 for changeset
bd66c98dc4c8
Henning Rogge [Mon, 12 May 2008 18:08:10 +0000 (20:08 +0200)]
Bugfix for Link quality dijkstra limit
Bernd Petrovitsch [Mon, 5 May 2008 09:09:39 +0000 (11:09 +0200)]
add LIBDIR to the linker flags for olsrd
Hannes Gredler [Tue, 29 Apr 2008 09:16:40 +0000 (11:16 +0200)]
use .tar.gz rather than .tgz for tarball creation
Hannes Gredler [Tue, 29 Apr 2008 08:36:06 +0000 (10:36 +0200)]
make mk-tarball create a .bz2 tarball as well
Hannes Gredler [Tue, 29 Apr 2008 08:31:58 +0000 (10:31 +0200)]
add a script for easy tarball generation
Hannes Gredler [Tue, 29 Apr 2008 07:38:00 +0000 (09:38 +0200)]
Added tag OLSRD_0_5_6_RC1 for changeset
fd8f4e49a398
Hannes Gredler [Tue, 29 Apr 2008 07:37:44 +0000 (09:37 +0200)]
update hall of (f|sh)ame
Hannes Gredler [Tue, 29 Apr 2008 07:27:18 +0000 (09:27 +0200)]
bump version to 0.5.6-rc1
Hannes Gredler [Mon, 28 Apr 2008 21:38:30 +0000 (23:38 +0200)]
add small valgrind howto
Hannes Gredler [Mon, 28 Apr 2008 21:22:18 +0000 (23:22 +0200)]
convert tc_edge to use memory cookies
Hannes Gredler [Mon, 28 Apr 2008 21:20:48 +0000 (23:20 +0200)]
codestyle cleanup
Hannes Gredler [Mon, 28 Apr 2008 20:46:05 +0000 (22:46 +0200)]
remove the per tc_edge timer
a timer per tc_edge is a useless burning of timer resources in the system.
replace it with a garbage collection timer whcih is kicked 2s after
a TC reception. This also makes sure that multi part messages do
not cause tc_edge churn. we do a similar thing than with the rt_entry tree,
which is to keep the ansn per tc_edge and kill the outdated edges after the timer
fires. This is also a good opportunity to change the tc_entry to a clean
refcounted model which will make life easier in the future, towards a unified
link-state database.
Hannes Gredler [Mon, 28 Apr 2008 19:07:47 +0000 (21:07 +0200)]
squelch a compiler warning when the debugging code is #ifdef'ed out
Hannes Gredler [Mon, 28 Apr 2008 19:06:11 +0000 (21:06 +0200)]
some debug output for the memory allocator
Hannes Gredler [Mon, 28 Apr 2008 19:04:06 +0000 (21:04 +0200)]
convert the timer API to print some useful cookie information
Hannes Gredler [Mon, 28 Apr 2008 18:53:41 +0000 (20:53 +0200)]
add some basic infrastructure for cookies
Henning Rogge [Fri, 25 Apr 2008 10:27:01 +0000 (12:27 +0200)]
Bugfix for fragmented TC sequence numbers
Henning Rogge [Tue, 22 Apr 2008 14:29:48 +0000 (16:29 +0200)]
use correct macro for inline recasting
Hannes Gredler [Sun, 20 Apr 2008 16:27:25 +0000 (18:27 +0200)]
eliminate the data field from an avl_node
Hannes Gredler [Sat, 19 Apr 2008 19:21:57 +0000 (21:21 +0200)]
eliminate the data field from a list_node
the data field can be substituted by using the LISTNODE2STRUCT macro
Henning Rogge [Fri, 18 Apr 2008 11:56:33 +0000 (13:56 +0200)]
do not dump downed edges when displaying the tc table
Hannes Gredler [Fri, 18 Apr 2008 07:48:39 +0000 (09:48 +0200)]
From Henning Rogge: fix SPF bug
Hannes Gredler [Wed, 16 Apr 2008 08:07:47 +0000 (10:07 +0200)]
squelch compiler warnings
Hannes Gredler [Wed, 16 Apr 2008 07:59:29 +0000 (09:59 +0200)]
move list library into src/common
Hannes Gredler [Wed, 16 Apr 2008 07:57:21 +0000 (09:57 +0200)]
reformat the avl library
Hannes Gredler [Wed, 16 Apr 2008 07:53:42 +0000 (09:53 +0200)]
move avl and list library into src/common
Hannes Gredler [Tue, 15 Apr 2008 20:03:29 +0000 (22:03 +0200)]
add first cut of indentation dotfile for future code cleanup
Henning Rogge [Tue, 15 Apr 2008 15:00:27 +0000 (17:00 +0200)]
refactor linkset code
Hannes Gredler [Sun, 6 Apr 2008 20:32:12 +0000 (22:32 +0200)]
merge with http://gredler.at/hg/olsrd
Hannes Gredler [Sun, 6 Apr 2008 20:26:50 +0000 (22:26 +0200)]
merge HEAD branch
Hannes Gredler [Sun, 6 Apr 2008 20:14:29 +0000 (22:14 +0200)]
merge with HEAD branch
Hannes Gredler [Wed, 2 Apr 2008 07:30:27 +0000 (09:30 +0200)]
Add README file to contrib folder
Hannes Gredler [Tue, 1 Apr 2008 21:21:33 +0000 (23:21 +0200)]
add netsimpcap to .hgignore
Hannes Gredler [Tue, 1 Apr 2008 21:19:26 +0000 (23:19 +0200)]
remove netsimpcap binary
Hannes Gredler [Tue, 1 Apr 2008 21:15:51 +0000 (23:15 +0200)]
add the OLSR_FOR_ALL_HNA_ENTRIES walking macro
Hannes Gredler [Tue, 1 Apr 2008 21:02:03 +0000 (23:02 +0200)]
misc cosmetic cleanups in netsimpcap
Henning Rogge [Mon, 31 Mar 2008 00:26:17 +0000 (02:26 +0200)]
add netsimpcap, a network simulation device
Hannes Gredler [Wed, 12 Mar 2008 19:15:00 +0000 (20:15 +0100)]
nameservice plugin: unlink before freeing db_entries, kill all timers upon termination
Hannes Gredler [Sat, 8 Mar 2008 23:29:31 +0000 (00:29 +0100)]
add OLSR_FOR_ALL_NBR_ENTRIES macro, misc. code-style cleanups
Hannes Gredler [Sat, 8 Mar 2008 09:04:59 +0000 (10:04 +0100)]
rework LISTNODE2STRUCT macro, squelch inline limit compiler warnings
Hannes Gredler [Wed, 5 Mar 2008 09:57:47 +0000 (10:57 +0100)]
Automated merge with http://olsrd.sf.net/hg/olsrd
Hannes Gredler [Wed, 5 Mar 2008 09:56:15 +0000 (10:56 +0100)]
Add makefile rule for the txtinfo plugin
Hannes Gredler [Wed, 5 Mar 2008 09:54:46 +0000 (10:54 +0100)]
reserve merge conflicts from latest sf.net pull
Hannes Gredler [Wed, 5 Mar 2008 09:41:48 +0000 (10:41 +0100)]
Automated merge with http://olsrd.sf.net/hg/olsrd
Hannes Gredler [Wed, 5 Mar 2008 09:25:12 +0000 (10:25 +0100)]
bugfix: multiple timer manipulations, while a timer walk is in progress may corrupt the timer table
Hannes Gredler [Wed, 5 Mar 2008 08:33:45 +0000 (09:33 +0100)]
do not restart a periodic timer if the callback function has stopped the timer
Markus Kittenberger [Wed, 5 Mar 2008 07:46:43 +0000 (08:46 +0100)]
txtinfo plugin: add more http options
Hannes Gredler [Tue, 4 Mar 2008 15:59:21 +0000 (16:59 +0100)]
bugfix: do not always call olsr_delete_neighbor_pointer in olsr_del_nbr2_list as this may cause lateref issues
Hannes Gredler [Tue, 4 Mar 2008 08:58:21 +0000 (09:58 +0100)]
bugfix: delete, unlink and free a neighbor2 list by a common function
Hannes Gredler [Fri, 29 Feb 2008 19:12:27 +0000 (20:12 +0100)]
Automated merge with http://olsrd.sf.net/hg/olsrd
Hannes Gredler [Fri, 29 Feb 2008 19:11:38 +0000 (20:11 +0100)]
add olsr_switch to .hgignore
Hannes Gredler [Fri, 29 Feb 2008 18:56:04 +0000 (19:56 +0100)]
Automated merge with http://olsrd.sf.net/hg/olsrd
Sven-Ola Tuecke [Fri, 29 Feb 2008 18:53:03 +0000 (19:53 +0100)]
make avl_comp_etx() use the new fixed point arithmetic
Hannes Gredler [Fri, 29 Feb 2008 16:31:40 +0000 (17:31 +0100)]
format correct wallclock timestamps and add GMT to local conversion
Hannes Gredler [Fri, 29 Feb 2008 14:39:47 +0000 (15:39 +0100)]
fix minor display issue
Hannes Gredler [Fri, 29 Feb 2008 14:37:11 +0000 (15:37 +0100)]
remove last remnant of olsr_etc_to_string()
Hannes Gredler [Fri, 29 Feb 2008 14:31:57 +0000 (15:31 +0100)]
Automated merge with http://olsrd.sf.net/hg/olsrd
Hannes Gredler [Fri, 29 Feb 2008 14:24:20 +0000 (15:24 +0100)]
fix some timer-refactoring compiler warnings
Erik Tromp [Fri, 29 Feb 2008 09:50:43 +0000 (10:50 +0100)]
merge sf.net tree
Sven-Ola Tuecke [Fri, 29 Feb 2008 09:45:48 +0000 (10:45 +0100)]
bugfix fpm display precicion issues
Erik Tromp [Mon, 25 Feb 2008 19:20:49 +0000 (20:20 +0100)]
update in bmf due to new flags field in tc_edge_entry
Hannes Gredler [Tue, 19 Feb 2008 23:08:51 +0000 (00:08 +0100)]
squelch compiler warnings
Hannes Gredler [Tue, 19 Feb 2008 22:49:52 +0000 (23:49 +0100)]
From Hannes Gredler <hannes@gredler.at>: refactor the timer implementation
-slash all timeout functions and the corresponding infrastructure
-slash all event functions and the corresponding infrastructure
that means all polling based timer comparisions have been removed.
the scheduler rate can be now brought down to 10ms without much
additional overhead.
-introduce a new wheel based timer similar to the BSD kernel implementation
described in http://www.olsr.org/docs/wucs-95-23.pdf
there are three major calls
olsr_start_timer()
olsr_stop_timer()
olsr_change_timer()
alternatively there is a one-stop shop that figures out on its own what
to do.
olsr_set_timer()
this comes handy for avoiding a lot of copy and paste code updating
all the client code.
the new timer API supports periodical and singleshot timers.
once the timer expires a provided function along with a context pointer
is called back. After the singleshot timer fires the used memeory for
the timer is not freed but rather returned to a free memory pool for
avoiding malloc() churn.
the implementation is very efficient as all timer start/stop/change operations
are done in O(1) complexity. walking the timer slot in the main scheduler loop
has a complexity of O(N/K) where K is 256 which should give reasonable defaults
for thousands of timers in the system.
as a sideeffect all wallclock timer references have been removed. now only
one non-wallclock timer obtained by the times() call is maintained.
note that the olsr_secure plugin does keep its wallclock based timer.
it is left to the olsrd_secure plugin authors to convert this to a
non-wallclock based timers to avoid disaster events like when the system
clock changes.
Hannes Gredler [Tue, 19 Feb 2008 21:58:52 +0000 (22:58 +0100)]
From Clemens Hopfer <datacop@inode.at>: dot_draw plugin: close the connection after graph output.
Hannes Gredler [Tue, 19 Feb 2008 21:55:49 +0000 (22:55 +0100)]
From Henning Rogge <rogge@fgan.de>: parser refactoring
refactored the parser of olsrd so that this is done by two new functions:
void olsr_preprocessor_add_function(preprocessor_function);
int olsr_preprocessor_remove_function(preprocessor_function);
The "preprocessor_function" has the type
char *preprocessor_function(char *packet, struct interface *, union olsr_ip_addr *, int *length);
all registered preprocessors are called before the package is decoded by olsrd.
This way the secure plugin (and other possible plugins) can check the
packages, modify them or discard them (by returning NULL)
Hannes Gredler [Mon, 18 Feb 2008 19:24:34 +0000 (20:24 +0100)]
use calloc rather than malloc for lazy callers
Hannes Gredler [Fri, 15 Feb 2008 09:24:54 +0000 (10:24 +0100)]
From Sven-Ola Tuecke <sven-ola@gmx.de>: minor fixed point math bugfix/optimization
Hannes Gredler [Thu, 14 Feb 2008 09:09:28 +0000 (10:09 +0100)]
From Joe Gio <joezgio@gmail.com>: track if AC power is connected/disconnected
Hannes Gredler [Thu, 14 Feb 2008 08:56:01 +0000 (09:56 +0100)]
From Sven-Ola Tuecke <sven-ola@gmx.de>: add support for fixedpoint math
Fixed point math replaces floating point calculations by integer counterparts.
The 20 higher bits of a typical 32 bit hold the digits before the decimal
point > 1.0, the lower 12 bits hold the digits after the decimal point. An
old trick, e.g. used in gaming to speed up calculations, because long (+-*/)
long is always faster than float (+-*/). Of course, all calculations and
automatic number conversions have to be found and adpated.
To help in debugging, added and #ifdef USE_FPM to toggle betwenn FPM and
normal maths. One can remove that at a later stage if we are sure it works
correct. For this, I added CPPFLAGS+=USE_FPM to the central Makefile.inc.
Also critical: When using 20+12 bits, one have to check for overflows and
underflows. This is done by a number of assert() statements active only if
you compile with "make DEBUG=1". The olsrd compiled in this way will of
course save no CPU cycles.
Hannes Gredler [Wed, 6 Feb 2008 19:03:43 +0000 (20:03 +0100)]
tip of tree is now 0.5.6pre
Hannes Gredler [Wed, 6 Feb 2008 18:48:03 +0000 (19:48 +0100)]
tip of tree is now 0.5.6
Hannes Gredler [Wed, 6 Feb 2008 18:32:49 +0000 (19:32 +0100)]
Added tag OLSRD_0_5_5 for changeset
233036647bca
Hannes Gredler [Wed, 6 Feb 2008 18:32:39 +0000 (19:32 +0100)]
change version to 0.5.5
Hannes Gredler [Tue, 5 Feb 2008 10:53:06 +0000 (11:53 +0100)]
From John Hay <jhay@meraka.org.za>: bugfix: do not account for IP headers when building MID6 messages
Hannes Gredler [Thu, 31 Jan 2008 15:29:25 +0000 (16:29 +0100)]
squelch compiler warnings
Hannes Gredler [Thu, 31 Jan 2008 15:29:02 +0000 (16:29 +0100)]
turn off SPF_PROFILING
Hannes Gredler [Wed, 30 Jan 2008 15:13:30 +0000 (16:13 +0100)]
From Andreas Jacobs <andjac@kawo1.rwth-aachen.de>: bugfix for scheduler
After each iteration of the scheduler's main loop the scheduler
calculates, how much time this iteration took, and then sleeps for
the rest of the scheduler interval. The bug lies in the calculation
of the elapsed time, which is converted from a tick count to a
'struct timeval' which consists of a seconds value and a microseconds
value. The seconds are filled in correctly, but the microseconds
field is filled a milliseconds value instead of a microseconds value.
Consequently the elapsed time is always underestimated and afterwards
the scheduler sleeps too long.
Hannes Gredler [Mon, 28 Jan 2008 21:52:38 +0000 (22:52 +0100)]
From Jo-Philipp Wich <freifunk@wwsnet.net: bugfix: avoid infinite loop in the message parser
Hannes Gredler [Sun, 27 Jan 2008 18:04:33 +0000 (19:04 +0100)]
From Sven-Ola Tuecke <sven-ola@gmx.de>: bugfix on Windows Vista: add interface metric to SPF computed metric
Hannes Gredler [Wed, 23 Jan 2008 09:43:39 +0000 (10:43 +0100)]
Added tag OLSRD_0_5_5_RC1 for changeset
669b81f6918e
Hannes Gredler [Wed, 23 Jan 2008 09:43:09 +0000 (10:43 +0100)]
version bump to 0.5.5rc1
Hannes Gredler [Tue, 22 Jan 2008 22:27:02 +0000 (23:27 +0100)]
merge hannes' private tree
Hannes Gredler [Tue, 22 Jan 2008 21:34:51 +0000 (22:34 +0100)]
clean up code-style
Hannes Gredler [Tue, 22 Jan 2008 20:55:26 +0000 (21:55 +0100)]
clean up code-style
Hannes Gredler [Tue, 22 Jan 2008 14:05:34 +0000 (15:05 +0100)]
From John Hay <jhay@meraka.org.za>: compile clean on FreeBSD
Hannes Gredler [Mon, 21 Jan 2008 11:25:26 +0000 (12:25 +0100)]
From Dario Borriello <dario_bodj@hotmail.com>: bugfix: do not update LQ if not configured
Hannes Gredler [Wed, 16 Jan 2008 13:56:44 +0000 (14:56 +0100)]
From Jo-Philipp Wich <freifunk@wwsnet.net: fix olsr_ip_to_string() buffer quirk
Hannes Gredler [Mon, 14 Jan 2008 15:53:50 +0000 (16:53 +0100)]
From Henning Rogge <rogge@fgan.de>: join LQ and non-LQ Hello execution paths
Hannes Gredler [Fri, 4 Jan 2008 12:52:57 +0000 (13:52 +0100)]
merge sven-ola's tree
Hannes Gredler [Fri, 4 Jan 2008 11:08:52 +0000 (12:08 +0100)]
From Jo-Pilipp Wich: fix txtinfo format quirks in HNA table
Sven-Ola Tuecke [Wed, 2 Jan 2008 13:43:11 +0000 (14:43 +0100)]
lqtc-seqno: Optimize check for old seqno numbers in LQTC messages
Sven-Ola Tuecke [Wed, 2 Jan 2008 13:41:35 +0000 (14:41 +0100)]
rttable-default: (from otti) configures a new policy routing table for the default route
Sven-Ola Tuecke [Wed, 2 Jan 2008 13:37:52 +0000 (14:37 +0100)]
lqnatthresh: maintain an advantage for the current (NAT) inet gw
Sven-Ola Tuecke [Wed, 2 Jan 2008 10:47:40 +0000 (11:47 +0100)]
fisheye-startup: Changed to MAX_TTL for the first 32 LQTCs
Sven-Ola Tuecke [Wed, 2 Jan 2008 10:43:03 +0000 (11:43 +0100)]
102-olsrd-windowsfix-missing: Added and removed files necessary for win32 compile
Sven-Ola Tuecke [Wed, 2 Jan 2008 10:37:11 +0000 (11:37 +0100)]
Fix for hg: do not remove anything in .hg with 'make uberclean'