olsrd.git
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

13 years ago* fixed hashing bug found and fixed by Sven-Ola Tuecke
Bernd Petrovitsch [Tue, 10 Jul 2007 08:42:28 +0000 (08:42 +0000)]
* fixed hashing bug found and fixed by Sven-Ola Tuecke

13 years agoAdded patch from Roar Rotvik(The README file was not updated for 0.5.1)
Andreas Tonnesen [Mon, 9 Jul 2007 07:27:57 +0000 (07:27 +0000)]
Added patch from Roar Rotvik(The README file was not updated for 0.5.1)

13 years ago* CVS-HEAD is not 0.5.2pre
Bernd Petrovitsch [Thu, 5 Jul 2007 23:12:43 +0000 (23:12 +0000)]
* CVS-HEAD is not 0.5.2pre

13 years ago* releasing 0.5.1 OLSRD_0_5_1
Bernd Petrovitsch [Thu, 5 Jul 2007 22:45:39 +0000 (22:45 +0000)]
* releasing 0.5.1

13 years agoadded the SPF refactoring from Hannes Gredler <hannes@gredler.at>:
Bernd Petrovitsch [Thu, 5 Jul 2007 22:43:47 +0000 (22:43 +0000)]
added the SPF refactoring from Hannes Gredler <hannes@gredler.at>:

1. use of an AVL tree as a min-heap implementation

   as a means for efficient sorting.
   (the etx metric is used as the key in the candidate tree)

2. next-hop propagation

   rather than tracking the previous node in olsr_relax()
   i have changed that model and pre-populate all one-hop neighbors
   with their own IP adress as 'next-hop' and pull that
   pointer up once new paths are explored.

   as a result no walker for counting hops and extracting next-hops
   is required - it turns out at this is slighly more efficient
   than the existing behaviour (even with the cache applied).

13 years agoand gone again. thanks for the patience... test finished
Aaron Kaplan [Thu, 5 Jul 2007 20:05:13 +0000 (20:05 +0000)]
and gone again. thanks for the patience... test finished

13 years agotesting the cvs mailinglist
Aaron Kaplan [Thu, 5 Jul 2007 19:59:04 +0000 (19:59 +0000)]
testing the cvs mailinglist

13 years agoMAX_LIBS was unused
Aaron Kaplan [Wed, 4 Jul 2007 01:52:35 +0000 (01:52 +0000)]
MAX_LIBS was unused

13 years agobe a bit more verbose when loading plugins. Since this only gets printed
Aaron Kaplan [Wed, 4 Jul 2007 01:50:45 +0000 (01:50 +0000)]
be a bit more verbose when loading plugins. Since this only gets printed
once at startup, little harm is done. But we will find out the reason
why certain dlloads wont't work.

13 years ago* update
Bernd Petrovitsch [Mon, 2 Jul 2007 11:05:48 +0000 (11:05 +0000)]
* update

13 years ago* added 160-nameservice-cleanup.patch and 170-olsrd-nameservice-latlon.patch from...
Bernd Petrovitsch [Mon, 2 Jul 2007 10:59:12 +0000 (10:59 +0000)]
* added 160-nameservice-cleanup.patch and 170-olsrd-nameservice-latlon.patch from download.olsrexperiment.de/sven-ola/nylon/packages/olsrd/files/

13 years ago* increased the buffer size - we got larger networks
Bernd Petrovitsch [Mon, 2 Jul 2007 10:20:24 +0000 (10:20 +0000)]
* increased the buffer size - we got larger networks

13 years agoadapt the parsing of the config options to the reality (capitalization)
Aaron Kaplan [Sun, 1 Jul 2007 01:17:38 +0000 (01:17 +0000)]
adapt the parsing of the config options to the reality (capitalization)
in the /etc/olsrd.conf file.
The bug was that it could not parse "accept" because it was written
"Accept" in the config file.

13 years ago* fixed compile breakage
Bernd Petrovitsch [Sat, 30 Jun 2007 23:03:10 +0000 (23:03 +0000)]
* fixed compile breakage

13 years ago* update
Bernd Petrovitsch [Sat, 30 Jun 2007 20:16:11 +0000 (20:16 +0000)]
* update

13 years ago* upgrade to olsr-bmf-1.5
Bernd Petrovitsch [Sat, 30 Jun 2007 20:07:47 +0000 (20:07 +0000)]
* upgrade to olsr-bmf-1.5

13 years ago* localized the hash stuff. We shouldn't need it anywhere else.
Bernd Petrovitsch [Thu, 28 Jun 2007 22:34:52 +0000 (22:34 +0000)]
* localized the hash stuff. We shouldn't need it anywhere else.

