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

13 years agoRemoved assertion on hopcount
Andreas Tonnesen [Wed, 1 Nov 2006 09:21:44 +0000 (09:21 +0000)]
Removed assertion on hopcount

13 years ago* lib/powerinfo is long gone
Bernd Petrovitsch [Sat, 28 Oct 2006 14:21:26 +0000 (14:21 +0000)]
* lib/powerinfo is long gone

13 years ago* fixed complaints from gcc -Wextra
Bernd Petrovitsch [Thu, 26 Oct 2006 22:02:56 +0000 (22:02 +0000)]
* fixed complaints from gcc -Wextra

13 years ago* added more .cvsignore files
Bernd Petrovitsch [Sat, 21 Oct 2006 21:40:49 +0000 (21:40 +0000)]
* added more .cvsignore files

13 years ago* since the powerinfo directory seems to be gone, it makes no sense to keep it in...
Bernd Petrovitsch [Sat, 21 Oct 2006 21:39:22 +0000 (21:39 +0000)]
* since the powerinfo directory seems to be gone, it makes no sense to keep it in the directory list

13 years ago* tell emacs'ens the correct filetype
Bernd Petrovitsch [Sat, 21 Oct 2006 21:24:46 +0000 (21:24 +0000)]
* tell emacs'ens the correct filetype

13 years ago* added a "clean_all" target similar to the other *_all targets
Bernd Petrovitsch [Sat, 21 Oct 2006 21:21:55 +0000 (21:21 +0000)]
* added a "clean_all" target similar to the other *_all targets

13 years agoMake TTL index a per-interface value.
Thomas Lopatic [Wed, 11 Oct 2006 20:58:45 +0000 (20:58 +0000)]
Make TTL index a per-interface value.

13 years agoApplied friendly name patch by Sektor.
Thomas Lopatic [Wed, 11 Oct 2006 20:18:36 +0000 (20:18 +0000)]
Applied friendly name patch by Sektor.

13 years agoPatch for IPv6 netmask from John Hay
Andreas Tonnesen [Mon, 2 Oct 2006 08:37:17 +0000 (08:37 +0000)]
Patch for IPv6 netmask from John Hay

13 years agoFixed various bugs related to NETDIRECT stuff in httpinfo plugin
Andreas Tonnesen [Mon, 18 Sep 2006 18:55:30 +0000 (18:55 +0000)]
Fixed various bugs related to NETDIRECT stuff in httpinfo plugin

13 years agoRemoving powerinfo plugin as the mini pulgin now serves as an example
Andreas Tonnesen [Sun, 17 Sep 2006 18:30:13 +0000 (18:30 +0000)]
Removing powerinfo plugin as the mini pulgin now serves as an example

13 years agoCheck for NULL return for malloc
Andreas Tonnesen [Thu, 14 Sep 2006 08:05:07 +0000 (08:05 +0000)]
Check for NULL return for malloc

13 years agoFix for memleak in olsr_remove_scheduler_event
Andreas Tonnesen [Thu, 27 Jul 2006 15:57:47 +0000 (15:57 +0000)]
Fix for memleak in olsr_remove_scheduler_event

14 years agoSlight modification
Andreas Tonnesen [Sat, 24 Jun 2006 15:40:52 +0000 (15:40 +0000)]
Slight modification

14 years agoCleaned ut old linux-gui makefile a bit
Andreas Tonnesen [Sat, 24 Jun 2006 14:33:18 +0000 (14:33 +0000)]
Cleaned ut old linux-gui makefile a bit

14 years agoInitial addittion of the BMF multicast plugin
Andreas Tonnesen [Wed, 3 May 2006 08:59:16 +0000 (08:59 +0000)]
Initial addittion of the BMF multicast plugin

14 years agoAdded new config options NicChgsPollInt and AutoDetectChanges
Andreas Tonnesen [Mon, 17 Apr 2006 18:31:09 +0000 (18:31 +0000)]
Added new config options NicChgsPollInt and AutoDetectChanges

14 years agoFix for interface IP change main address issue
Andreas Tonnesen [Fri, 14 Apr 2006 05:18:31 +0000 (05:18 +0000)]
Fix for interface IP change main address issue

