olsrd.git
12 years ago* and a header file like all the other plugins
Bernd Petrovitsch [Fri, 20 Apr 2007 14:18:56 +0000 (14:18 +0000)]
* and a header file like all the other plugins

12 years agocleanup, 1. step (to get some local changes away):
Bernd Petrovitsch [Fri, 20 Apr 2007 14:06:18 +0000 (14:06 +0000)]
cleanup, 1. step (to get some local changes away):
* killed lots of warnings
* added __attribure__((unused)) and __attribure__((format(printf, ..., ...)))
* added "const"
* moved declarations of static functions into .c files
* added "static" declarations
* removed all "inline" declarations. Usually the compiler knows better anyways.
* removed emtpy "return" statements at the end of functions
* localized declarations
* avoided unnecessary data copies
* removed lots of empty lines
There is much more to do.

12 years ago* added lots of warnings (and -Werror is disabled per default)
Bernd Petrovitsch [Fri, 20 Apr 2007 14:05:41 +0000 (14:05 +0000)]
* added lots of warnings (and -Werror is disabled per default)

12 years ago* let `make uberclean` kill _all_ *.o, *.d and *~ files
Bernd Petrovitsch [Fri, 20 Apr 2007 14:04:30 +0000 (14:04 +0000)]
* let `make uberclean` kill _all_ *.o, *.d and *~ files

12 years agocleanup, 1. step (to get some local changes away):
Bernd Petrovitsch [Fri, 20 Apr 2007 13:46:05 +0000 (13:46 +0000)]
cleanup, 1. step (to get some local changes away):
* killed lots of warnings
* added __attribure__((unused)) and __attribure__((format(printf, ..., ...)))
* added "const"
* moved declarations of static functions into .c files
* added "static" declarations
* removed all "inline" declarations. Usually the compiler knows better anyways.
* removed emtpy "return" statements at the end of functions
* localized declarations
* avoided unnecessary data copies
* removed lots of empty lines
There is much more to do.

12 years ago* if inet_pton() fails it returns <= 0
Bernd Petrovitsch [Fri, 20 Apr 2007 10:38:01 +0000 (10:38 +0000)]
* if inet_pton() fails it returns <= 0

12 years ago* compare the result of inet_pton() > 0 instead of == 1
Bernd Petrovitsch [Fri, 20 Apr 2007 10:33:08 +0000 (10:33 +0000)]
* compare the result of inet_pton() > 0 instead of == 1

12 years ago* fixed a warning
Bernd Petrovitsch [Thu, 19 Apr 2007 23:01:32 +0000 (23:01 +0000)]
* fixed a warning

12 years ago* updated example conf according to Marco Tidow comment
Bernd Petrovitsch [Thu, 19 Apr 2007 22:28:09 +0000 (22:28 +0000)]
* updated example conf according to Marco Tidow comment

12 years ago* updated example conf file according to elektra's mail on Apr 10. 2007
Bernd Petrovitsch [Thu, 19 Apr 2007 22:25:49 +0000 (22:25 +0000)]
* updated example conf file according to elektra's mail on Apr 10. 2007

12 years ago* applied patch from John Hay
Bernd Petrovitsch [Thu, 19 Apr 2007 22:21:34 +0000 (22:21 +0000)]
* applied patch from John Hay

13 years agoCommenting out -Werror since lex generates code that generates a warning using gcc...
Andreas Tonnesen [Sun, 8 Apr 2007 07:06:05 +0000 (07:06 +0000)]
Commenting out -Werror since lex generates code that generates a warning using gcc 4.1.2(atleast on on ubuntu edgy) which prevents olsrd from building

13 years ago* only calculate the OS once and immediately only if necessary
Bernd Petrovitsch [Tue, 3 Apr 2007 10:10:10 +0000 (10:10 +0000)]
* only calculate the OS once and immediately only if necessary

13 years ago* cosmetic
Bernd Petrovitsch [Tue, 3 Apr 2007 10:09:31 +0000 (10:09 +0000)]
* cosmetic

13 years ago* also pass the OS variable
Bernd Petrovitsch [Tue, 3 Apr 2007 10:08:53 +0000 (10:08 +0000)]
* also pass the OS variable