13 years ago* avoid a fork(), execve() and a pipe()
Bernd Petrovitsch [Wed, 27 Jun 2007 20:20:57 +0000 (20:20 +0000)]
* avoid a fork(), execve() and a pipe()

13 years agomark seta as not implemented in the cmd description
Aaron Kaplan [Thu, 31 May 2007 00:16:52 +0000 (00:16 +0000)]
mark seta as not implemented in the cmd description

13 years agobe a bit more verbose about what is implemented and not
Aaron Kaplan [Thu, 31 May 2007 00:14:53 +0000 (00:14 +0000)]
be a bit more verbose about what is implemented and not

13 years ago* cleaned it up and reduced the code size a little bit
Bernd Petrovitsch [Thu, 17 May 2007 20:35:16 +0000 (20:35 +0000)]
* cleaned it up and reduced the code size a little bit

13 years ago* avoid lots of superflous malloc() and free()
Bernd Petrovitsch [Thu, 17 May 2007 20:30:09 +0000 (20:30 +0000)]
* avoid lots of superflous malloc() and free()

13 years ago* made the html buffer larger - this is only a short term work around
Bernd Petrovitsch [Thu, 17 May 2007 11:25:27 +0000 (11:25 +0000)]
* made the html buffer larger - this is only a short term work around
* cleanup: use parentheres in macros
* cleanup: use sizeof()

13 years ago(1) On Windows $(OS) is not undefined but contains "Windows_NT". Now handled in Makef...
Thomas Lopatic [Sun, 13 May 2007 23:44:24 +0000 (23:44 +0000)]
(1) On Windows $(OS) is not undefined but contains "Windows_NT". Now handled in Makefile.inc instead of guess_os.sh. (2) Fixed re-definition of write() in Windows version of unistd.h.

13 years ago* killed if_nr in struct interface and index in struct olsr_if.
Bernd Petrovitsch [Sun, 13 May 2007 22:23:55 +0000 (22:23 +0000)]
* killed if_nr in struct interface and index in struct olsr_if.
  Kudos to Joerg Pommnitz <pommnitz@yahoo.com> for spotting this
  leftovers and a patch for the Unix part.

13 years ago* more fixups for the generated .c file
Bernd Petrovitsch [Sun, 13 May 2007 22:02:57 +0000 (22:02 +0000)]
* more fixups for the generated .c file

13 years ago* made a local function static
Bernd Petrovitsch [Sun, 13 May 2007 21:49:59 +0000 (21:49 +0000)]
* made a local function static
* removed unused TOK_SEMI and TOK_PLNAME. Thanks to
  Patrick McCarty <mccartyp@gmail.com> for spotting this.

13 years ago ntohl() returns "unsigned long" on win32
Bernd Petrovitsch [Wed, 9 May 2007 17:41:17 +0000 (17:41 +0000)]
 ntohl() returns "unsigned long" on win32

13 years ago* oops, fixed compile breakage
Bernd Petrovitsch [Wed, 9 May 2007 17:37:09 +0000 (17:37 +0000)]
* oops, fixed compile breakage

13 years ago this plugin uses regexps. Does Win32 hassomething similar?
Bernd Petrovitsch [Wed, 9 May 2007 17:30:42 +0000 (17:30 +0000)]
 this plugin uses regexps. Does Win32 hassomething similar?

13 years ago made it compile without warnings on Win32
Bernd Petrovitsch [Wed, 9 May 2007 17:29:53 +0000 (17:29 +0000)]
 made it compile without warnings on Win32

13 years ago* added a simulate write() syscall which uses send() to work on sockets
Bernd Petrovitsch [Wed, 9 May 2007 00:30:04 +0000 (00:30 +0000)]
* added a simulate write() syscall which uses send() to work on sockets

13 years ago* compiles now on win32
Bernd Petrovitsch [Wed, 9 May 2007 00:22:47 +0000 (00:22 +0000)]
* compiles now on win32

13 years ago*killed a few warnings
Bernd Petrovitsch [Tue, 8 May 2007 23:49:00 +0000 (23:49 +0000)]
*killed a few warnings

13 years ago*killed a few warnings
Bernd Petrovitsch [Tue, 8 May 2007 23:43:17 +0000 (23:43 +0000)]
*killed a few warnings

13 years ago*killed a few warnings - Win32 needs to enter the 21st century with it's function...
Bernd Petrovitsch [Tue, 8 May 2007 23:34:52 +0000 (23:34 +0000)]
*killed a few warnings - Win32 needs to enter the 21st century with it's function prototypes

