olsrd.git
11 years agozapped olsr_printf
Sven-Ola Tuecke [Fri, 12 Dec 2008 23:49:39 +0000 (00:49 +0100)]
zapped olsr_printf

11 years agoresolve build break when DEBUG is on
Sven-Ola Tuecke [Fri, 12 Dec 2008 23:42:26 +0000 (00:42 +0100)]
resolve build break when DEBUG is on

11 years agoresolve build break when DEBUG is off
Hannes Gredler [Fri, 12 Dec 2008 20:15:13 +0000 (21:15 +0100)]
resolve build break when DEBUG is off

11 years agofix build break under macosx
Hannes Gredler [Fri, 12 Dec 2008 16:07:48 +0000 (17:07 +0100)]
fix build break under macosx

11 years agohttp_info plugin: flush the allowed nets at shutdown
Hannes Gredler [Fri, 12 Dec 2008 11:20:27 +0000 (12:20 +0100)]
http_info plugin: flush the allowed nets at shutdown

11 years agoflush the duplicate set at shutdown
Hannes Gredler [Fri, 12 Dec 2008 10:41:35 +0000 (11:41 +0100)]
flush the duplicate set at shutdown

11 years agooops. exports wrong
Sven-Ola Tuecke [Fri, 12 Dec 2008 07:12:41 +0000 (08:12 +0100)]
oops. exports wrong

11 years agoAdded script to grab exportable plugin symbols
Sven-Ola Tuecke [Fri, 12 Dec 2008 07:06:29 +0000 (08:06 +0100)]
Added script to grab exportable plugin symbols

11 years agoCleanup for 'slash duplicate remove_interface() code'
Sven-Ola Tuecke [Fri, 12 Dec 2008 06:09:43 +0000 (07:09 +0100)]
Cleanup for 'slash duplicate remove_interface() code'

11 years agoTemporary disable __attribute__((externally_visible)) until it's clear which compiler...
Sven-Ola Tuecke [Thu, 11 Dec 2008 22:17:29 +0000 (23:17 +0100)]
Temporary disable __attribute__((externally_visible)) until it's clear which compiler version is required

11 years agoAdded exports file
Sven-Ola Tuecke [Thu, 11 Dec 2008 21:43:11 +0000 (22:43 +0100)]
Added exports file
The olsrd.exports file may be used when linking the
olsrd executable. Issue the following command to activate:
make LDFLAGS='-Wl,--dynamic-list=src/olsrd.exports -Wl,-s'
The file mentions all symbols imported by current plugins.

11 years agoSorry, mixed up DEBUG and !NODEBUG as ususal
Sven-Ola Tuecke [Thu, 11 Dec 2008 19:42:21 +0000 (20:42 +0100)]
Sorry, mixed up DEBUG and !NODEBUG as ususal

11 years agoStatics hunt - zapped some debug
Sven-Ola Tuecke [Thu, 11 Dec 2008 18:29:59 +0000 (19:29 +0100)]
Statics hunt - zapped some debug

11 years agoStatics hunt: small fix for unused warning
Sven-Ola Tuecke [Thu, 11 Dec 2008 18:14:58 +0000 (19:14 +0100)]
Statics hunt: small fix for unused warning

11 years agoStatics hunt - accidentially disabled -Werror
Sven-Ola Tuecke [Thu, 11 Dec 2008 18:00:56 +0000 (19:00 +0100)]
Statics hunt - accidentially disabled -Werror

11 years agoStatics hunt acquired 10k garbage
Sven-Ola Tuecke [Thu, 11 Dec 2008 17:48:22 +0000 (18:48 +0100)]
Statics hunt acquired 10k garbage

11 years agocleanup chk_if_up for unix
Hannes Gredler [Thu, 11 Dec 2008 17:31:34 +0000 (18:31 +0100)]
cleanup chk_if_up for unix

11 years agoremove the "configured" flag from olsr interface configs:
Hannes Gredler [Thu, 11 Dec 2008 10:55:20 +0000 (11:55 +0100)]
remove the "configured" flag from olsr interface configs:
it has the same semantics as a direct reference to the interface.

