olsrd.git
4 years agoRelease v0.6.7.1 v0.6.7.1
Henning Rogge [Fri, 24 Oct 2014 16:42:14 +0000 (18:42 +0200)]
Release v0.6.7.1

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agojsoninfo: fix indentation
Ferry Huberts [Fri, 24 Oct 2014 07:53:50 +0000 (09:53 +0200)]
jsoninfo: fix indentation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: ensure null termination of string buffer
Ferry Huberts [Fri, 24 Oct 2014 07:51:41 +0000 (09:51 +0200)]
txtinfo: ensure null termination of string buffer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: duplicate code in branch
Ferry Huberts [Fri, 24 Oct 2014 07:48:52 +0000 (09:48 +0200)]
txtinfo: duplicate code in branch

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoplugins: add a comment to clarify strange behaviour
Ferry Huberts [Fri, 24 Oct 2014 07:24:51 +0000 (09:24 +0200)]
plugins: add a comment to clarify strange behaviour

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: set_plugin_boolean stores into an int
Nico Geyso [Fri, 24 Oct 2014 07:29:07 +0000 (09:29 +0200)]
txtinfo: set_plugin_boolean stores into an int

Signed-off-by: Nico Geyso <nico.geyso@fu-berlin.de>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: set_plugin_boolean stores into an int
Nico Geyso [Fri, 24 Oct 2014 07:31:27 +0000 (09:31 +0200)]
jsoninfo: set_plugin_boolean stores into an int

Signed-off-by: Nico Geyso <nico.geyso@fu-berlin.de>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoandroid: fix build on 32 bit platform (see 0295e11)
Ferry Huberts [Fri, 22 Aug 2014 10:32:29 +0000 (12:32 +0200)]
android: fix build on 32 bit platform (see 0295e11)

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoandroid: use the machine specific NDK instead of always the 32bit variant
Ferry Huberts [Fri, 15 Aug 2014 14:38:49 +0000 (16:38 +0200)]
android: use the machine specific NDK instead of always the 32bit variant

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoUpdate version after release of v0.6.7
Henning Rogge [Sun, 5 Oct 2014 10:35:56 +0000 (12:35 +0200)]
Update version after release of v0.6.7

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agoRelease v0.6.7 v0.6.7
Henning Rogge [Sun, 5 Oct 2014 10:35:41 +0000 (12:35 +0200)]
Release v0.6.7

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agoMissing patch of header files for "Add boolean ipv6only parameter to txtinfo and...
Saverio Proto [Fri, 29 Aug 2014 09:48:33 +0000 (11:48 +0200)]
Missing patch of header files for "Add boolean ipv6only parameter to txtinfo and jsoninfo"

4 years agoAdd boolean ipv6only parameter to txtinfo and jsoninfo
Henning Rogge [Sun, 24 Aug 2014 11:07:58 +0000 (13:07 +0200)]
Add boolean ipv6only parameter to txtinfo and jsoninfo

4 years agoBranch v0.6.7
Ferry Huberts [Fri, 22 Aug 2014 09:39:37 +0000 (11:39 +0200)]
Branch v0.6.7

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge remote-tracking branch 'olsr/openbsd'
Ferry Huberts [Fri, 22 Aug 2014 09:28:26 +0000 (11:28 +0200)]
Merge remote-tracking branch 'olsr/openbsd'

* olsr/openbsd:
  Install openbsd/olsrd.rcd to /etc/rc.d/olsrd.
  Remove linux-isms from Makefile
  An rc.d file for OpenBSD
  Adjusted OpenBSD installation paths