14 years agoAdded nohandling of SIGPIPE since this signal made olsrd crash on openbsd
Andreas Tonnesen [Fri, 14 Apr 2006 05:04:16 +0000 (05:04 +0000)]
Added nohandling of SIGPIPE since this signal made olsrd crash on openbsd

14 years agoAdded IPC open to dot draw init
Andreas Tonnesen [Tue, 11 Apr 2006 18:43:12 +0000 (18:43 +0000)]
Added IPC open to dot draw init

14 years agoFix for bug where main address is not updated when IP change is detected
Andreas Tonnesen [Tue, 11 Apr 2006 14:59:20 +0000 (14:59 +0000)]
Fix for bug where main address is not updated when IP change is detected

14 years agoAdded links supplied by Doug.
Thomas Lopatic [Thu, 30 Mar 2006 00:22:02 +0000 (00:22 +0000)]
Added links supplied by Doug.

14 years agoMake conversion of default IPv6 addresses fail silently. On IPv6-capable
Thomas Lopatic [Thu, 9 Mar 2006 15:05:27 +0000 (15:05 +0000)]
Make conversion of default IPv6 addresses fail silently. On IPv6-capable
systems this never fails. This only fails on systems that do not support
AF_INET6 and made olsrd unusable with ulibc.

14 years agoAdded lib64 patch
Andreas Tonnesen [Wed, 15 Feb 2006 06:34:45 +0000 (06:34 +0000)]
Added lib64 patch

14 years agoChanged TC redundancy default to 2
Andreas Tonnesen [Thu, 12 Jan 2006 11:00:49 +0000 (11:00 +0000)]
Changed TC redundancy default to 2

14 years agoWarnings fixed
Andreas Tonnesen [Tue, 10 Jan 2006 20:49:01 +0000 (20:49 +0000)]
Warnings fixed

14 years agoWow, there are some serious issue with libnet using UDP+IPv6... To bad since this...
Andreas Tonnesen [Tue, 10 Jan 2006 20:38:19 +0000 (20:38 +0000)]
Wow, there are some serious issue with libnet using UDP+IPv6... To bad since this is what we really wanted libnet for. I'll see if I can create a workaround, as for now there is no UDP checksum in the IPv6 packets beeing sent...

14 years agoChanged getuid to geteuid
Andreas Tonnesen [Tue, 10 Jan 2006 17:44:17 +0000 (17:44 +0000)]
Changed getuid to geteuid

14 years agoRemoved getgid check
Andreas Tonnesen [Tue, 10 Jan 2006 06:20:38 +0000 (06:20 +0000)]
Removed getgid check

14 years agoAdded libnet IPv6 support. For some strange reason libnet_write failes on my debian...
Andreas Tonnesen [Sun, 8 Jan 2006 20:27:18 +0000 (20:27 +0000)]
Added libnet IPv6 support. For some strange reason libnet_write failes on my debian box using libnet 1.1 with a free() failure detected by glibc. I cant see why, but Ill investigate further later on

14 years agoAddee LQ command line options
Andreas Tonnesen [Sat, 7 Jan 2006 18:05:05 +0000 (18:05 +0000)]
Addee LQ command line options

14 years agoRemoved defs.c. Declarations moved to scheduler and main
Andreas Tonnesen [Sat, 7 Jan 2006 17:18:32 +0000 (17:18 +0000)]
Removed defs.c. Declarations moved to scheduler and main

14 years agoAdapted plugins to the cleanup of external variables in olsrd
Andreas Tonnesen [Sat, 7 Jan 2006 08:17:45 +0000 (08:17 +0000)]
Adapted plugins to the cleanup of external variables in olsrd

14 years agoCleanup in use of extern variables. Rather trivial changes, but a lot of them
Andreas Tonnesen [Sat, 7 Jan 2006 08:16:26 +0000 (08:16 +0000)]
Cleanup in use of extern variables. Rather trivial changes, but a lot of them

14 years agoAdded dont fragment bit in libnet udp header and better failure handling
Andreas Tonnesen [Fri, 6 Jan 2006 07:21:04 +0000 (07:21 +0000)]
Added dont fragment bit in libnet udp header and better failure handling

14 years agoInitial libnet code for testing. Works on Linux now, do make USE_LIBNET=1 to use
Andreas Tonnesen [Fri, 6 Jan 2006 06:54:37 +0000 (06:54 +0000)]
Initial libnet code for testing. Works on Linux now, do make USE_LIBNET=1 to use