13 years ago* pass OS always to sub-makes
Bernd Petrovitsch [Tue, 3 Apr 2007 09:53:41 +0000 (09:53 +0000)]
* pass OS always to sub-makes

13 years ago* renamed the various REAMEs more consistently
Bernd Petrovitsch [Tue, 3 Apr 2007 09:48:46 +0000 (09:48 +0000)]
* renamed the various REAMEs more consistently

13 years ago* minor updates after release
Bernd Petrovitsch [Tue, 3 Apr 2007 08:46:44 +0000 (08:46 +0000)]
* minor updates after release

13 years ago* added bmf ot SUBDIRS
Bernd Petrovitsch [Tue, 3 Apr 2007 08:46:02 +0000 (08:46 +0000)]
* added bmf ot SUBDIRS

13 years ago* merged comments from not-exixting 0.4.11 into 0.5.0
Bernd Petrovitsch [Tue, 3 Apr 2007 08:25:19 +0000 (08:25 +0000)]
* merged comments from not-exixting 0.4.11 into 0.5.0

13 years ago* oops, now it is consistent
Bernd Petrovitsch [Mon, 2 Apr 2007 22:46:04 +0000 (22:46 +0000)]
* oops, now it is consistent

13 years ago* added -Werror to motivate to kill warnings
Bernd Petrovitsch [Mon, 2 Apr 2007 22:44:09 +0000 (22:44 +0000)]
* added -Werror to motivate to kill warnings

13 years ago* print errors as all the other plugins
Bernd Petrovitsch [Mon, 2 Apr 2007 22:23:09 +0000 (22:23 +0000)]
* print errors as all the other plugins

13 years ago* Added an option to activate reverse resolving the hostnames
Bernd Petrovitsch [Mon, 2 Apr 2007 22:22:26 +0000 (22:22 +0000)]
* Added an option to activate reverse resolving the hostnames
  Activate it at your own risk!
* Fixup the HTML - at least partly.

13 years ago* changed the version to 0.5.1pre
Bernd Petrovitsch [Mon, 2 Apr 2007 10:07:44 +0000 (10:07 +0000)]
* changed the version to 0.5.1pre

13 years agoPull version from makefile. Tested on Linux. To be tested on Windows.
Thomas Lopatic [Mon, 2 Apr 2007 09:40:48 +0000 (09:40 +0000)]
Pull version from makefile. Tested on Linux. To be tested on Windows.
Reset version from 0.5.1pre to 0.5.0.

13 years ago* changed the version to 0.5.1pre
Bernd Petrovitsch [Sun, 1 Apr 2007 23:49:31 +0000 (23:49 +0000)]
* changed the version to 0.5.1pre

13 years ago* set version to 0.5.0 and added a section in the CHANGELOG
Bernd Petrovitsch [Sun, 1 Apr 2007 21:44:14 +0000 (21:44 +0000)]
* set version to 0.5.0 and added a section in the CHANGELOG

13 years agoIncreased maximal number of interfaces.
Thomas Lopatic [Thu, 29 Mar 2007 16:34:39 +0000 (16:34 +0000)]
Increased maximal number of interfaces.

13 years agoSupport multiple values per key.
Thomas Lopatic [Thu, 29 Mar 2007 00:05:50 +0000 (00:05 +0000)]
Support multiple values per key.

13 years agoUse main() instead of custom entry point.
Thomas Lopatic [Wed, 28 Mar 2007 14:49:15 +0000 (14:49 +0000)]
Use main() instead of custom entry point.

13 years agoRequest administrative privileges on Vista.
Thomas Lopatic [Wed, 28 Mar 2007 14:36:59 +0000 (14:36 +0000)]
Request administrative privileges on Vista.

13 years agoFixed route addition.
Thomas Lopatic [Wed, 28 Mar 2007 12:07:05 +0000 (12:07 +0000)]
Fixed route addition.

13 years agoStatically link shim.
Thomas Lopatic [Wed, 28 Mar 2007 11:18:59 +0000 (11:18 +0000)]
Statically link shim.

13 years agoEliminated tail recursion.
Thomas Lopatic [Tue, 27 Mar 2007 22:02:22 +0000 (22:02 +0000)]
Eliminated tail recursion.