11 years agobugfix: refcount protect the mid_timer
Hannes Gredler [Thu, 11 Dec 2008 10:20:20 +0000 (11:20 +0100)]
bugfix: refcount protect the mid_timer
such that the underlying TC entry does not vanish,
until the timer expires.

11 years agoslash duplicate remove_interface() code
Hannes Gredler [Wed, 10 Dec 2008 21:36:51 +0000 (22:36 +0100)]
slash duplicate remove_interface() code

11 years agobreak off remove_interfcae() from chk_if_changed()
Hannes Gredler [Wed, 10 Dec 2008 21:17:32 +0000 (22:17 +0100)]
break off remove_interfcae() from chk_if_changed()

11 years agofresh routes are identified that the nexthop pointer is *not* set
Hannes Gredler [Wed, 10 Dec 2008 20:54:17 +0000 (21:54 +0100)]
fresh routes are identified that the nexthop pointer is *not* set

11 years agorework RIB to use interface pointer rather than interface index
Hannes Gredler [Wed, 10 Dec 2008 20:41:27 +0000 (21:41 +0100)]
rework RIB to use interface pointer rather than interface index

11 years agoflush the config at shutdown
Hannes Gredler [Wed, 10 Dec 2008 18:56:43 +0000 (19:56 +0100)]
flush the config at shutdown

11 years agoflush the mid database at shutdown
Hannes Gredler [Wed, 10 Dec 2008 18:14:59 +0000 (19:14 +0100)]
flush the mid database at shutdown

11 years agoNew config: re-enabled the promised -nofork and -int params
Sven-Ola Tuecke [Wed, 10 Dec 2008 16:01:46 +0000 (17:01 +0100)]
New config: re-enabled the promised -nofork and -int params

11 years agoWin32 fixes: adapt temporarily to new config parser
Sven-Ola Tuecke [Wed, 10 Dec 2008 15:05:20 +0000 (16:05 +0100)]
Win32 fixes: adapt temporarily to new config parser

11 years agobugfix: stop mid timer when deleting a tc_entry
Hannes Gredler [Wed, 10 Dec 2008 14:10:47 +0000 (15:10 +0100)]
bugfix: stop mid timer when deleting a tc_entry

11 years agoWin32 fixes: use CLOSESOCKET to close sockets
Sven-Ola Tuecke [Wed, 10 Dec 2008 13:56:44 +0000 (14:56 +0100)]
Win32 fixes: use CLOSESOCKET to close sockets
Note: cygwin/mingw32 uses the win32::closesocket to close sockets

11 years agoWin32 fixes: different quirks accumulated over time
Sven-Ola Tuecke [Wed, 10 Dec 2008 13:55:50 +0000 (14:55 +0100)]
Win32 fixes: different quirks accumulated over time

11 years agofix comment
Hannes Gredler [Wed, 10 Dec 2008 13:44:00 +0000 (14:44 +0100)]
fix comment

11 years agoproper initialize socket head
Hannes Gredler [Wed, 10 Dec 2008 13:04:30 +0000 (14:04 +0100)]
proper initialize socket head

11 years agochange socket single linked list to double linked list
Hannes Gredler [Wed, 10 Dec 2008 12:58:43 +0000 (13:58 +0100)]
change socket single linked list to double linked list

11 years agoflush the link-state database at shutdown
Hannes Gredler [Wed, 10 Dec 2008 11:52:40 +0000 (12:52 +0100)]
flush the link-state database at shutdown

11 years agoflush all timers at shutdown
Hannes Gredler [Wed, 10 Dec 2008 10:59:18 +0000 (11:59 +0100)]
flush all timers at shutdown

11 years agofix valgrind false positive upon olsr shutdown:
Hannes Gredler [Wed, 10 Dec 2008 10:39:08 +0000 (11:39 +0100)]
fix valgrind false positive upon olsr shutdown:
make all the memory free_list entries accessible such that valgrind
does not log a false positive when doing list dequeing operations
and touching neighboring list entries.

11 years agodelete only all links of an interface instead of all links of interfaces having the...
Markus Kittenberger [Wed, 10 Dec 2008 05:57:09 +0000 (06:57 +0100)]
delete only all links of an interface instead of all links of interfaces having the same ip, when an interface goes down

