olsrd.git
13 years ago* also change the default in the code
Bernd Petrovitsch [Thu, 6 Sep 2007 12:08:28 +0000 (12:08 +0000)]
* also change the default in the code

13 years ago* change the default window size to 12
Bernd Petrovitsch [Thu, 6 Sep 2007 11:45:09 +0000 (11:45 +0000)]
* change the default window size to 12

13 years ago* fixed mistyped field name
Bernd Petrovitsch [Wed, 5 Sep 2007 22:17:26 +0000 (22:17 +0000)]
* fixed mistyped field name

13 years ago* added blurb for the changelog
Bernd Petrovitsch [Wed, 5 Sep 2007 16:32:46 +0000 (16:32 +0000)]
* added blurb for the changelog

13 years ago* #if 0 ... #endif out an unused function
Bernd Petrovitsch [Wed, 5 Sep 2007 16:30:50 +0000 (16:30 +0000)]
* #if 0 ... #endif out an unused function

13 years ago* applied 102-olsrd-rt-refactoring-fixes.patch from Sven-Ola Tuecke <mail2news@comman...
Bernd Petrovitsch [Wed, 5 Sep 2007 16:17:36 +0000 (16:17 +0000)]
* applied 102-olsrd-rt-refactoring-fixes.patch from Sven-Ola Tuecke <mail2news@commando.de>

13 years ago* applied rt-refactoring-6.diff from Hannes Gredler <hannes@gredler.at>
Bernd Petrovitsch [Wed, 5 Sep 2007 16:11:11 +0000 (16:11 +0000)]
* applied rt-refactoring-6.diff from Hannes Gredler <hannes@gredler.at>

13 years ago* and declare the correct function
Bernd Petrovitsch [Sun, 2 Sep 2007 22:51:33 +0000 (22:51 +0000)]
* and declare the correct function

13 years ago* converted TAS plugin interface to version 5. Untested since I have not test cases...
Bernd Petrovitsch [Sun, 2 Sep 2007 22:17:00 +0000 (22:17 +0000)]
* converted TAS plugin interface to version 5. Untested since I have not test cases. But it looks pretty obvious

13 years ago* converted it to plugin interface version 5. It doesn't make much sense to leave...
Bernd Petrovitsch [Sun, 2 Sep 2007 21:37:49 +0000 (21:37 +0000)]
* converted it to plugin interface version 5. It doesn't make much sense to leave version 1 there

13 years ago* use "__attribute__((unused))" instead of empty code
Bernd Petrovitsch [Sun, 2 Sep 2007 21:04:42 +0000 (21:04 +0000)]
* use "__attribute__((unused))" instead of empty code

13 years ago* converted to interface version 5 and simplified a little bit
Bernd Petrovitsch [Thu, 30 Aug 2007 22:49:13 +0000 (22:49 +0000)]
* converted to interface version 5 and simplified a little bit

13 years ago* always show an error
Bernd Petrovitsch [Thu, 30 Aug 2007 22:25:13 +0000 (22:25 +0000)]
* always show an error

13 years ago* and something for the CHANGELOG
Bernd Petrovitsch [Wed, 29 Aug 2007 23:17:13 +0000 (23:17 +0000)]
* and something for the CHANGELOG

13 years ago* grrmml, Win32 doesn't know uint8_t
Bernd Petrovitsch [Wed, 29 Aug 2007 23:08:54 +0000 (23:08 +0000)]
* grrmml, Win32 doesn't know uint8_t

13 years agoAnother big cleanup (brewing hereover):
Bernd Petrovitsch [Wed, 29 Aug 2007 22:57:17 +0000 (22:57 +0000)]
Another big cleanup (brewing hereover):
I rewrote the half of src/lq_packet.[ch] which deals with incoming packets.
This was triggered with performance output of gcc procuced by Sven-Ola Tuecke at
CCCamp07.
This cvs-commit kills lots of (more than) superflous malloc()s and the same
number of (free()s). And it also kills some code.

13 years ago* use more variables
Bernd Petrovitsch [Wed, 29 Aug 2007 22:26:11 +0000 (22:26 +0000)]
* use more variables