13 years agoModify linked list when inserting a node into or removing a node from the
Thomas Lopatic [Tue, 27 Mar 2007 19:37:13 +0000 (19:37 +0000)]
Modify linked list when inserting a node into or removing a node from the
tree.

13 years agoDon't report legitimate ERROR_NOT_FOUND when updating routes.
Thomas Lopatic [Tue, 27 Mar 2007 11:08:08 +0000 (11:08 +0000)]
Don't report legitimate ERROR_NOT_FOUND when updating routes.

13 years agoFixed Windows port.
Thomas Lopatic [Tue, 27 Mar 2007 03:59:27 +0000 (03:59 +0000)]
Fixed Windows port.

13 years agoRemoved name service plugin from Windows version. Need regex first.
Thomas Lopatic [Tue, 27 Mar 2007 03:58:47 +0000 (03:58 +0000)]
Removed name service plugin from Windows version. Need regex first.

13 years agoWrite fish eye parameter to configuration file. Generate import library.
Thomas Lopatic [Tue, 27 Mar 2007 03:05:21 +0000 (03:05 +0000)]
Write fish eye parameter to configuration file. Generate import library.

13 years agoVersion 0.5.0. OLSRD_0_5_0
Thomas Lopatic [Tue, 27 Mar 2007 03:02:44 +0000 (03:02 +0000)]
Version 0.5.0.

13 years agoUse Visual Studio .NET 2005.
Thomas Lopatic [Tue, 27 Mar 2007 03:01:12 +0000 (03:01 +0000)]
Use Visual Studio .NET 2005.

13 years agoAVL tree walk functions.
Thomas Lopatic [Tue, 27 Mar 2007 00:45:15 +0000 (00:45 +0000)]
AVL tree walk functions.

13 years agoVista fixes.
Thomas Lopatic [Mon, 26 Mar 2007 15:33:44 +0000 (15:33 +0000)]
Vista fixes.

13 years agoAdded node deletion.
Thomas Lopatic [Sun, 25 Mar 2007 23:19:44 +0000 (23:19 +0000)]
Added node deletion.

13 years ago* applied osx-ip6.patch made by Gregoire Henry <gregoire.henry@pps.jussieu.fr>, poste...
Bernd Petrovitsch [Wed, 14 Mar 2007 14:01:14 +0000 (14:01 +0000)]
* applied osx-ip6.patch made by Gregoire Henry <gregoire.henry@pps.jussieu.fr>, posted on 2007-03-12

13 years ago* killed a compiler warning
Bernd Petrovitsch [Wed, 14 Mar 2007 13:59:30 +0000 (13:59 +0000)]
* killed a compiler warning

13 years ago* another update from svn://dev.durchdieluft.net/olsr-quagga/trunk/quagga
Bernd Petrovitsch [Sun, 11 Mar 2007 23:26:06 +0000 (23:26 +0000)]
* another update from svn://dev.durchdieluft.net/olsr-quagga/trunk/quagga

13 years ago* update from svn://dev.durchdieluft.net/olsr-quagga/trunk/quagga
Bernd Petrovitsch [Sun, 11 Mar 2007 20:59:17 +0000 (20:59 +0000)]
* update from svn://dev.durchdieluft.net/olsr-quagga/trunk/quagga

13 years agoFix for compiler warning
Andreas Tonnesen [Sat, 24 Feb 2007 11:54:24 +0000 (11:54 +0000)]
Fix for compiler warning

13 years ago* fixed wrong if
Bernd Petrovitsch [Wed, 14 Feb 2007 21:47:06 +0000 (21:47 +0000)]
* fixed wrong if

13 years agoA couple of prototype missmatches for BSD
Andreas Tonnesen [Wed, 14 Feb 2007 13:03:13 +0000 (13:03 +0000)]
A couple of prototype missmatches for BSD

13 years ago2nd half of fix from John Hay
Andreas Tonnesen [Wed, 14 Feb 2007 09:09:16 +0000 (09:09 +0000)]
2nd half of fix from John Hay

13 years ago* fixes fro fixes from Sven-Ola
Bernd Petrovitsch [Sun, 11 Feb 2007 11:51:57 +0000 (11:51 +0000)]
* fixes fro fixes from Sven-Ola