11 years agoFixed some inconsisten init-before-sscanf
Sven-Ola Tuecke [Tue, 9 Dec 2008 20:58:45 +0000 (21:58 +0100)]
Fixed some inconsisten init-before-sscanf

11 years agooops - I shouldn't remove cfgparser/local.mk
Sven-Ola Tuecke [Tue, 9 Dec 2008 20:53:15 +0000 (21:53 +0100)]
oops - I shouldn't remove cfgparser/local.mk
Took the opportuniy to rename a bit

11 years agoChanged default of rtproto to 3 (boot)
Sven-Ola Tuecke [Tue, 9 Dec 2008 18:37:34 +0000 (19:37 +0100)]
Changed default of rtproto to 3 (boot)

11 years agoreplace flex/bison, wave 4
Sven-Ola Tuecke [Tue, 9 Dec 2008 18:12:12 +0000 (19:12 +0100)]
replace flex/bison, wave 4

11 years agoFIX: some range tests and malloc spam in config parser (by henning)
Markus Kittenberger [Tue, 9 Dec 2008 18:01:31 +0000 (19:01 +0100)]
FIX: some range tests and malloc spam in config parser (by henning)

11 years agoAdd RtProto support for the new config parser
Markus Kittenberger [Tue, 9 Dec 2008 17:12:01 +0000 (18:12 +0100)]
Add RtProto support for the new config parser

11 years agoreplace flex/bison, wave 3
Sven-Ola Tuecke [Tue, 9 Dec 2008 14:53:05 +0000 (15:53 +0100)]
replace flex/bison, wave 3

11 years agoreplace flex/bison, wave 2
Sven-Ola Tuecke [Tue, 9 Dec 2008 14:30:57 +0000 (15:30 +0100)]
replace flex/bison, wave 2

11 years agoreplace flex/bison, wave 1
Sven-Ola Tuecke [Tue, 9 Dec 2008 14:11:53 +0000 (15:11 +0100)]
replace flex/bison, wave 1

11 years agoadd RtProto (config file option) which control which custom proto is used for the...
markus@texas.funkfeuer.at [Mon, 8 Dec 2008 23:26:58 +0000 (00:26 +0100)]
add RtProto (config file option) which control which custom proto is used for the kernel routes

11 years agowork around valgrind memcheck false positives:
Hannes Gredler [Mon, 8 Dec 2008 22:59:54 +0000 (23:59 +0100)]
work around valgrind memcheck false positives:
once we enqueue memory blocks to the the free list or dequeue
memory blocks from the free list turn make the previous or next
list_node writeable.
perhaps bernd has a good ide howto further hide this code such that
it does not affect runtime performance.

11 years ago* make it compile with bounds-chcking gcc-4.0.2 again
Bernd Petrovitsch [Mon, 8 Dec 2008 22:38:47 +0000 (23:38 +0100)]
* make it compile with bounds-chcking gcc-4.0.2 again

11 years agoadd valgrind memcheck macros
Hannes Gredler [Mon, 8 Dec 2008 22:24:22 +0000 (23:24 +0100)]
add valgrind memcheck macros

11 years agoAgain removed end-of-line spaces
Sven-Ola Tuecke [Mon, 8 Dec 2008 21:07:11 +0000 (22:07 +0100)]
Again removed end-of-line spaces

11 years agoadd valgrind support for our block based memory manager
Hannes Gredler [Mon, 8 Dec 2008 20:11:51 +0000 (21:11 +0100)]
add valgrind support for our block based memory manager

11 years agoremove tas plugin from the source tree as nobody is using this
Hannes Gredler [Mon, 8 Dec 2008 20:02:36 +0000 (21:02 +0100)]
remove tas plugin from the source tree as nobody is using this

11 years agomake nameservice plugin use the correct interface iterator
Hannes Gredler [Mon, 8 Dec 2008 20:00:00 +0000 (21:00 +0100)]
make nameservice plugin use the correct interface iterator

11 years ago* #if-0-out an unused field. Should I remoive it?
Bernd Petrovitsch [Mon, 8 Dec 2008 18:25:03 +0000 (19:25 +0100)]
* #if-0-out an unused field. Should I remoive it?