14 years agoNot deleting tags when doing clean only when doing uberclean
Andreas Tonnesen [Fri, 6 Jan 2006 06:52:17 +0000 (06:52 +0000)]
Not deleting tags when doing clean only when doing uberclean

14 years agoAdded patch by Lorenz Schori
Andreas Tonnesen [Thu, 5 Jan 2006 06:05:07 +0000 (06:05 +0000)]
Added patch by Lorenz Schori

14 years agoLQ level 2 is default on 0.5
Andreas Tonnesen [Wed, 4 Jan 2006 19:05:03 +0000 (19:05 +0000)]
LQ level 2 is default on 0.5

14 years agoUpdate version constants
Andreas Tonnesen [Wed, 4 Jan 2006 15:51:51 +0000 (15:51 +0000)]
Update version constants

14 years agoUuups.. merge warnings has snuck into the changelog OLSRD_0_4_10
Andreas Tonnesen [Wed, 4 Jan 2006 09:08:08 +0000 (09:08 +0000)]
Uuups.. merge warnings has snuck into the changelog

14 years agoFixed build on FreeBSD 4.8.
Thomas Lopatic [Fri, 30 Dec 2005 02:24:00 +0000 (02:24 +0000)]
Fixed build on FreeBSD 4.8.

14 years agoRemoved return value check on times(2) calls... hey, Im working in a win98 box -...
Andreas Tonnesen [Thu, 29 Dec 2005 22:34:37 +0000 (22:34 +0000)]
Removed return value check on times(2) calls... hey, Im working in a win98 box - w00t

14 years agoAdded olsr_switch.exe and new READMEs to Windows distribution.
Thomas Lopatic [Thu, 29 Dec 2005 21:26:31 +0000 (21:26 +0000)]
Added olsr_switch.exe and new READMEs to Windows distribution.

14 years agoReanimated OS X port. Any OS X dynamic linking experts? Just tried a
Thomas Lopatic [Thu, 29 Dec 2005 19:48:43 +0000 (19:48 +0000)]
Reanimated OS X port. Any OS X dynamic linking experts? Just tried a
couple of options from the ld man page that seemed plausible. Looks
okay, but should be verified by somebody that knows what he's doing.

14 years agoSubtract IP and UDP header sizes from the right struct field.
Thomas Lopatic [Thu, 29 Dec 2005 18:37:16 +0000 (18:37 +0000)]
Subtract IP and UDP header sizes from the right struct field.

14 years agoPatches from Sven-Ola
Andreas Tonnesen [Thu, 22 Dec 2005 15:06:52 +0000 (15:06 +0000)]
Patches from Sven-Ola

14 years agoAdded comment on fish eye algorithm
Andreas Tonnesen [Wed, 21 Dec 2005 14:58:06 +0000 (14:58 +0000)]
Added comment on fish eye algorithm

14 years agoAdded fisheye option to olsrd.conf manpage
Andreas Tonnesen [Wed, 21 Dec 2005 14:23:42 +0000 (14:23 +0000)]
Added fisheye option to olsrd.conf manpage

14 years agoAdded new hemu option to manpage
Andreas Tonnesen [Wed, 21 Dec 2005 14:19:00 +0000 (14:19 +0000)]
Added new hemu option to manpage

14 years agoPatch from sven-ola
Andreas Tonnesen [Sat, 17 Dec 2005 17:22:26 +0000 (17:22 +0000)]
Patch from sven-ola

14 years agoFixed from elektra
Andreas Tonnesen [Sat, 17 Dec 2005 07:30:34 +0000 (07:30 +0000)]
Fixed from elektra

14 years agoAdded patch from Sven-Ola
Andreas Tonnesen [Fri, 16 Dec 2005 15:16:42 +0000 (15:16 +0000)]
Added patch from Sven-Ola

14 years agoAdded olsr_is_mpr function. Should have no impact on regular operation
Andreas Tonnesen [Fri, 16 Dec 2005 08:21:59 +0000 (08:21 +0000)]
Added olsr_is_mpr function. Should have no impact on regular operation

14 years agoAdded Elektra's Fish Eye documentation.
Thomas Lopatic [Wed, 14 Dec 2005 10:45:34 +0000 (10:45 +0000)]
Added Elektra's Fish Eye documentation.