13 years ago* killed USE_LIBNET
Bernd Petrovitsch [Sat, 10 Feb 2007 19:59:51 +0000 (19:59 +0000)]
* killed USE_LIBNET

13 years ago* added the rest if the olsrd-fixes-eric patch from Sven-Ola
Bernd Petrovitsch [Sat, 10 Feb 2007 19:27:33 +0000 (19:27 +0000)]
* added the rest if the olsrd-fixes-eric patch from Sven-Ola

13 years agoapplied fixes from Sven-Ola:
Bernd Petrovitsch [Sat, 10 Feb 2007 17:36:51 +0000 (17:36 +0000)]
applied fixes from Sven-Ola:
- he corrected a copy-paste error made by me. Thanks.
- he killed the parts disabled by DISABLE_SVEN_OLA

13 years ago* this file is actually completely #if 0 ... #endif out. But I was looking for
Bernd Petrovitsch [Sat, 10 Feb 2007 17:11:49 +0000 (17:11 +0000)]
* this file is actually completely #if 0 ... #endif out. But I was looking for
  a declaration of ioctl_s and this delivers false positives.

13 years ago* fixed documentation
Bernd Petrovitsch [Sat, 10 Feb 2007 17:10:19 +0000 (17:10 +0000)]
* fixed documentation

13 years ago* replaced the bmf plugin with the most recent 1.3 from sf.net with the
Bernd Petrovitsch [Sat, 10 Feb 2007 17:05:56 +0000 (17:05 +0000)]
* replaced the bmf plugin with the most recent 1.3 from sf.net with the
  following changes:
  - We had a globally declared ioctl_s variable which is used exactly
    once in NetworkInterfaces.c.
    Sven-Ola proposed a global "extern" decalaretion but I inserted it
    there locally.
    Main reason: Where does this variable actually come from?
    I can only find one in the olsr_cnf struct. But since the compiler/linker finds
    one, there must be one somewhere.
  - I #if 0 ... #endif out the IsNullMacAddress() function since it is not used
    AFAICS (and the compiler actually).

13 years ago* bug fixes from Sven-Ola
Bernd Petrovitsch [Thu, 8 Feb 2007 10:31:43 +0000 (10:31 +0000)]
* bug fixes from Sven-Ola

13 years ago* killed in_addr
Bernd Petrovitsch [Tue, 6 Feb 2007 21:07:11 +0000 (21:07 +0000)]
* killed in_addr

13 years ago* fixed documentation
Bernd Petrovitsch [Mon, 5 Feb 2007 21:49:43 +0000 (21:49 +0000)]
* fixed documentation

13 years ago* added support and automagic detection for ccache
Bernd Petrovitsch [Mon, 5 Feb 2007 21:25:49 +0000 (21:25 +0000)]
* added support and automagic detection for ccache
* cosmetic cleanup

13 years ago* added a "rpm" target to produce a olsrd-current.<arch>.rpm
Bernd Petrovitsch [Mon, 5 Feb 2007 21:17:26 +0000 (21:17 +0000)]
* added a "rpm" target to produce a olsrd-current.<arch>.rpm
* added a quagga target similar to all the others
* pass the DESTDIR variable down
* fixed makefile output of the cfgfilename
* do not change the local olsrd binary but inly the installed one

13 years ago* added updated .spec file from Roar =?ISO-8859-1?Q?Bj=F8rgum?= Rotvik <roarbr@tihlde...
Bernd Petrovitsch [Mon, 5 Feb 2007 21:09:57 +0000 (21:09 +0000)]
* added updated .spec file from Roar =?ISO-8859-1?Q?Bj=F8rgum?= Rotvik <roarbr@tihlde.org>

13 years ago* killed the MAX_IFS variable and another statically sized array
Bernd Petrovitsch [Sun, 4 Feb 2007 23:36:35 +0000 (23:36 +0000)]
* killed the MAX_IFS variable and another statically sized array

13 years ago* fixed a typo
Bernd Petrovitsch [Sun, 4 Feb 2007 23:27:55 +0000 (23:27 +0000)]
* fixed a typo