11 years agoreplace the single linked list of all interfaces with a list_node.
Hannes Gredler [Mon, 8 Dec 2008 17:10:22 +0000 (18:10 +0100)]
replace the single linked list of all interfaces with a list_node.
rework all interface iterators with OLSR_FOR_ALL_INTERFACES()

11 years agoclose all file descriptors (except stdin. stdout, stderr) before execv()
Bernd Petrovitsch [Mon, 8 Dec 2008 15:51:51 +0000 (16:51 +0100)]
close all file descriptors (except stdin. stdout, stderr) before execv()

... so that we can create/bind/listen/... new ones afterwards.
What else should be done?

11 years agobugfix: delete all link entries matching a given IP address.
Hannes Gredler [Mon, 8 Dec 2008 15:32:49 +0000 (16:32 +0100)]
bugfix: delete all link entries matching a given IP address.
when an interface goes down we need to flush *all* link entries
with the local IP address and not just the first one.

11 years agoslash duplicate code:
Hannes Gredler [Mon, 8 Dec 2008 09:53:44 +0000 (10:53 +0100)]
slash duplicate code:
there is far too many code duplicated in the OS specific code.
Lets start to slash some of this and move back interface related code
back to the common code.

11 years agoFix various format strings
Bernd Petrovitsch [Sun, 7 Dec 2008 22:22:17 +0000 (23:22 +0100)]
Fix various format strings

11 years ago fixed formatting
Bernd Petrovitsch [Sun, 7 Dec 2008 22:10:57 +0000 (23:10 +0100)]
 fixed formatting

11 years ago removed an unused struct
Bernd Petrovitsch [Sun, 7 Dec 2008 22:07:26 +0000 (23:07 +0100)]
 removed an unused struct

11 years agobugfix: add lock for the reference from the config interface to the real interface
Hannes Gredler [Sun, 7 Dec 2008 21:39:41 +0000 (22:39 +0100)]
bugfix: add lock for the reference from the config interface to the real interface

11 years agobugfix: do not overwrite interfaces references in the link
Hannes Gredler [Sun, 7 Dec 2008 15:55:02 +0000 (16:55 +0100)]
bugfix: do not overwrite interfaces references in the link

11 years agobugfix: stop buffer_hold_timer when deleting an interface
Hannes Gredler [Sun, 7 Dec 2008 15:20:20 +0000 (16:20 +0100)]
bugfix: stop buffer_hold_timer when deleting an interface

11 years agolock/unlock the underlying interface when installing routes
Hannes Gredler [Sun, 7 Dec 2008 10:52:29 +0000 (11:52 +0100)]
lock/unlock the underlying interface when installing routes

11 years agorefcount protect interfaces
Hannes Gredler [Sun, 7 Dec 2008 10:40:47 +0000 (11:40 +0100)]
refcount protect interfaces

11 years agomake the interface code use our lightweight memory manager
Hannes Gredler [Sun, 7 Dec 2008 10:09:51 +0000 (11:09 +0100)]
make the interface code use our lightweight memory manager

11 years agonode is a pointer so compare it against NULL
Bernd Petrovitsch [Sat, 6 Dec 2008 23:51:51 +0000 (00:51 +0100)]
node is a pointer so compare it against NULL

11 years agoAdded readme for linux-gtk
Sven-Ola Tuecke [Fri, 5 Dec 2008 07:39:28 +0000 (08:39 +0100)]
Added readme for linux-gtk

11 years agoRemoved end-of-line spaces
Sven-Ola Tuecke [Thu, 4 Dec 2008 07:34:05 +0000 (08:34 +0100)]
Removed end-of-line spaces

11 years agonameservice: added plausicheck for macs
Sven-Ola Tuecke [Thu, 4 Dec 2008 07:31:54 +0000 (08:31 +0100)]
nameservice: added plausicheck for macs

11 years agonameservice: added mac address function
Sven-Ola Tuecke [Wed, 3 Dec 2008 21:54:27 +0000 (22:54 +0100)]
nameservice: added mac address function

11 years agocorrected gnu-indent quirks
Sven-Ola Tuecke [Wed, 3 Dec 2008 21:07:45 +0000 (22:07 +0100)]
corrected gnu-indent quirks