14 years agoAdded bugfix comment
Andreas Tonnesen [Tue, 29 Nov 2005 19:09:59 +0000 (19:09 +0000)]
Added bugfix comment

14 years agoAdded checks for NULL returned from get_best_link_to_neighbor in the LQ code
Andreas Tonnesen [Tue, 29 Nov 2005 18:38:40 +0000 (18:38 +0000)]
Added checks for NULL returned from get_best_link_to_neighbor in the LQ code

14 years agoAdded buildsystem info in CHANGELOG
Andreas Tonnesen [Wed, 23 Nov 2005 05:54:03 +0000 (05:54 +0000)]
Added buildsystem info in CHANGELOG

14 years agoSome initial 0.4.10 changes to the README file
Andreas Tonnesen [Wed, 23 Nov 2005 05:51:07 +0000 (05:51 +0000)]
Some initial 0.4.10 changes to the README file

14 years agoRemoved spurious fgets().
Thomas Lopatic [Tue, 22 Nov 2005 10:12:30 +0000 (10:12 +0000)]
Removed spurious fgets().

14 years agoFix for the uberclean target. Will ot match the src/bsd directory
Andreas Tonnesen [Mon, 21 Nov 2005 06:27:29 +0000 (06:27 +0000)]
Fix for the uberclean target. Will ot match the src/bsd directory

14 years agoFix for EOL detection from stdin. Patch from Bernd
Andreas Tonnesen [Sun, 20 Nov 2005 20:45:33 +0000 (20:45 +0000)]
Fix for EOL detection from stdin. Patch from Bernd

14 years agox86_64 patch from Bernd
Andreas Tonnesen [Sat, 19 Nov 2005 08:49:44 +0000 (08:49 +0000)]
x86_64 patch from Bernd

14 years agox86_64 patch from Bernd
Andreas Tonnesen [Sat, 19 Nov 2005 08:43:51 +0000 (08:43 +0000)]
x86_64 patch from Bernd

14 years agox86_64 patch from Bernd
Andreas Tonnesen [Sat, 19 Nov 2005 08:39:26 +0000 (08:39 +0000)]
x86_64 patch from Bernd

14 years agoFixes for timestamp issues. The plugin was not converted to the new clock_t timestam...
Andreas Tonnesen [Sat, 19 Nov 2005 08:30:45 +0000 (08:30 +0000)]
Fixes for timestamp issues. The plugin was not converted to the new clock_t timestam scheme

14 years agoAdded experimental LinkQualityDijkstraLimit option, which prevents
Thomas Lopatic [Thu, 17 Nov 2005 04:25:44 +0000 (04:25 +0000)]
Added experimental LinkQualityDijkstraLimit option, which prevents
LQ TCs from nodes more than x1 hops away from us to trigger routing table
recalculation using Dijkstra. Instead integrate these changes into the
routing table every x2 seconds. This is to reduce CPU load. Triggering
Dijkstra too often uses up a lot of CPU cycles.

14 years agoAdded experimental LinkQualityFishEye configuration option, which enables
Thomas Lopatic [Thu, 17 Nov 2005 01:58:52 +0000 (01:58 +0000)]
Added experimental LinkQualityFishEye configuration option, which enables
us to shrink LQ TC intervals without swamping the network with LQ TCs. Look
at create_lq_tc() in lq_packet.c.

14 years agoFor HNA routes search the correct routing table, i.e. the HNA routing
Thomas Lopatic [Wed, 16 Nov 2005 23:55:54 +0000 (23:55 +0000)]
For HNA routes search the correct routing table, i.e. the HNA routing
table, for duplicates.

14 years agoUse HNA routing table with ETX. Support "<?lua= ... ?>" in TAS. Let
Thomas Lopatic [Tue, 15 Nov 2005 23:46:20 +0000 (23:46 +0000)]
Use HNA routing table with ETX. Support "<?lua= ... ?>" in TAS. Let
users override the minimal HELLO validity time. Secure session cookies
in TAS.

14 years agoWarning fix
Andreas Tonnesen [Sat, 12 Nov 2005 08:07:43 +0000 (08:07 +0000)]
Warning fix