13 years ago*killed a few warnings
Bernd Petrovitsch [Tue, 8 May 2007 23:18:56 +0000 (23:18 +0000)]
*killed a few warnings

13 years ago*killed a few warnings
Bernd Petrovitsch [Tue, 8 May 2007 23:10:37 +0000 (23:10 +0000)]
*killed a few warnings

13 years ago*killed a few warnings
Bernd Petrovitsch [Tue, 8 May 2007 23:05:58 +0000 (23:05 +0000)]
*killed a few warnings

13 years ago* provide an argument to the tiems(2) call - OpenBSD seems to barf on a NULL there
Bernd Petrovitsch [Wed, 2 May 2007 08:07:11 +0000 (08:07 +0000)]
* provide an argument to the tiems(2) call - OpenBSD seems to barf on a NULL there

13 years ago* cosmetic
Bernd Petrovitsch [Wed, 2 May 2007 08:06:28 +0000 (08:06 +0000)]
* cosmetic

13 years ago* patch from Patrick McCarty <mccartyp@gmail.com>: OLSR_PRINTF() needs a ";" also...
Bernd Petrovitsch [Wed, 2 May 2007 07:41:20 +0000 (07:41 +0000)]
* patch from Patrick McCarty <mccartyp@gmail.com>: OLSR_PRINTF() needs a ";" also in the BSD part

13 years agocommented out -Werror again
Bernd Petrovitsch [Tue, 1 May 2007 21:52:52 +0000 (21:52 +0000)]
commented out -Werror again

13 years agofixed a warning
Bernd Petrovitsch [Tue, 1 May 2007 21:50:41 +0000 (21:50 +0000)]
fixed a warning

13 years ago* ooops, killed an outdated comment
Bernd Petrovitsch [Tue, 1 May 2007 21:37:29 +0000 (21:37 +0000)]
* ooops, killed an outdated comment

13 years agoMakefile tweaking:
Bernd Petrovitsch [Tue, 1 May 2007 21:36:50 +0000 (21:36 +0000)]
Makefile tweaking:
- gcc accepts different warnings on different versions. In an ideal world gcc could
  compare numbers to check for versions. Since make doesn't do this, we have now a shell scripts
  which kills not understand warnings.
- gather the -W options for CFLAGS in the WARNINGS variable so that we can pass them
  to the above script and on sub-makes.
- and pass said WARNINGS variable actually down
- if we have a default CC variable is is not empty, so the "?=" operator doesn't
  work that well.

13 years ago* fixes for OpenBSD according to the mail from Patrick McCarty <mccartyp@gmail.com...
Bernd Petrovitsch [Tue, 1 May 2007 20:13:50 +0000 (20:13 +0000)]
* fixes for OpenBSD according to the mail from Patrick McCarty <mccartyp@gmail.com> on Mon, 30 Apr 2007 09:26:37 -0700

13 years ago* God knows what's in that string
Bernd Petrovitsch [Sat, 28 Apr 2007 20:51:05 +0000 (20:51 +0000)]
* God knows what's in that string

13 years ago* declare locally only used variables static
Bernd Petrovitsch [Sat, 28 Apr 2007 20:48:57 +0000 (20:48 +0000)]
* declare locally only used variables static

13 years ago* avoid as much code and linker information as possible
Bernd Petrovitsch [Sat, 28 Apr 2007 20:46:32 +0000 (20:46 +0000)]
* avoid as much code and linker information as possible

13 years ago* commeneted an unused functi[Don completel out
Bernd Petrovitsch [Sat, 28 Apr 2007 20:45:06 +0000 (20:45 +0000)]
* commeneted an unused functi[Don completel out

13 years ago* do not mix declarations and code
Bernd Petrovitsch [Sat, 28 Apr 2007 19:58:49 +0000 (19:58 +0000)]
* do not mix declarations and code

13 years ago* added include because of bug report of Patrick McCarty <mccartyp@gmail.com>
Bernd Petrovitsch [Sat, 28 Apr 2007 19:51:16 +0000 (19:51 +0000)]
* added include because of bug report of Patrick McCarty <mccartyp@gmail.com>

13 years ago* make it compile on Debian/Sarge with a gcc-3.3.5
Bernd Petrovitsch [Fri, 27 Apr 2007 11:45:31 +0000 (11:45 +0000)]
* make it compile on Debian/Sarge with a gcc-3.3.5

13 years ago* alpha also always wants -fPIC
Bernd Petrovitsch [Fri, 27 Apr 2007 11:41:25 +0000 (11:41 +0000)]
* alpha also always wants -fPIC