4 years agoCHANGELOG: add a note about the configuration files
Ferry Huberts [Thu, 21 Aug 2014 09:48:35 +0000 (11:48 +0200)]
CHANGELOG: add a note about the configuration files

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: multi-sgw mode is only supported on IPv4
Ferry Huberts [Tue, 19 Aug 2014 07:35:30 +0000 (09:35 +0200)]
sgw: multi-sgw mode is only supported on IPv4

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoREADME: improve the smart gateway text a bit
Ferry Huberts [Fri, 15 Aug 2014 12:27:43 +0000 (14:27 +0200)]
README: improve the smart gateway text a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoInstall openbsd/olsrd.rcd to /etc/rc.d/olsrd.
David Dahlberg [Fri, 15 Aug 2014 10:53:54 +0000 (12:53 +0200)]
Install openbsd/olsrd.rcd to /etc/rc.d/olsrd.

As I am no Makefile expert, I am pretty sure you don't like
my changes. Please modify it to your likings, so that the result
will stay the same.

If going the OBSD-specific path, it should be installed -m 555.

4 years agoRemove linux-isms from Makefile
David Dahlberg [Fri, 15 Aug 2014 10:51:08 +0000 (12:51 +0200)]
Remove linux-isms from Makefile

BSD rmdir does not know "--ignore-fail-on-non-empty"
The rationale for this switch is not to stop make, if
rmdir returns nonzero. So "|| true" will do the job also.

4 years agoAn rc.d file for OpenBSD
David Dahlberg [Fri, 15 Aug 2014 10:43:49 +0000 (12:43 +0200)]
An rc.d file for OpenBSD

4 years agoAdjusted OpenBSD installation paths
David Dahlberg [Fri, 15 Aug 2014 10:41:50 +0000 (12:41 +0200)]
Adjusted OpenBSD installation paths

Installation goes to /usr/local except for /etc.

4 years agoconf: ensure the egress interface names have a valid length
Ferry Huberts [Fri, 15 Aug 2014 10:04:47 +0000 (12:04 +0200)]
conf: ensure the egress interface names have a valid length

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agogui: fix 'warning: multiple common of ...' warnings
Ferry Huberts [Fri, 15 Aug 2014 07:56:03 +0000 (09:56 +0200)]
gui: fix 'warning: multiple common of ...' warnings

Show up on gcc 4.8.3

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agop2pd: fir compile warning, initialise ipHeader
Ferry Huberts [Sat, 9 Aug 2014 10:33:22 +0000 (12:33 +0200)]
p2pd: fir compile warning, initialise ipHeader

When compiling with the address sanitiser, got

[CC] src/p2pd.c
src/p2pd.c: In function ‘DoP2pd’:
src/p2pd.c:629:18: warning: ‘ipHeader’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   nwords = header->ip_hl << 1;
                  ^
src/p2pd.c:663:14: note: ‘ipHeader’ was declared here
   struct ip *ipHeader;         /* The IP header inside the captured IP packet */
              ^

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agobuild: add address santizer, compile with SANITIZE_ADDRESS=1
Ferry Huberts [Sat, 9 Aug 2014 10:13:49 +0000 (12:13 +0200)]
build: add address santizer, compile with SANITIZE_ADDRESS=1

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agobuild: gui: do not overwrite the LDFLAGS but append to it
Ferry Huberts [Sat, 9 Aug 2014 10:10:42 +0000 (12:10 +0200)]
build: gui: do not overwrite the LDFLAGS but append to it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: only listen on IPv6 when running under IPv6
Patrick Grimm [Thu, 10 Jul 2014 16:41:28 +0000 (18:41 +0200)]
txtinfo: only listen on IPv6 when running under IPv6

When the IPV6_V6ONLY flag is not set then olsrd running on IPv6
will listen on both IPv6 and IPv4 ports. A subsequent process
running on IPv4 can't listen on the same IPv4 port.

Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
4 years agojsoninfo: only listen on IPv6 when running under IPv6
Patrick Grimm [Thu, 10 Jul 2014 16:41:27 +0000 (18:41 +0200)]
jsoninfo: only listen on IPv6 when running under IPv6