13 years ago* applied hunks from Erik Tromps patch at http://home.tiscali.nl/levab001/olsrd-0...
Bernd Petrovitsch [Sun, 4 Feb 2007 22:47:45 +0000 (22:47 +0000)]
* applied hunks from Erik Tromps patch at home.tiscali.nl/levab001/olsrd-0.4.10.diff

13 years ago* applied hunks from Erik Tromps patch at http://home.tiscali.nl/levab001/olsrd-0...
Bernd Petrovitsch [Sun, 4 Feb 2007 22:37:36 +0000 (22:37 +0000)]
* applied hunks from Erik Tromps patch at home.tiscali.nl/levab001/olsrd-0.4.10.diff

13 years ago* also ignore .dll files
Bernd Petrovitsch [Sun, 4 Feb 2007 21:35:58 +0000 (21:35 +0000)]
* also ignore .dll files

13 years ago* the quagga plugin makes prbably only sense on Linux
Bernd Petrovitsch [Sun, 4 Feb 2007 21:21:16 +0000 (21:21 +0000)]
* the quagga plugin makes prbably only sense on Linux

13 years ago* *.d are to be ignored
Bernd Petrovitsch [Sun, 4 Feb 2007 21:13:46 +0000 (21:13 +0000)]
* *.d are to be ignored

13 years ago* merged it also and fixed lots of stuff by hand
Bernd Petrovitsch [Sun, 4 Feb 2007 21:11:48 +0000 (21:11 +0000)]
* merged it also and fixed lots of stuff by hand
  It seems to work on my node.

13 years ago* removed an unnecessary #include to allow compilation on windows
Bernd Petrovitsch [Sun, 4 Feb 2007 20:47:50 +0000 (20:47 +0000)]
* removed an unnecessary #include to allow compilation on windows

13 years ago* *.d are to be ignored
Bernd Petrovitsch [Sun, 4 Feb 2007 20:49:25 +0000 (20:49 +0000)]
* *.d are to be ignored