14 years agoRemoved warnings from over-eager gcc 4.0. Thomas: These are just quick cast fixes...
Andreas Tonnesen [Thu, 10 Nov 2005 19:50:42 +0000 (19:50 +0000)]
Removed warnings from over-eager gcc 4.0. Thomas: These are just quick cast fixes, you want to do this dirrerently

14 years agoRemoved warnings
Andreas Tonnesen [Thu, 10 Nov 2005 19:35:12 +0000 (19:35 +0000)]
Removed warnings

14 years agoRemoved warning
Andreas Tonnesen [Thu, 10 Nov 2005 19:33:57 +0000 (19:33 +0000)]
Removed warning

14 years agoRemoved warning
Andreas Tonnesen [Thu, 10 Nov 2005 19:28:02 +0000 (19:28 +0000)]
Removed warning

14 years agoRemoved warnings
Andreas Tonnesen [Thu, 10 Nov 2005 19:25:37 +0000 (19:25 +0000)]
Removed warnings

14 years agoAdded cvsignore files from Bernds patch
Andreas Tonnesen [Tue, 8 Nov 2005 17:11:47 +0000 (17:11 +0000)]
Added cvsignore files from Bernds patch

14 years agoRemoved debug output
Andreas Tonnesen [Tue, 8 Nov 2005 17:05:23 +0000 (17:05 +0000)]
Removed debug output

14 years agoAdded patch by Bernd Petrovitsch
Andreas Tonnesen [Tue, 8 Nov 2005 11:24:04 +0000 (11:24 +0000)]
Added patch by Bernd Petrovitsch

14 years agoAdded comment about olsr_switch
Andreas Tonnesen [Fri, 28 Oct 2005 19:21:32 +0000 (19:21 +0000)]
Added comment about olsr_switch

14 years agoChecking for -1 and not negative on call to times
Andreas Tonnesen [Fri, 28 Oct 2005 19:16:09 +0000 (19:16 +0000)]
Checking for -1 and not negative on call to times

14 years agoChecking for -1 and not negative on call to times
Andreas Tonnesen [Fri, 28 Oct 2005 18:39:33 +0000 (18:39 +0000)]
Checking for -1 and not negative on call to times

14 years agoOnly use updated link qualities for links between us and our neighbours
Thomas Lopatic [Sun, 23 Oct 2005 20:58:14 +0000 (20:58 +0000)]
Only use updated link qualities for links between us and our neighbours
after we have announced them to the world via an LQ TC message. The idea
is that we use the updated link qualities only when everybody else does
so, too.

14 years agoUse a sorted vertex list so that we are deterministic in case we have two
Thomas Lopatic [Sun, 23 Oct 2005 20:11:50 +0000 (20:11 +0000)]
Use a sorted vertex list so that we are deterministic in case we have two
or more equally good routes.

14 years agoolsr_switch now works again on Linux, too.
Thomas Lopatic [Sun, 23 Oct 2005 19:17:48 +0000 (19:17 +0000)]
olsr_switch now works again on Linux, too.

14 years agoolsr_switch looks okay on Windows. Windows port uses correct MTU. With LQ
Thomas Lopatic [Sun, 23 Oct 2005 19:01:04 +0000 (19:01 +0000)]
olsr_switch looks okay on Windows. Windows port uses correct MTU. With LQ
enabled minimal HELLO-validity-time is HELLO-interval x LQ-Window-Size.

14 years agoAdded pack attribute to data structures based on feedback from XScale BE users
Andreas Tonnesen [Tue, 11 Oct 2005 14:55:55 +0000 (14:55 +0000)]
Added pack attribute to data structures based on feedback from XScale BE users

14 years agoPatch from Sven-Ola
Andreas Tonnesen [Sat, 8 Oct 2005 15:43:56 +0000 (15:43 +0000)]
Patch from Sven-Ola

14 years agoPatch from Sven-Ola
Andreas Tonnesen [Sat, 8 Oct 2005 15:38:38 +0000 (15:38 +0000)]
Patch from Sven-Ola

14 years agoFixed spelling error
Andreas Tonnesen [Thu, 29 Sep 2005 05:53:34 +0000 (05:53 +0000)]
Fixed spelling error

14 years agoFixed IPv6 addrtpe initialization
Andreas Tonnesen [Sat, 17 Sep 2005 20:48:50 +0000 (20:48 +0000)]
Fixed IPv6 addrtpe initialization