When the IPV6_V6ONLY flag is not set then olsrd running on IPv6
will listen on both IPv6 and IPv4 ports. A subsequent process
running on IPv4 can't listen on the same IPv4 port.

Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
4 years agogw: change the costs type to signed 64bits
Ferry Huberts [Fri, 13 Jun 2014 09:34:32 +0000 (11:34 +0200)]
gw: change the costs type to signed 64bits

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoFix a signed/unsigned warning
Ferry Huberts [Fri, 13 Jun 2014 08:56:31 +0000 (10:56 +0200)]
Fix a signed/unsigned warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoSupport for FIB metric configuration, other than 2
Teco Boot [Wed, 11 Jun 2014 20:57:05 +0000 (22:57 +0200)]
Support for FIB metric configuration, other than 2

With multiple gateways, the default gateway routes need uniqueness.
Having a unique metric is a natural way to configure.
Metrics on exit link interface can be set with for example pppd configuration
or ifmetric tool.
With more than two exit link interfaces or default route next_hops, olsrd
would need a higher metric than current hard-coded value: 2.

New parameter: FIBMetricDefault
Defaults to existing behavior: 2

Metric range is unsigned 32-bit.

4 years agopud: nmealib: NMEA String Length Override Support
Ferry Huberts [Wed, 11 Jun 2014 08:56:27 +0000 (10:56 +0200)]
pud: nmealib: NMEA String Length Override Support

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoRevert "Fix for win32 compiling with i686-w64-mingw32-gcc on ubuntu"
Ferry Huberts [Tue, 10 Jun 2014 07:57:20 +0000 (09:57 +0200)]
Revert "Fix for win32 compiling with i686-w64-mingw32-gcc on ubuntu"

This reverts commit a36245314b1874b940037d3e486796d1a623dd78.

It breaks the windows builds on Debian Squeeze

4 years agoAdd LQ/NLQ/ETX to neighbor table debug output
Henning Rogge [Mon, 9 Jun 2014 07:37:45 +0000 (09:37 +0200)]
Add LQ/NLQ/ETX to neighbor table debug output

4 years agoMake link debug output source a bit more readable
Henning Rogge [Mon, 9 Jun 2014 07:25:21 +0000 (09:25 +0200)]
Make link debug output source a bit more readable