13 years ago- Based on a patch by Gianni Costanzi <gianni.costanzi@gmail.com> (so credits
Bernd Petrovitsch [Wed, 29 Aug 2007 21:46:26 +0000 (21:46 +0000)]
- Based on a patch by Gianni Costanzi <gianni.costanzi@gmail.com> (so credits
  and thanks have to go there):
  added OS_CFLAG_PTHREAD Makefile variable since gcc (on Linux) requests this
  in the manual page.
  Changes/additions:
  - I added definitions to all OS-specific Makefile.$OS with the value similar
    to the value in OS_LIB_PTHREAD (either empty or "-pthread").
  - The variable is added to CPPFLAGS (and not CFLAGS) since CPPFLAGS is used
    for all cpp and gcc calls (and gcc's man page indicates that it sets
    variables for both of them).

This has not been compiled or tested on anything except Linux up to now (and
to the best of my knowledge). So if you are a *BSD, Windows/CygWin or MacOSX
guru and there is something wrong, please send a patch.

13 years ago- Made a function from the ME_TO_DOUBLE() macro (in src/mantissa.h).
Bernd Petrovitsch [Tue, 28 Aug 2007 20:45:17 +0000 (20:45 +0000)]
- Made a function from the ME_TO_DOUBLE() macro (in src/mantissa.h).
  This saves code throughout the code even on i386 and will even more
  on architectures without floating point units and "-msoft-float".
- And the mathemathics in src/mantissa.h is reformulated to minimize
  floating point operations to save CPU power - especially on embedded
  devices.

13 years ago* reduced duplicated code
Bernd Petrovitsch [Tue, 28 Aug 2007 20:10:16 +0000 (20:10 +0000)]
* reduced duplicated code

13 years ago* and a blurb about the commit
Bernd Petrovitsch [Sat, 25 Aug 2007 19:51:14 +0000 (19:51 +0000)]
* and a blurb about the commit

13 years ago* Patch from Sven-Ola Tuecke to convert more plugins to the new interface.
Bernd Petrovitsch [Sat, 25 Aug 2007 19:48:42 +0000 (19:48 +0000)]
* Patch from Sven-Ola Tuecke to convert more plugins to the new interface.

13 years ago* ooops
Bernd Petrovitsch [Thu, 23 Aug 2007 21:20:02 +0000 (21:20 +0000)]
* ooops

13 years ago* made s local function static
Bernd Petrovitsch [Thu, 23 Aug 2007 21:04:33 +0000 (21:04 +0000)]
* made s local function static
* avoid a name clash of a local variable with an library function

13 years ago* Sven-Ola found the use of an uninitialized variable. This is my fix for it.
Bernd Petrovitsch [Thu, 23 Aug 2007 21:01:56 +0000 (21:01 +0000)]
* Sven-Ola found the use of an uninitialized variable. This is my fix for it.

13 years ago* on win32 also remove the (generated) libolsrd.a. This is (IIUC) a
Bernd Petrovitsch [Thu, 23 Aug 2007 09:12:55 +0000 (09:12 +0000)]
* on win32 also remove the (generated) libolsrd.a. This is (IIUC) a
  by-product of the linking of olsrd.exe
*

13 years ago* set the all:target before including the OS-specific Makefiles so that we can get...
Bernd Petrovitsch [Thu, 23 Aug 2007 09:09:23 +0000 (09:09 +0000)]
* set the all:target before including the OS-specific Makefiles so that we can get rid of the same approx. 10 lines above

13 years ago* cleanup: const'ified parameters
Bernd Petrovitsch [Mon, 20 Aug 2007 18:46:03 +0000 (18:46 +0000)]
* cleanup: const'ified parameters

13 years ago* fix compilation on *BSD: the "sed" there doesn't seem to handle the removed express...
Bernd Petrovitsch [Mon, 20 Aug 2007 15:10:23 +0000 (15:10 +0000)]
* fix compilation on *BSD: the "sed" there doesn't seem to handle the removed expression correctly

13 years ago* added text for 0.5.4
Bernd Petrovitsch [Sun, 19 Aug 2007 23:12:18 +0000 (23:12 +0000)]
* added text for 0.5.4

13 years agocleanup: killed "extern" from .c files
Bernd Petrovitsch [Sun, 19 Aug 2007 23:00:22 +0000 (23:00 +0000)]
cleanup: killed "extern" from .c files

13 years ago* added olsr_makefile_make_use_of_exename.patch from Arnd Hannemann <hannemann@i4...
Bernd Petrovitsch [Sun, 19 Aug 2007 20:47:09 +0000 (20:47 +0000)]
* added olsr_makefile_make_use_of_exename.patch from Arnd Hannemann <hannemann@i4.informatik.rwth-aachen.de>

13 years agoapplied
Bernd Petrovitsch [Sun, 19 Aug 2007 20:37:41 +0000 (20:37 +0000)]
applied
  110-olsrd-double-wlancard-neigh-hack.patch,
  111-olsrd-complainpluginvers-nosleep.patch,
  112-olsrd-nameservice-fixemptyname.patch,
  113-olsrd-dyngwplain-pluginvers5.patch and
  140-olsrd-arprefreshed.patch
from http://download-master.berlin.freifunk.net/sven-ola/nylon/packages/olsrd/files/

13 years ago* sync'ed current svn (rev 33) upon Immo 'FaUl' Wehrenberg's hint
Bernd Petrovitsch [Thu, 16 Aug 2007 19:07:28 +0000 (19:07 +0000)]
* sync'ed current svn (rev 33) upon Immo 'FaUl' Wehrenberg's hint

13 years ago* "type" is a bash-builtin (as pointed out by Sven-Ola Tuecke)
Bernd Petrovitsch [Thu, 16 Aug 2007 18:41:34 +0000 (18:41 +0000)]
* "type" is a bash-builtin (as pointed out by Sven-Ola Tuecke)

13 years ago* pave the way to add -Wshadow
Bernd Petrovitsch [Thu, 2 Aug 2007 22:07:19 +0000 (22:07 +0000)]
* pave the way to add -Wshadow

13 years ago* use NULL instead for 0 for pointers
Bernd Petrovitsch [Thu, 2 Aug 2007 22:00:46 +0000 (22:00 +0000)]
* use NULL instead for 0 for pointers

13 years ago* fixed a bad cast
Bernd Petrovitsch [Thu, 2 Aug 2007 21:59:59 +0000 (21:59 +0000)]
* fixed a bad cast

13 years ago* pave the way to add -Wshadow
Bernd Petrovitsch [Thu, 2 Aug 2007 21:58:43 +0000 (21:58 +0000)]
* pave the way to add -Wshadow
* save an int in the data segment

13 years ago* const-ify parameters
Bernd Petrovitsch [Thu, 2 Aug 2007 21:57:06 +0000 (21:57 +0000)]
* const-ify parameters
* pave the way to add -Wshadow

13 years ago* const-ify parameters
Bernd Petrovitsch [Thu, 2 Aug 2007 21:51:40 +0000 (21:51 +0000)]
* const-ify parameters

13 years ago* const-ify parameters
Bernd Petrovitsch [Thu, 2 Aug 2007 21:50:22 +0000 (21:50 +0000)]
* const-ify parameters
* pave the way to add -Wshadow
* use "NULL" instead for "0" for pointers

13 years ago* boilerplate parentheses in macros
Bernd Petrovitsch [Thu, 2 Aug 2007 21:45:33 +0000 (21:45 +0000)]
* boilerplate parentheses in macros

13 years ago* start with 0.5.4
Bernd Petrovitsch [Thu, 2 Aug 2007 21:42:40 +0000 (21:42 +0000)]
* start with 0.5.4

13 years ago* fixed more typos
Bernd Petrovitsch [Thu, 2 Aug 2007 20:57:21 +0000 (20:57 +0000)]
* fixed more typos

13 years ago* set version to 0.5.4.pre
Bernd Petrovitsch [Thu, 2 Aug 2007 20:54:01 +0000 (20:54 +0000)]
* set version to 0.5.4.pre

13 years ago* set version to 0.5.3 OLSRD_0_5_3
Bernd Petrovitsch [Thu, 2 Aug 2007 20:53:20 +0000 (20:53 +0000)]
* set version to 0.5.3

13 years ago* update with .spec file from the 0.5.2-*.src.rpm and killed the lines for the patch
Bernd Petrovitsch [Thu, 2 Aug 2007 20:31:37 +0000 (20:31 +0000)]
* update with .spec file from the 0.5.2-*.src.rpm and killed the lines for the patch

13 years ago* ignore a ganerated file
Bernd Petrovitsch [Thu, 2 Aug 2007 20:18:24 +0000 (20:18 +0000)]
* ignore a ganerated file

13 years ago* fixed a typo
Bernd Petrovitsch [Thu, 2 Aug 2007 20:06:47 +0000 (20:06 +0000)]
* fixed a typo

13 years ago* new version and a little more blurb
Bernd Petrovitsch [Thu, 2 Aug 2007 20:02:56 +0000 (20:02 +0000)]
* new version and a little more blurb

13 years ago* fixed -fPIC breakage
Bernd Petrovitsch [Thu, 2 Aug 2007 19:59:15 +0000 (19:59 +0000)]
* fixed -fPIC breakage

13 years ago* added "ia64" to the list of architectures which want -fPIC
Bernd Petrovitsch [Thu, 2 Aug 2007 16:26:55 +0000 (16:26 +0000)]
* added "ia64" to the list of architectures which want -fPIC

13 years ago* added "parisc64" to the list of architectures which want -fPIC and condensed it...
Bernd Petrovitsch [Thu, 2 Aug 2007 15:51:54 +0000 (15:51 +0000)]
* added "parisc64" to the list of architectures which want -fPIC and condensed it a little bit

13 years ago* const-ified parameters
Bernd Petrovitsch [Thu, 2 Aug 2007 14:47:26 +0000 (14:47 +0000)]
* const-ified parameters

13 years ago* also use on the function definition "static"
Bernd Petrovitsch [Thu, 2 Aug 2007 14:38:34 +0000 (14:38 +0000)]
* also use on the function definition "static"

13 years ago* more info
Bernd Petrovitsch [Thu, 2 Aug 2007 12:34:53 +0000 (12:34 +0000)]
* more info

13 years ago* do not generate dependencies before cleaning as we delete them right away again
Bernd Petrovitsch [Thu, 2 Aug 2007 12:31:38 +0000 (12:31 +0000)]
* do not generate dependencies before cleaning as we delete them right away again

13 years ago* killed an unnecessary static variable
Bernd Petrovitsch [Thu, 2 Aug 2007 12:24:37 +0000 (12:24 +0000)]
* killed an unnecessary static variable

13 years ago* fixed build errors on Debian/HPPA and Debian/Alpha - patch against 0.4.10 was from...
Bernd Petrovitsch [Thu, 2 Aug 2007 12:19:57 +0000 (12:19 +0000)]
* fixed build errors on Debian/HPPA and Debian/Alpha - patch against 0.4.10 was from Julien Cristau <jcristau@debian.org>, now rediscovered by Holger Levsen <holger@layer-acht.org>

13 years ago* fixed build errors on Debian/HPPA and Debian/Alpha - patch against 0.4.10 was from...
Bernd Petrovitsch [Thu, 2 Aug 2007 11:56:53 +0000 (11:56 +0000)]
* fixed build errors on Debian/HPPA and Debian/Alpha - patch against 0.4.10 was from Julien Cristau <jcristau@debian.org>, now rediscovered by Holger Levsen <holger@layer-acht.org>

13 years ago* const'ify function
Bernd Petrovitsch [Thu, 2 Aug 2007 10:20:25 +0000 (10:20 +0000)]
* const'ify function

13 years ago* removed a superflous cast
Bernd Petrovitsch [Wed, 1 Aug 2007 16:28:30 +0000 (16:28 +0000)]
* removed a superflous cast

13 years ago*use NULL instead of 0 for pointers
Bernd Petrovitsch [Wed, 1 Aug 2007 16:22:57 +0000 (16:22 +0000)]
*use NULL instead of 0 for pointers

13 years ago* declare a locally only used variable static (and not in each .c file which happen...
Bernd Petrovitsch [Wed, 1 Aug 2007 16:19:48 +0000 (16:19 +0000)]
* declare a locally only used variable static (and not in each .c file which happen to #include that .h file)

13 years ago*use NULL instead of 0 for pointers
Bernd Petrovitsch [Wed, 1 Aug 2007 16:18:30 +0000 (16:18 +0000)]
*use NULL instead of 0 for pointers

13 years ago* made locally only used functions "static"
Bernd Petrovitsch [Wed, 1 Aug 2007 16:16:05 +0000 (16:16 +0000)]
* made locally only used functions "static"

13 years ago* fixed SIGSEGV reported by Cedric Krier <ced@ced.homedns.org>
Bernd Petrovitsch [Tue, 31 Jul 2007 12:02:18 +0000 (12:02 +0000)]
* fixed SIGSEGV reported by Cedric Krier <ced@ced.homedns.org>

13 years ago* also delete the dependency files correctly
Bernd Petrovitsch [Sat, 28 Jul 2007 19:33:48 +0000 (19:33 +0000)]
* also delete the dependency files correctly

13 years ago* update
Bernd Petrovitsch [Sat, 28 Jul 2007 13:45:29 +0000 (13:45 +0000)]
* update

13 years ago* ooops
Bernd Petrovitsch [Sat, 28 Jul 2007 13:40:19 +0000 (13:40 +0000)]
* ooops

13 years ago* ignore the generated olsr_switch binary.cvsignore
Bernd Petrovitsch [Sat, 28 Jul 2007 12:59:38 +0000 (12:59 +0000)]
* ignore the generated olsr_switch binary.cvsignore

13 years ago* ooops, fixed another warning in the Windows port
Bernd Petrovitsch [Sat, 28 Jul 2007 12:58:23 +0000 (12:58 +0000)]
* ooops, fixed another warning in the Windows port

13 years ago* ooops, fixed typo
Bernd Petrovitsch [Sat, 28 Jul 2007 12:55:49 +0000 (12:55 +0000)]
* ooops, fixed typo

13 years ago* fixed warnings
Bernd Petrovitsch [Sat, 28 Jul 2007 12:53:15 +0000 (12:53 +0000)]
* fixed warnings

13 years ago* always show failed loading of a plugin
Bernd Petrovitsch [Thu, 26 Jul 2007 20:58:19 +0000 (20:58 +0000)]
* always show failed loading of a plugin

13 years ago* the contents of INCLUDES and DEFINES should now be placed into CPPFLAGS
Bernd Petrovitsch [Thu, 26 Jul 2007 17:34:54 +0000 (17:34 +0000)]
* the contents of INCLUDES and DEFINES should now be placed into CPPFLAGS
  as it belongs in there
* also all -I and -D options from CFALGS are now there
* however, we add for the time being INCLUDES and DEFINES to CPPFLAGS
  (and warn) to not break ouf of tree modules.
* and the -DSUPPORT_OLD_PLUGIN_VERSIONS=1 is now fixed as it should have
  been right from the start

13 years ago* fixed the "missing" #define more sane now
Bernd Petrovitsch [Thu, 26 Jul 2007 16:03:40 +0000 (16:03 +0000)]
* fixed the "missing" #define more sane now

13 years ago* and a section for 0.5.3
Bernd Petrovitsch [Mon, 23 Jul 2007 13:04:01 +0000 (13:04 +0000)]
* and a section for 0.5.3

13 years ago* fix for the dot-draw plugin breakage
Bernd Petrovitsch [Mon, 23 Jul 2007 12:58:38 +0000 (12:58 +0000)]
* fix for the dot-draw plugin breakage

13 years ago* port numbers are "int" and not "unsigned int"
Bernd Petrovitsch [Fri, 20 Jul 2007 12:25:56 +0000 (12:25 +0000)]
* port numbers are "int" and not "unsigned int"

13 years ago* activated supprot for the old plugin interface
Bernd Petrovitsch [Wed, 18 Jul 2007 10:38:51 +0000 (10:38 +0000)]
* activated supprot for the old plugin interface

13 years ago* inc'd version
Bernd Petrovitsch [Tue, 17 Jul 2007 13:13:08 +0000 (13:13 +0000)]
* inc'd version

13 years ago* updated README to 0.5.2. And I added a blurb about the txtinfo plugin. OLSRD_0_5_2
Bernd Petrovitsch [Tue, 17 Jul 2007 11:06:28 +0000 (11:06 +0000)]
* updated README to 0.5.2. And I added a blurb about the txtinfo plugin.

13 years agoupdate
Bernd Petrovitsch [Tue, 17 Jul 2007 09:52:01 +0000 (09:52 +0000)]
update

13 years ago* added comment
Bernd Petrovitsch [Tue, 17 Jul 2007 09:28:15 +0000 (09:28 +0000)]
* added comment

13 years ago* added a forgotten dependency
Bernd Petrovitsch [Sun, 15 Jul 2007 21:50:46 +0000 (21:50 +0000)]
* added a forgotten dependency

13 years ago* moved to plugin interface version 5
Bernd Petrovitsch [Sun, 15 Jul 2007 21:47:17 +0000 (21:47 +0000)]
* moved to plugin interface version 5

13 years ago* update
Bernd Petrovitsch [Sun, 15 Jul 2007 21:09:42 +0000 (21:09 +0000)]
* update

13 years ago* killed warnings on win
Bernd Petrovitsch [Sun, 15 Jul 2007 21:09:38 +0000 (21:09 +0000)]
* killed warnings on win

13 years ago* fixed formatting
Bernd Petrovitsch [Sun, 15 Jul 2007 20:59:06 +0000 (20:59 +0000)]
* fixed formatting

13 years agoI started to clean up the plugin parameter handling:
Bernd Petrovitsch [Sun, 15 Jul 2007 19:29:38 +0000 (19:29 +0000)]
I started to clean up the plugin parameter handling:
* Up to now some used case-insensitive, some used case-sensitive (with
  differing cases BTW) parameter names.
* Most plugins silently ignored unknown parameters.
This makes it hard to find errors in the olsrd.conf file.
Instead of simply fixing all the various plugins (and the mostly - more
or less - copied code), I reduced the plugin special code to a minimum
and (more or less automatically) all plugins behave the same (with
respect to the parameter handling).

How does it look now?
Every plugins exports a table of { parameter-name, parse-function,
addr-of-storage } to allow to share more code, e.g. the parsing and
checking of a port number or IP addresses.
Every plugin will export a function
----  snip  ----
void olsrd_get_plugin_parameters(const struct olsrd_plugin_parameters **params, int *size);
----  snip  ----
which delivers the address of the table and it's size. So in theory the
plugin could generate the table at load time though ATM all current
ones export statically defined tables.

What else is different?
- I introduced SUPPORT_OLD_PLUGIN_VERSIONS to simplifiy the compile-time
  removal of legacy support. It is not that much but more of a start.
- Plugin interface version 4 is supported until all plugins are
  migrated.
- The plugin loader produces now much more output - on good and error
  cases. I had too often to look into the source to find that I mistyped
  some parameter .....

ToDo:
- Several plugins cannot handle IPv6 at all - only IPv4 is implemented.
  Some of these functions are locally now but fixed versions can (and
  should IMHO) be shared by all plugins.

13 years ago* activate old plugin interface versions per default like before
Bernd Petrovitsch [Sun, 15 Jul 2007 18:11:45 +0000 (18:11 +0000)]
* activate old plugin interface versions per default like before

13 years ago* cosmetic
Bernd Petrovitsch [Sun, 15 Jul 2007 17:54:07 +0000 (17:54 +0000)]
* cosmetic

13 years ago* cleanup: have a newline at the end of the file
Bernd Petrovitsch [Sun, 15 Jul 2007 17:52:16 +0000 (17:52 +0000)]
* cleanup: have a newline at the end of the file

13 years ago* use the correct plugin interface version number
Bernd Petrovitsch [Sun, 15 Jul 2007 17:52:43 +0000 (17:52 +0000)]
* use the correct plugin interface version number

13 years ago* fixed compile warnings
Bernd Petrovitsch [Sun, 15 Jul 2007 17:48:55 +0000 (17:48 +0000)]
* fixed compile warnings

13 years ago* added common utility functions for plugins
Bernd Petrovitsch [Sun, 15 Jul 2007 17:46:46 +0000 (17:46 +0000)]
* added common utility functions for plugins

13 years ago* ignore dependency files
Bernd Petrovitsch [Sun, 15 Jul 2007 17:46:19 +0000 (17:46 +0000)]
* ignore dependency files

13 years ago* use the correct plugin interface version number
Bernd Petrovitsch [Sun, 15 Jul 2007 17:41:33 +0000 (17:41 +0000)]
* use the correct plugin interface version number