11 years agospeedup avl library:
Hannes Gredler [Tue, 2 Dec 2008 20:10:31 +0000 (21:10 +0100)]
speedup avl library:
-convert lookup and insertion locator from recursive to non-recursive
-remove ipv4 optimizations since we use the avl library more for non-ipv4
 applications (that speeds up the generic case as well).

11 years agobugfix: init filter tree before doing manipulations
Hannes Gredler [Tue, 2 Dec 2008 19:42:07 +0000 (20:42 +0100)]
bugfix: init filter tree before doing manipulations

11 years agoProtect nameservice param struct to gnu-indent
Sven-Ola Tuecke [Tue, 2 Dec 2008 07:12:11 +0000 (08:12 +0100)]
Protect nameservice param struct to gnu-indent

11 years agoremoved an unreachable line
Bernd Petrovitsch [Mon, 1 Dec 2008 22:32:44 +0000 (23:32 +0100)]
removed an unreachable line

11 years ago commented out write-only variables
Bernd Petrovitsch [Mon, 1 Dec 2008 22:26:29 +0000 (23:26 +0100)]
 commented out write-only variables

11 years ago- use #if 0 ... #endif to comment out code
Bernd Petrovitsch [Mon, 1 Dec 2008 22:25:53 +0000 (23:25 +0100)]
- use #if 0 ... #endif to comment out code
- removed a write-only variable
- fixed format strings

11 years agowe use #if in the source so let's always #define YYENABLE_NLS aand YYLTYPE_IS_TRIVIAL
Bernd Petrovitsch [Mon, 1 Dec 2008 22:24:19 +0000 (23:24 +0100)]
we use #if in the source so let's always #define YYENABLE_NLS aand YYLTYPE_IS_TRIVIAL

11 years ago removed a write-only variable
Bernd Petrovitsch [Mon, 1 Dec 2008 22:23:33 +0000 (23:23 +0100)]
 removed a write-only variable

11 years agoadded parentheses arounf macro argument
Bernd Petrovitsch [Mon, 1 Dec 2008 22:23:04 +0000 (23:23 +0100)]
added parentheses arounf macro argument

11 years ago* comment out an otherwise unused variable
Bernd Petrovitsch [Mon, 1 Dec 2008 22:22:13 +0000 (23:22 +0100)]
* comment out an otherwise unused variable

11 years agowe use #if in the source so let's always #define SUPPORT_OLD_PLUGIN_VERSIONS
Bernd Petrovitsch [Mon, 1 Dec 2008 22:21:15 +0000 (23:21 +0100)]
we use #if in the source so let's always #define SUPPORT_OLD_PLUGIN_VERSIONS

11 years agoFixed an embarrassing bug if we want to generate a netmask from a prefix == 0.
Bernd Petrovitsch [Sun, 30 Nov 2008 22:50:56 +0000 (23:50 +0100)]
Fixed an embarrassing bug if we want to generate a netmask from a prefix == 0.
Added an inline function to avoid someone else making the same mistake

All credits belong to Markus Kittenberger <Markus.Kittenberger@gmx.at> for finding,
reporting and hunting it down to the root cause.

11 years agoAnother BSD compile fix
Sven-Ola Tuecke [Fri, 28 Nov 2008 09:00:21 +0000 (10:00 +0100)]
Another BSD compile fix

11 years agoRemoved the old non-policy routing code
Sven-Ola Tuecke [Fri, 28 Nov 2008 08:42:17 +0000 (09:42 +0100)]
Removed the old non-policy routing code

11 years agoBSD bugfix for alinas ipv6 changes
Sven-Ola Tuecke [Fri, 28 Nov 2008 08:14:21 +0000 (09:14 +0100)]
BSD bugfix for alinas ipv6 changes

11 years ago* try a compile fix
Bernd Petrovitsch [Thu, 27 Nov 2008 22:10:25 +0000 (23:10 +0100)]
* try a compile fix

11 years agoWin32 compile fixes
Sven-Ola Tuecke [Thu, 27 Nov 2008 21:19:37 +0000 (22:19 +0100)]
Win32 compile fixes