13 years ago* applied patches from the most recent FreiFunkFirmware (and fixed compile errors...
Bernd Petrovitsch [Wed, 31 Jan 2007 12:43:09 +0000 (12:43 +0000)]
* applied patches from the most recent FreiFunkFirmware (and fixed compile errors) according
   to http://www.olsr.org/pipermail/olsr-dev/2006-December/254036.html:
  - olsrd-libsmake.patch
  - olsrd-dyngwplain.patch
  - olsrd-txtinfo.patch
  - olsrd-quagga.patch
  - olsrd-quagga-routehandler.patch
  - olsrd-optimize.patch
  - olsrd-bmf-fixes.patch
  - olsrd-fixes-sven-ola.patch
  - olsrd-fixes-jhay-bsd.patch
  - olsrd-fixes-backport.patch
  - olsrd-fixes-routedel.patch
  - olsrd-cpu-overload.patch
  - olsrd-secure_key_path.patch
  - olsrd-hna_ip_fix.patch
  Not applied:
  - olsrd-nameservice+services.patch: This patch produced too many rejects to fix easily.
  - olsrd-fixes-eric.patch: This was not found on the webserver.
  - olsrd-bmf.patch: We had already a "bmf" plug-in in there.
* made the checksum type in the olsrd_secure plug-in "olsr_u8_t" (instead
   of a wild "char *" and "unsigned char *" mix) everywhere. It killed
   lots of warnings.
* localized the checksum_cache array in olsrd_secure.c.

13 years ago* applied patches from the most recent FreiFunkFirmware (and fixed compile errors...
Bernd Petrovitsch [Wed, 31 Jan 2007 12:38:26 +0000 (12:38 +0000)]
* applied patches from the most recent FreiFunkFirmware (and fixed compile errors) according
   to http://www.olsr.org/pipermail/olsr-dev/2006-December/254036.html:
  - olsrd-libsmake.patch
  - olsrd-dyngwplain.patch
  - olsrd-txtinfo.patch
  - olsrd-quagga.patch
  - olsrd-quagga-routehandler.patch
  - olsrd-optimize.patch
  - olsrd-bmf-fixes.patch
  - olsrd-fixes-sven-ola.patch
  - olsrd-fixes-jhay-bsd.patch
  - olsrd-fixes-backport.patch
  - olsrd-fixes-routedel.patch
  - olsrd-cpu-overload.patch
  - olsrd-secure_key_path.patch
  - olsrd-hna_ip_fix.patch
  Not applied:
  - olsrd-nameservice+services.patch: This patch produced too many rejects to fix easily.
  - olsrd-fixes-eric.patch: This was not found on the webserver.
  - olsrd-bmf.patch: We had already a "bmf" plug-in in there.
* made the checksum type in the olsrd_secure plug-in "olsr_u8_t" (instead
   of a wild "char *" and "unsigned char *" mix) everywhere. It killed
   lots of warnings.
* localized the checksum_cache array in olsrd_secure.c.

13 years ago* applied patches from the most recent FreiFunkFirmware (and fixed compile errors...
Bernd Petrovitsch [Wed, 31 Jan 2007 12:36:50 +0000 (12:36 +0000)]
* applied patches from the most recent FreiFunkFirmware (and fixed compile errors) according
  to http://www.olsr.org/pipermail/olsr-dev/2006-December/254036.html:
  - olsrd-libsmake.patch
  - olsrd-dyngwplain.patch
  - olsrd-txtinfo.patch
  - olsrd-quagga.patch
  - olsrd-quagga-routehandler.patch
  - olsrd-optimize.patch
  - olsrd-bmf-fixes.patch
  - olsrd-fixes-sven-ola.patch
  - olsrd-fixes-jhay-bsd.patch
  - olsrd-fixes-backport.patch
  - olsrd-fixes-routedel.patch
  - olsrd-cpu-overload.patch
  - olsrd-secure_key_path.patch
  - olsrd-hna_ip_fix.patch
  Not applied:
  - olsrd-nameservice+services.patch: This patch produced too many rejects to fix easily.
  - olsrd-fixes-eric.patch: This was not found on the webserver.
  - olsrd-bmf.patch: We had already a "bmf" plug-in in there.
* made the checksum type in the olsrd_secure plug-in "olsr_u8_t" (instead
   of a wild "char *" and "unsigned char *" mix) everywhere. It killed
   lots of warnings.
* localized the checksum_cache array in olsrd_secure.c.

13 years ago* const'ified the two files to be able to remove warnings somewhere else
Bernd Petrovitsch [Tue, 30 Jan 2007 17:11:52 +0000 (17:11 +0000)]
* const'ified the two files to be able to remove warnings somewhere else

13 years ago* cosmetic: whitesoace cleanup
Bernd Petrovitsch [Tue, 30 Jan 2007 16:52:41 +0000 (16:52 +0000)]
* cosmetic: whitesoace cleanup

13 years ago* cosmetic: killed a useless <tab>
Bernd Petrovitsch [Tue, 30 Jan 2007 16:51:04 +0000 (16:51 +0000)]
* cosmetic: killed a useless <tab>

13 years ago* fixed buggy shell command
Bernd Petrovitsch [Tue, 30 Jan 2007 16:50:20 +0000 (16:50 +0000)]
* fixed buggy shell command

13 years ago* fixed a compiler warning
Bernd Petrovitsch [Tue, 30 Jan 2007 16:48:34 +0000 (16:48 +0000)]
* fixed a compiler warning

13 years ago* I hate useless outpur from CVS
Bernd Petrovitsch [Thu, 14 Dec 2006 11:28:32 +0000 (11:28 +0000)]
* I hate useless outpur from CVS

13 years ago* applied patches from Sebastian Hagen <sebastian_hagen@memespace.net>
Bernd Petrovitsch [Thu, 14 Dec 2006 11:29:20 +0000 (11:29 +0000)]
* applied patches from Sebastian Hagen <sebastian_hagen@memespace.net>

13 years ago* added 2 items
Bernd Petrovitsch [Wed, 13 Dec 2006 23:22:00 +0000 (23:22 +0000)]
* added 2 items

13 years agoBah... the CHANGELOG file is out of synch. Please add any changes you have committed
Andreas Tonnesen [Tue, 12 Dec 2006 11:26:29 +0000 (11:26 +0000)]
Bah... the CHANGELOG file is out of synch. Please add any changes you have committed

13 years agoCommitting some extended debug output
Andreas Tonnesen [Tue, 12 Dec 2006 11:22:15 +0000 (11:22 +0000)]
Committing some extended debug output

13 years agoAdded FreeBSD IPv6 patches from John Hay
Andreas Tonnesen [Tue, 12 Dec 2006 11:20:53 +0000 (11:20 +0000)]
Added FreeBSD IPv6 patches from John Hay

13 years agoAdded patch from John Hay. Due to diff from last release to HEAD this had to be done...
Andreas Tonnesen [Tue, 12 Dec 2006 10:54:52 +0000 (10:54 +0000)]
Added patch from John Hay. Due to diff from last release to HEAD this had to be done partially manually. Hopefully I got everything right...

13 years ago* Fixed a leaking FILE *
Bernd Petrovitsch [Sun, 26 Nov 2006 00:32:14 +0000 (00:32 +0000)]
* Fixed a leaking FILE *
* Since the "buffer" variable can never be == NULL, I assume that it was meant actually that way.

13 years agoI removed the hardcoded (and BTW never checked) limit on 16 interfaces:
Bernd Petrovitsch [Wed, 15 Nov 2006 23:07:59 +0000 (23:07 +0000)]
I removed the hardcoded (and BTW never checked) limit on 16 interfaces:

We do this by adding the "struct netbuf" to the "struct interface" because
- we avoid maintaining a separate array of pointers and malloc(3)ed struct's.
- we avoid therefore lots of malloc(3) and free(3).
- we need such a thing anyway for each interface, so why not put it in there
  (and libnet_ctx is also there).
- we do not longer neeed the interface-index as a separate field.

Does anyone know if the MTU of an interface may chnage (and if yes, when)?
Otherwise we could get rid of another field in that struct (and a few lines
of code).

I compile-tested with `make build_all USE_LIBNET=1` but didn't run it.

Downside: One must initialize this struct (or at least the pointer to the
          actual buffer). Therefore the one line change in src/unix/ifnet.c.
          Therefore I broke very probably the Windows port and I can' figure out
          if and where to add such an equivalent thing.

Other changes:
- The libnet_ctx field in struct interface is also in a
  #ifdef USE_LIBNET ... #endif section.

13 years ago* fixed a forgotten INSTALL_PREFIX
Bernd Petrovitsch [Wed, 15 Nov 2006 22:09:16 +0000 (22:09 +0000)]
* fixed a forgotten INSTALL_PREFIX

13 years ago* Created a typedef for the packet-transfromation-function. It is easier
Bernd Petrovitsch [Wed, 15 Nov 2006 21:13:52 +0000 (21:13 +0000)]
* Created a typedef for the packet-transfromation-function. It is easier
  to parse (at least IMHO) than the "int (*)(char *, int *)" all over
  the place.
* simplified the source in net_outbuffer_bytes_left() without changing
  the semantics. Either this is correct or it should have been different
  before.
* reduced duplicated code in del_ptf()

13 years agoCleanup:
Bernd Petrovitsch [Wed, 15 Nov 2006 20:58:51 +0000 (20:58 +0000)]
Cleanup:
* added "void" to function definitions if they have no parameter
* made locally used only "netbufs" array "static".
* moved locally only struct definitions into the .c file
* added "const" to constant arrays
* fixed typos

13 years ago* applied olsrd-0.4.10-paths.diff
Bernd Petrovitsch [Sun, 12 Nov 2006 21:54:53 +0000 (21:54 +0000)]
* applied olsrd-0.4.10-paths.diff

13 years ago* and naother instance
Bernd Petrovitsch [Mon, 6 Nov 2006 23:46:48 +0000 (23:46 +0000)]
* and naother instance

13 years ago* taking the address seems quite wrong if I'm looking at other usages of that macro
Bernd Petrovitsch [Mon, 6 Nov 2006 23:40:41 +0000 (23:40 +0000)]
* taking the address seems quite wrong if I'm looking at other usages of that macro

13 years ago* killed file descriptor leaks
Bernd Petrovitsch [Sun, 5 Nov 2006 23:03:56 +0000 (23:03 +0000)]
* killed file descriptor leaks