4 years agoFix for win32 compiling with i686-w64-mingw32-gcc on ubuntu
Yury Popov [Sat, 7 Jun 2014 20:15:43 +0000 (00:15 +0400)]
Fix for win32 compiling with i686-w64-mingw32-gcc on ubuntu
modified:   .gitignore - allowing win32 libregex.a contrib
modified:   Makefile.inc - requires for Windows VistaOrHigher wireless interface detection
modified:   lib/httpinfo/* - Fixing admin tab crashing and values update in webif ( ADMIN_INTERFACE=1 )
modified:   lib/nameservice/Makefile - Adding regex library for Win32
new file:   lib/nameservice/contrib/libregex.a - I copied it from VLC contrib. It is here http://download.videolan.org/pub/videolan/contrib/i686-w64-mingw32/vlc-contrib-i686-w64-mingw32-latest.tar.bz2
modified:   src/cfgparser/* - Fix for gui compiling/running with VS2008
modified:   src/win32/compat.c - inet_aton is required
modified:   src/win32/compat.h - Is this redifinition required? it produces error for me : src/win32/compat.c:481:1: error: expected declaration specifiers or ‘...’ before ‘(’ token
modified:   src/win32/ifnet.c
Added Windows VistaOrHigher additional wireless interface detection.
Added ability to see wireless interface names and guids with "olsrd.exe -d 2 -int" command. I think it is useful because it is hard to work with just interface id on Windows. It is also required for my project http://meshr.net

4 years agoMerge tag 'v0.6.6.2'
Ferry Huberts [Mon, 2 Jun 2014 13:01:24 +0000 (15:01 +0200)]
Merge tag 'v0.6.6.2'

OLSRd release 0.6.6.2

* tag 'v0.6.6.2':
  Release v0.6.6.2
  Fix strange coding in the 'long headers' fix
  jsoninfo: HTTP headers with CORS (if requested)
  Hotfix for very long http headers also for jsoninfo
  Hotfix for much too long http headers
  Fix some spelling mistakes
  Fix processing error for fragmented hellos
  neighbor table: fix crash in olsr_print_neighbor_table on MinGW
  tok: improve the nmea_calc_crc function a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge tag 'v0.6.5.6'
Ferry Huberts [Mon, 2 Jun 2014 12:59:31 +0000 (14:59 +0200)]
Merge tag 'v0.6.5.6'

OLSRd release 0.6.5.6

* tag 'v0.6.5.6':
  Release v0.6.5.6
  Fix strange coding in the 'long headers' fix
  jsoninfo: HTTP headers with CORS (if requested)
  Hotfix for very long http headers also for jsoninfo
  Hotfix for much too long http headers
  Fix some spelling mistakes
  Fix processing error for fragmented hellos
  neighbor table: fix crash in olsr_print_neighbor_table on MinGW
  tok: improve the nmea_calc_crc function a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoRelease v0.6.6.2 v0.6.6.2
Henning Rogge [Mon, 2 Jun 2014 10:15:27 +0000 (12:15 +0200)]
Release v0.6.6.2

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agoRelease v0.6.5.6 v0.6.5.6
Henning Rogge [Mon, 2 Jun 2014 10:13:48 +0000 (12:13 +0200)]
Release v0.6.5.6

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agohttpinfo: the position timestamp month is zero based
Ferry Huberts [Tue, 20 May 2014 11:32:00 +0000 (13:32 +0200)]
httpinfo: the position timestamp month is zero based

So increment it to make it human-readable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoFix strange coding in the 'long headers' fix
Ferry Huberts [Tue, 20 May 2014 11:52:31 +0000 (13:52 +0200)]
Fix strange coding in the 'long headers' fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoFix strange coding in the 'long headers' fix
Ferry Huberts [Tue, 20 May 2014 11:52:31 +0000 (13:52 +0200)]
Fix strange coding in the 'long headers' fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoFix strange coding in the 'long headers' fix
Ferry Huberts [Tue, 20 May 2014 11:52:31 +0000 (13:52 +0200)]
Fix strange coding in the 'long headers' fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: HTTP headers with CORS (if requested)
Alessio Caiazza [Fri, 16 May 2014 10:53:15 +0000 (12:53 +0200)]
jsoninfo: HTTP headers with CORS (if requested)

The new "httpheaders" parameter prepends HTTP headers to the reply.
If not set it will default to "no" and have the same behaviour as before.
Cross-origin resource sharing headers (CORS) are included in reply allowing the
json retrieval by javascript applications not served by olsrd itself.
This will allow to easily develop js applications running directly in the
browser.

Reviewed-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: HTTP headers with CORS (if requested)
Alessio Caiazza [Fri, 16 May 2014 10:53:15 +0000 (12:53 +0200)]
jsoninfo: HTTP headers with CORS (if requested)

The new "httpheaders" parameter prepends HTTP headers to the reply.
If not set it will default to "no" and have the same behaviour as before.
Cross-origin resource sharing headers (CORS) are included in reply allowing the
json retrieval by javascript applications not served by olsrd itself.
This will allow to easily develop js applications running directly in the
browser.

Reviewed-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: HTTP headers with CORS (if requested)
Alessio Caiazza [Fri, 16 May 2014 10:53:15 +0000 (12:53 +0200)]
jsoninfo: HTTP headers with CORS (if requested)

The new "httpheaders" parameter prepends HTTP headers to the reply.
If not set it will default to "no" and have the same behaviour as before.
Cross-origin resource sharing headers (CORS) are included in reply allowing the
json retrieval by javascript applications not served by olsrd itself.
This will allow to easily develop js applications running directly in the
browser.

Reviewed-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: disable distribution of position updates over OLSR when olsrTtl is 0
Ferry Huberts [Wed, 14 May 2014 16:52:48 +0000 (18:52 +0200)]
pud: disable distribution of position updates over OLSR when olsrTtl is 0

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoHotfix for very long http headers also for jsoninfo
Alessio Caiazza [Wed, 14 May 2014 20:45:33 +0000 (22:45 +0200)]
Hotfix for very long http headers also for jsoninfo

4 years agoHotfix for very long http headers also for jsoninfo
Alessio Caiazza [Wed, 14 May 2014 20:45:33 +0000 (22:45 +0200)]
Hotfix for very long http headers also for jsoninfo

4 years agoHotfix for very long http headers also for jsoninfo
Alessio Caiazza [Wed, 14 May 2014 20:45:33 +0000 (22:45 +0200)]
Hotfix for very long http headers also for jsoninfo

4 years agoHotfix for much too long http headers
Henning Rogge [Tue, 13 May 2014 19:23:36 +0000 (21:23 +0200)]
Hotfix for much too long http headers

4 years agoHotfix for much too long http headers
Henning Rogge [Tue, 13 May 2014 19:23:36 +0000 (21:23 +0200)]
Hotfix for much too long http headers

4 years agoFix stupid mistake, don't know why gcc didn't complained locally
Henning Rogge [Tue, 13 May 2014 19:20:33 +0000 (21:20 +0200)]
Fix stupid mistake, don't know why gcc didn't complained locally

4 years agoHotfix for very long http headers
Henning Rogge [Tue, 13 May 2014 19:16:09 +0000 (21:16 +0200)]
Hotfix for very long http headers

4 years agopud: nmealib: fix return value of nmea_parser_init
Ferry Huberts [Thu, 1 May 2014 16:00:41 +0000 (18:00 +0200)]
pud: nmealib: fix return value of nmea_parser_init

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoRevert "Use strscpy instead of strcpy"
Ferry Huberts [Fri, 25 Apr 2014 08:30:30 +0000 (10:30 +0200)]
Revert "Use strscpy instead of strcpy"

This reverts commit bb4eea09a13bdb27bb9e26ae3498db9ae416ad37.

It loses the line-feeds.
Can be demonstrated by retrieving the output from txtinfo with
for example
  echo "/sgw" | nc 127.0.0.1 2006

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agop2pd: fix recomputeIPv4HeaderChecksum function
Ferry Huberts [Wed, 23 Apr 2014 12:39:33 +0000 (14:39 +0200)]
p2pd: fix recomputeIPv4HeaderChecksum function

There was a missing htons when putting the recomputed checksum
into the IP header

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoFix copypaste error
Henning Rogge [Tue, 22 Apr 2014 12:21:34 +0000 (14:21 +0200)]
Fix copypaste error

4 years agoClean before compile when using Openwrt olsrd-stable-git makefile
Henning Rogge [Tue, 22 Apr 2014 12:17:20 +0000 (14:17 +0200)]
Clean before compile when using Openwrt olsrd-stable-git makefile

4 years agoSmooth LQ calculation if link suddenly breaks.
Henning Rogge [Tue, 22 Apr 2014 12:17:02 +0000 (14:17 +0200)]
Smooth LQ calculation if link suddenly breaks.

4 years agoUse strscpy instead of strcpy
Henning Rogge [Thu, 17 Apr 2014 12:03:08 +0000 (14:03 +0200)]
Use strscpy instead of strcpy

4 years agoSmall fixes to allow compilation with OpenBSD
Charlie Root [Thu, 17 Apr 2014 12:00:35 +0000 (14:00 +0200)]
Small fixes to allow compilation with OpenBSD

4 years agoTry to delete and retry for BSD ipv4 too
Henning Rogge [Thu, 17 Apr 2014 09:27:01 +0000 (11:27 +0200)]
Try to delete and retry for BSD ipv4 too

4 years agoFix some spelling mistakes
Henning Rogge [Mon, 31 Mar 2014 09:18:43 +0000 (11:18 +0200)]
Fix some spelling mistakes

4 years agoFix processing error for fragmented hellos
Henning Rogge [Mon, 31 Mar 2014 09:18:30 +0000 (11:18 +0200)]
Fix processing error for fragmented hellos

4 years agoFix some spelling mistakes
Henning Rogge [Mon, 31 Mar 2014 09:18:43 +0000 (11:18 +0200)]
Fix some spelling mistakes

4 years agoFix processing error for fragmented hellos
Henning Rogge [Mon, 31 Mar 2014 09:18:30 +0000 (11:18 +0200)]
Fix processing error for fragmented hellos

4 years agoMerge branch 'master' of http://olsr.org/git/olsrd
Henning Rogge [Mon, 31 Mar 2014 09:18:51 +0000 (11:18 +0200)]
Merge branch 'master' of http://olsr.org/git/olsrd

4 years agoFix some spelling mistakes
Henning Rogge [Mon, 31 Mar 2014 09:18:43 +0000 (11:18 +0200)]
Fix some spelling mistakes

4 years agoFix processing error for fragmented hellos
Henning Rogge [Mon, 31 Mar 2014 09:18:30 +0000 (11:18 +0200)]
Fix processing error for fragmented hellos

4 years agopud: nmealib: fix isInvalidNMEACharacter function
Ferry Huberts [Fri, 21 Mar 2014 11:27:06 +0000 (12:27 +0100)]
pud: nmealib: fix isInvalidNMEACharacter function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: include latest fixes
Ferry Huberts [Thu, 20 Mar 2014 20:45:12 +0000 (21:45 +0100)]
pud: nmealib: include latest fixes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: make the sgw output better machine parseable
Ferry Huberts [Thu, 20 Mar 2014 11:18:25 +0000 (12:18 +0100)]
txtinfo: make the sgw output better machine parseable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: Fix a typo in Tobias's surname
Ferry Huberts [Thu, 20 Mar 2014 09:54:03 +0000 (10:54 +0100)]
pud: nmealib: Fix a typo in Tobias's surname

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: update nmealib to 2.0.0
Ferry Huberts [Thu, 20 Mar 2014 07:49:10 +0000 (08:49 +0100)]
pud: update nmealib to 2.0.0

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocommon: add an extra check in autobuf_enlarge to avoid a compiler warning
Ferry Huberts [Thu, 20 Mar 2014 08:24:55 +0000 (09:24 +0100)]
common: add an extra check in autobuf_enlarge to avoid a compiler warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgwdynspeed: rename a function parameter to avoid a compiler warning
Ferry Huberts [Thu, 20 Mar 2014 07:58:38 +0000 (08:58 +0100)]
sgwdynspeed: rename a function parameter to avoid a compiler warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: rework policy rules setup
Ferry Huberts [Wed, 19 Mar 2014 10:23:04 +0000 (11:23 +0100)]
sgw: rework policy rules setup

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: update nmealib samples Makefile
Ferry Huberts [Tue, 18 Mar 2014 18:45:43 +0000 (19:45 +0100)]
pud: update  nmealib samples Makefile

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoREADME-Olsr-Extensions: Fix some typos
Ferry Huberts [Tue, 18 Mar 2014 13:58:38 +0000 (14:58 +0100)]
README-Olsr-Extensions: Fix some typos

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agogw: when a node advertises maximum bandwidth then only consider path costs
Ferry Huberts [Wed, 5 Mar 2014 13:09:21 +0000 (14:09 +0100)]
gw: when a node advertises maximum bandwidth then only consider path costs

So that we can setup nodes in a way that they will attract all gw tunnels
in the mesh. This is - for example - very useful for situations where
vehicles drive into their base, which has a node with a 'free' Internet
link.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: fix a minor copy/paste typo
Ferry Huberts [Mon, 24 Feb 2014 10:55:34 +0000 (11:55 +0100)]
gw: fix a minor copy/paste typo

No change in functionality

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agofix: TXTINFO_ALLOW_LOCALHOST - add missing ntohl()
Markus Kittenberger [Sat, 22 Feb 2014 13:46:58 +0000 (14:46 +0100)]
fix: TXTINFO_ALLOW_LOCALHOST - add missing ntohl()

5 years agogw: fix null pointer dereferences in cost calculation
Ferry Huberts [Fri, 21 Feb 2014 08:30:33 +0000 (09:30 +0100)]
gw: fix null pointer dereferences in cost calculation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: add SmartGatewayMarkOffsetServerTunnel configuration parameter
Ferry Huberts [Tue, 18 Feb 2014 15:06:50 +0000 (16:06 +0100)]
gw: add SmartGatewayMarkOffsetServerTunnel configuration parameter

We need it in the policy routing script

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: move path_cost into the gateway struct, ensure it's always up-to-date
Ferry Huberts [Thu, 20 Feb 2014 14:21:24 +0000 (15:21 +0100)]
gw: move path_cost into the gateway struct, ensure it's always up-to-date

In the process a lot of code surrounding the path costs can be simplified:
upon reception of a HNA we always calculate the costs, and when they have
changed, we re-sort the gateway list.
Therefore no other place in the code needs to do that, and path_cost can
always be used directly from the gateway struct.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: fix a typo
Ferry Huberts [Thu, 20 Feb 2014 14:02:20 +0000 (15:02 +0100)]
gw: fix a typo

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: fix gateway takedown calculation
Ferry Huberts [Thu, 20 Feb 2014 13:36:50 +0000 (14:36 +0100)]
gw: fix gateway takedown calculation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: Add endif comments
Ferry Huberts [Thu, 20 Feb 2014 11:16:41 +0000 (12:16 +0100)]
gw: Add endif comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: simplify overlap checking code
Ferry Huberts [Tue, 18 Feb 2014 14:51:16 +0000 (15:51 +0100)]
gw: simplify overlap checking code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: fix the 'ip' delete argument in the policy routing script
Ferry Huberts [Tue, 18 Feb 2014 12:38:01 +0000 (13:38 +0100)]
gw: fix the 'ip' delete argument in the policy routing script

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agogw: remove commands in comments concerning the policy routing script
Ferry Huberts [Tue, 18 Feb 2014 10:05:14 +0000 (11:05 +0100)]
gw: remove commands in comments concerning the policy routing script

Too much duplication and maintenance

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agosgwdynspeed: remove some dead code
Ferry Huberts [Tue, 18 Feb 2014 09:00:38 +0000 (10:00 +0100)]
sgwdynspeed: remove some dead code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agosgwdynspeed: make the EOL stripping much faster
Ferry Huberts [Mon, 17 Feb 2014 23:15:14 +0000 (00:15 +0100)]
sgwdynspeed: make the EOL stripping much faster

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agosgwdynspeed: ignore everything we don't understand when reading the file
Ferry Huberts [Mon, 17 Feb 2014 23:05:40 +0000 (00:05 +0100)]
sgwdynspeed: ignore everything we don't understand when reading the file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agosgwdynspeed: rename 2 variables
Ferry Huberts [Mon, 17 Feb 2014 22:59:08 +0000 (23:59 +0100)]
sgwdynspeed: rename 2 variables

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agosgwdynspeed: do not go outside of the string when stripping EOLs
Ferry Huberts [Mon, 17 Feb 2014 22:48:20 +0000 (23:48 +0100)]
sgwdynspeed: do not go outside of the string when stripping EOLs

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
5 years agosgwdynspeed: fgets includes EOLs in the read string, strip them off
Ferry Huberts [Mon, 17 Feb 2014 15:31:12 +0000 (16:31 +0100)]
sgwdynspeed: fgets includes EOLs in the read string, strip them off

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>