11 years ago* an addon to the last one with a few missing files
Bernd Petrovitsch [Thu, 27 Nov 2008 19:59:59 +0000 (20:59 +0100)]
* an addon to the last one with a few missing files

11 years agoRemove the olsr-specific duplicated types
Bernd Petrovitsch [Thu, 27 Nov 2008 19:45:46 +0000 (20:45 +0100)]
Remove the olsr-specific duplicated types

Namely this are olsr_bool and the integer types with defined widhts.
For the first, we use <stdbool.h> as defined in C99 or emulate it. For
the latter, we use <stdint.h> or emulate it.

Apart from editing src/olsr_cfg.h by hand, the rest iwas done with
----  snip  ----
find src lib \( -name '*.[chy]' -o -name 'oscan.lex' \) -print | \
    xargs perl -w -i -p -e '\
        s/olsr_(u?)(8|16|32)_t/$1int$2_t/g;\
        s/olsr_bool/bool/g;\
        s/OLSR_TRUE/true/g;\
        s/OLSR_FALSE/false/g;'
----  snip  ----
Beware: The line breaks are there for readability. Just put the whole
on one line in your $SHELL.

If you have larger changes, the easiest forward proitng is probably:
- make a patch with your changes against the previous version (and
  save it away;-)
- `hg revert -a`
- `hg fetch`
- `perl -w -p -e '\
        s/olsr_(u?)(8|16|32)_t/$1int$2_t/g;\
        s/olsr_bool/bool/g;\
        s/OLSR_TRUE/true/g;\
        s/OLSR_FALSE/false/g;' < $YOUR_PATCH > $YOUR_PATCH-new`
- and apply your patch again.
For hg/mq people:
- `hg qpo -a`
- `hg fetch`
- `perl -w -i -p -e '\
        s/olsr_(u?)(8|16|32)_t/$1int$2_t/g;\
        s/olsr_bool/bool/g;\
        s/OLSR_TRUE/true/g;\
        s/OLSR_FALSE/false/g;' .hg/patches/*`
   Take care that you do not change the names in .hg/patches/series.

11 years agoHi,
Alina Friedrichsen [Thu, 27 Nov 2008 19:34:38 +0000 (20:34 +0100)]
Hi,

with this patch you can now select an ULA (RFC 4193 --> replacement of the
site-local addresses) for the OLSR meshing by setting Ip6AddrType to
"unique-local".

And it has now an auto mode, too. If you set Ip6AddrType to "auto", it
try to find a site-local first, then an unique-local, then a global. Good
as the default config, so that you can easy setup an IPv6 mesh.

Warning: The *BSD code is untested, because I don't have this OS here.

11 years agoAutomated merge with http://gredler.at/hg/olsrd
Bernd Petrovitsch [Thu, 27 Nov 2008 09:56:13 +0000 (10:56 +0100)]
Automated merge with http://gredler.at/hg/olsrd

11 years agoRepair ipc-msg-tap, repair skip-fwd of msg-input, repair fwd unknown msgs, repair...
Sven-Ola Tuecke [Wed, 26 Nov 2008 16:42:40 +0000 (17:42 +0100)]
Repair ipc-msg-tap, repair skip-fwd of msg-input, repair fwd unknown msgs, repair dupfilter

11 years agoAutomated merge with http://gredler.at/hg/olsrd
Bernd Petrovitsch [Wed, 26 Nov 2008 11:59:52 +0000 (12:59 +0100)]
Automated merge with http://gredler.at/hg/olsrd

11 years ago* use the ARRAYSIZE macro everywhere
Bernd Petrovitsch [Wed, 26 Nov 2008 00:26:17 +0000 (01:26 +0100)]
* use the ARRAYSIZE macro everywhere

11 years agoallow sinple overwriting of the INLINE #define to look for errors
Bernd Petrovitsch [Wed, 26 Nov 2008 00:18:32 +0000 (01:18 +0100)]
allow sinple overwriting of the INLINE #define to look for errors

11 years agoAutomated merge with http://gredler.at/hg/olsrd
Bernd Petrovitsch [Tue, 25 Nov 2008 23:35:02 +0000 (00:35 +0100)]
Automated merge with http://gredler.at/hg/olsrd