olsrd.git
3 years agoconf: calculate the checksum over the effective configuration
Ferry Huberts [Mon, 2 Jan 2017 14:14:47 +0000 (15:14 +0100)]
conf: calculate the checksum over the effective configuration

Can be disabled by compiling with 'NOCONFIGCHECKSUM=1'.

We can't simply checksum the olsr_cnf struct because it contains pointers
to other structs that would vary every time.
This is the simplest solution.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoconf: ensure the correct configuration file is stored in the configuration
Ferry Huberts [Sun, 25 Dec 2016 13:30:00 +0000 (14:30 +0100)]
conf: ensure the correct configuration file is stored in the configuration

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoconf: clear allocated default config before filling it.
Ferry Huberts [Sun, 25 Dec 2016 13:29:27 +0000 (14:29 +0100)]
conf: clear allocated default config before filling it.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: introduce command prefixes '/http' and '/plain'
Ferry Huberts [Mon, 2 Jan 2017 13:06:22 +0000 (14:06 +0100)]
info: introduce command prefixes '/http' and '/plain'

All info plugins support a number of request prefixes:
- /http : forces output WITH    http headers, temporarily overriding the
          configured "httpheaders" value.
- /plain: forces output WITHOUT http headers, temporarily overriding the
          configured "httpheaders" value.

These prefixes have to be at the start of the request string, can occur
only there, and can occur only once.

Note that this will NOT work when there is an internal error (only occurs
when the connection is not ready to be read, which is very unlikely).

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: sanitise the request right after it's been received
Ferry Huberts [Thu, 8 Dec 2016 09:30:30 +0000 (10:30 +0100)]
info: sanitise the request right after it's been received

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: read the request as early as possible
Ferry Huberts [Sat, 10 Dec 2016 17:05:27 +0000 (18:05 +0100)]
info: read the request as early as possible

So that the request is already known before (further) checking
pre-conditions. Will be used later.

Also check for too many requests in flight when replying with an
internal server error.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: fix a comment and add a comment
Ferry Huberts [Sat, 10 Dec 2016 17:00:24 +0000 (18:00 +0100)]
info: fix a comment and add a comment

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: be explicit about adding headers
Ferry Huberts [Wed, 7 Dec 2016 21:19:11 +0000 (22:19 +0100)]
info: be explicit about adding headers

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: rename stripEOLs to stripTrailingWhitespace
Ferry Huberts [Thu, 8 Dec 2016 08:54:48 +0000 (09:54 +0100)]
info: rename stripEOLs to stripTrailingWhitespace

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: protect cutAtFirstEOL against invalid input and zero length
Ferry Huberts [Thu, 8 Dec 2016 07:49:27 +0000 (08:49 +0100)]
info: protect cutAtFirstEOL against invalid input and zero length

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: protect stripTrailingSlashes against invalid input and zero length
Ferry Huberts [Thu, 8 Dec 2016 07:49:08 +0000 (08:49 +0100)]
info: protect stripTrailingSlashes against invalid input and zero length

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: protect skipLeadingWhitespace against invalid input and zero length
Ferry Huberts [Wed, 7 Dec 2016 23:12:37 +0000 (00:12 +0100)]
info: protect skipLeadingWhitespace against invalid input and zero length

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: protect skipMultipleSlashes against invalid input and zero length
Ferry Huberts [Thu, 8 Dec 2016 07:42:03 +0000 (08:42 +0100)]
info: protect skipMultipleSlashes against invalid input and zero length

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: protect stripEOLs against invalid input and zero length
Ferry Huberts [Wed, 7 Dec 2016 23:12:16 +0000 (00:12 +0100)]
info: protect stripEOLs against invalid input and zero length

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: improve readability of the 'empty request' check
Ferry Huberts [Wed, 7 Dec 2016 21:24:35 +0000 (22:24 +0100)]
info: improve readability of the 'empty request' check

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: trival debug output fix
Ferry Huberts [Wed, 7 Dec 2016 21:20:50 +0000 (22:20 +0100)]
info: trival debug output fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: trivial comment fix
Ferry Huberts [Wed, 7 Dec 2016 21:16:26 +0000 (22:16 +0100)]
info: trivial comment fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: drain the request when there are too many requests in flight
Ferry Huberts [Wed, 7 Dec 2016 22:24:15 +0000 (23:24 +0100)]
info: drain the request when there are too many requests in flight

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: send everything on empty requests
Ferry Huberts [Thu, 8 Dec 2016 10:46:00 +0000 (11:46 +0100)]
info: send everything on empty requests

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: rework HTTP request detection and request sanitation
Ferry Huberts [Sat, 10 Dec 2016 16:53:28 +0000 (17:53 +0100)]
info: rework HTTP request detection and request sanitation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: ensure the request is initially empty
Ferry Huberts [Thu, 8 Dec 2016 10:34:40 +0000 (11:34 +0100)]
info: ensure the request is initially empty

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: java: upgrade gradle wrapper
Ferry Huberts [Tue, 3 Jan 2017 14:35:45 +0000 (15:35 +0100)]
info: java: upgrade gradle wrapper

The magical incantation is:
  gradle wrapper --gradle-version 3.2.1

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoMerge branch 'release-0.9.5'
Ferry Huberts [Wed, 21 Dec 2016 22:35:39 +0000 (23:35 +0100)]
Merge branch 'release-0.9.5'

* release-0.9.5:
  main: blacklist UCLIBC for OLSR_HAVE_EXECINFO_H

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agomain: blacklist UCLIBC for OLSR_HAVE_EXECINFO_H
Ferry Huberts [Wed, 21 Dec 2016 22:24:02 +0000 (23:24 +0100)]
main: blacklist UCLIBC for OLSR_HAVE_EXECINFO_H

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoMerge branch 'release-0.9.5'
Ferry Huberts [Wed, 21 Dec 2016 08:50:45 +0000 (09:50 +0100)]
Merge branch 'release-0.9.5'

* release-0.9.5:
  main: improve EXECINFO include handling a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agomain: improve EXECINFO include handling a bit
Ferry Huberts [Wed, 21 Dec 2016 08:38:05 +0000 (09:38 +0100)]
main: improve EXECINFO include handling a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoMerge branch 'release-0.9.5'
Ferry Huberts [Tue, 6 Dec 2016 16:00:53 +0000 (17:00 +0100)]
Merge branch 'release-0.9.5'

* release-0.9.5:
  info: fix json Content-Type header
  txtinfo: do not use http headers by default

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: fix json Content-Type header
Ferry Huberts [Tue, 6 Dec 2016 15:43:16 +0000 (16:43 +0100)]
info: fix json Content-Type header

To comply with http://jsonapi.org/format/

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agotxtinfo: do not use http headers by default
Ferry Huberts [Tue, 6 Dec 2016 15:56:08 +0000 (16:56 +0100)]
txtinfo: do not use http headers by default

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoMerge branch 'release-0.9.5'
Ferry Huberts [Mon, 5 Dec 2016 15:42:37 +0000 (16:42 +0100)]
Merge branch 'release-0.9.5'

* release-0.9.5:
  sgw: fix interface monitor for single-sgw mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: fix interface monitor for single-sgw mode
Ferry Huberts [Thu, 1 Dec 2016 17:08:14 +0000 (18:08 +0100)]
sgw: fix interface monitor for single-sgw mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agofix timing issues on systems where RAND_MAX is not INT32_MAX
Sebastian Wiedenroth [Mon, 24 Oct 2016 00:38:34 +0000 (00:38 +0000)]
fix timing issues on systems where RAND_MAX is not INT32_MAX

Signed-off-by: Sebastian Wiedenroth <wiedi@frubar.net>
3 years agomach: add wrapper for clock_gettime
Ferry Huberts [Wed, 30 Nov 2016 13:34:27 +0000 (14:34 +0100)]
mach: add wrapper for clock_gettime

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoMerge branch 'release-0.9.5'
Ferry Huberts [Wed, 23 Nov 2016 16:54:37 +0000 (17:54 +0100)]
Merge branch 'release-0.9.5'

* release-0.9.5:
  release: adjust script to create multiple tar files
  changelog: adjust to put notes on top
  Update version after release of v0.9.5
  Release v0.9.5

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agorelease: adjust script to create multiple tar files
Ferry Huberts [Wed, 23 Nov 2016 16:36:31 +0000 (17:36 +0100)]
release: adjust script to create multiple tar files

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agochangelog: adjust to put notes on top
Ferry Huberts [Wed, 23 Nov 2016 16:51:57 +0000 (17:51 +0100)]
changelog: adjust to put notes on top

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoUpdate version after release of v0.9.5
Henning Rogge [Tue, 22 Nov 2016 19:39:49 +0000 (20:39 +0100)]
Update version after release of v0.9.5

Signed-off-by: Henning Rogge <hrogge@gmail.com>
3 years agoRelease v0.9.5 v0.9.5
Henning Rogge [Tue, 22 Nov 2016 19:39:42 +0000 (20:39 +0100)]
Release v0.9.5

Signed-off-by: Henning Rogge <hrogge@gmail.com>
3 years agoUpdate version after branch of v0.9.5
Ferry Huberts [Mon, 21 Nov 2016 15:42:23 +0000 (16:42 +0100)]
Update version after branch of v0.9.5

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoBranch v0.9.5
Ferry Huberts [Mon, 21 Nov 2016 15:42:23 +0000 (16:42 +0100)]
Branch v0.9.5

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agorelease: fix the release script's git repository check
Ferry Huberts [Mon, 21 Nov 2016 15:41:14 +0000 (16:41 +0100)]
release: fix the release script's git repository check

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoohs_cmd: avoid compiler warning
Ferry Huberts [Mon, 24 Oct 2016 09:22:45 +0000 (11:22 +0200)]
ohs_cmd: avoid compiler warning

ohs_cmd.c:542:3: error: this ‘for’ clause does not guard... [-Werror=misleading-indentation]

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoMerge pull request #2 from kakru/fix-shadow-error-in-pud
Ferry Huberts [Wed, 31 Aug 2016 13:10:29 +0000 (15:10 +0200)]
Merge pull request #2 from kakru/fix-shadow-error-in-pud

pud: fix of 'time' shadowing a global declaration

3 years agopud: fix of 'time' shadowing a global declaration (that causes a compilation error... 2/head
Karol Kruzelecki [Wed, 31 Aug 2016 12:27:28 +0000 (14:27 +0200)]
pud: fix of 'time' shadowing a global declaration (that causes a compilation error on older Ubuntu)

3 years agoinfo: release java OSGi bundles
Ferry Huberts [Wed, 10 Aug 2016 11:01:01 +0000 (13:01 +0200)]
info: release java OSGi bundles

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: integrate java OSGi bundles
Ferry Huberts [Wed, 10 Aug 2016 10:50:28 +0000 (12:50 +0200)]
info: integrate java OSGi bundles

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: remove the instance of the nmea parser, no longer used
Ferry Huberts [Wed, 3 Aug 2016 05:40:49 +0000 (07:40 +0200)]
pud: remove the instance of the nmea parser, no longer used

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: fix extracting position information from gpsd
Ferry Huberts [Tue, 2 Aug 2016 13:47:59 +0000 (15:47 +0200)]
pud: fix extracting position information from gpsd

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: make sure to actually count inUse satellites (on older gpsd)
Ferry Huberts [Mon, 1 Aug 2016 10:27:52 +0000 (12:27 +0200)]
pud: make sure to actually count inUse satellites (on older gpsd)

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: update documentation
Ferry Huberts [Fri, 29 Jul 2016 11:39:18 +0000 (13:39 +0200)]
pud: update documentation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: remove rx path
Ferry Huberts [Fri, 29 Jul 2016 08:37:28 +0000 (10:37 +0200)]
pud: remove rx path

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: hook up gpsd timer
Ferry Huberts [Fri, 29 Jul 2016 08:11:20 +0000 (10:11 +0200)]
pud: hook up gpsd timer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: add gpsd functions
Ferry Huberts [Thu, 28 Jul 2016 19:51:44 +0000 (21:51 +0200)]
pud: add gpsd functions

This makes pud unsupported on android

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: use gpsd fetch timer
Ferry Huberts [Fri, 29 Jul 2016 07:56:54 +0000 (09:56 +0200)]
pud: use gpsd fetch timer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: timers: add gpsd fetch timer functions
Ferry Huberts [Fri, 29 Jul 2016 07:53:09 +0000 (09:53 +0200)]
pud: timers: add gpsd fetch timer functions

The gps deamon needs to be read much faster than the update
time of 1 second in order to get a consistent set of gpsd data.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: add gpsd related configuration parameters
Ferry Huberts [Thu, 28 Jul 2016 21:10:53 +0000 (23:10 +0200)]
pud: add gpsd related configuration parameters

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: split a function
Ferry Huberts [Thu, 28 Jul 2016 17:57:48 +0000 (19:57 +0200)]
pud: split a function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: force a state change to moving when 'no info received' changes
Ferry Huberts [Thu, 28 Jul 2016 17:55:16 +0000 (19:55 +0200)]
pud: force a state change to moving when 'no info received' changes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: move to stationary on undetermined moving state
Ferry Huberts [Thu, 28 Jul 2016 17:24:27 +0000 (19:24 +0200)]
pud: move to stationary on undetermined moving state

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: minor layout fix
Ferry Huberts [Thu, 28 Jul 2016 17:21:16 +0000 (19:21 +0200)]
pud: minor layout fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: minor layout improvement
Ferry Huberts [Mon, 25 Jul 2016 08:17:20 +0000 (10:17 +0200)]
pud: minor layout improvement

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: fix mistakes introduced in 0db233f
Ferry Huberts [Wed, 20 Jul 2016 13:29:47 +0000 (15:29 +0200)]
jsoninfo: fix mistakes introduced in 0db233f

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: further adjustments for new nmealib
Ferry Huberts [Wed, 20 Jul 2016 13:02:56 +0000 (15:02 +0200)]
httpinfo: further adjustments for new nmealib

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: nmealib now sets year and month correctly
Ferry Huberts [Wed, 20 Jul 2016 11:47:20 +0000 (13:47 +0200)]
httpinfo: nmealib now sets year and month correctly

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: further adjustments for new nmealib
Ferry Huberts [Wed, 20 Jul 2016 12:36:17 +0000 (14:36 +0200)]
jsoninfo: further adjustments for new nmealib

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: nmealib now sets year and month correctly
Ferry Huberts [Wed, 20 Jul 2016 11:47:10 +0000 (13:47 +0200)]
jsoninfo: nmealib now sets year and month correctly

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: further adjustments for new nmealib
Ferry Huberts [Wed, 20 Jul 2016 12:36:08 +0000 (14:36 +0200)]
pud: further adjustments for new nmealib

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: nmealib now sets year and month correctly
Ferry Huberts [Wed, 20 Jul 2016 11:46:32 +0000 (13:46 +0200)]
pud: nmealib now sets year and month correctly

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: nmealib: minor update
Ferry Huberts [Wed, 20 Jul 2016 10:47:11 +0000 (12:47 +0200)]
pud: nmealib: minor update

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: update nmealib to 3.0.0
Ferry Huberts [Tue, 19 Jul 2016 19:24:03 +0000 (21:24 +0200)]
pud: update nmealib to 3.0.0

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoautobuf: let's limit the maximum size to 16MB
Ferry Huberts [Fri, 24 Jun 2016 07:39:12 +0000 (09:39 +0200)]
autobuf: let's limit the maximum size to 16MB

TO avoid thrashing the system when an autobuf is abused.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobuild: fix GCC 6 warning about EAGAIN and EWOULDBLOCK being equal
Ferry Huberts [Wed, 15 Jun 2016 22:38:11 +0000 (00:38 +0200)]
build: fix GCC 6 warning about EAGAIN and EWOULDBLOCK being equal

olsrd_info.c: In function ‘write_data’:
olsrd_info.c:374:48: error: logical ‘or’ of equal expressions [-Werror=logical-op]
     if ((result < 0) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) {
                                                ^~

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobuild: add -Wmissing-include-path
Ferry Huberts [Wed, 15 Jun 2016 22:22:15 +0000 (00:22 +0200)]
build: add -Wmissing-include-path

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: add support for the pud plugin position
Ferry Huberts [Tue, 14 Jun 2016 06:20:11 +0000 (08:20 +0200)]
jsoninfo: add support for the pud plugin position

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: add support for the pud plugin position
Ferry Huberts [Mon, 13 Jun 2016 14:13:38 +0000 (16:13 +0200)]
info: add support for the pud plugin position

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: be a bit more lenient in the helpers w.r.t. NULL values
Ferry Huberts [Tue, 14 Jun 2016 20:47:52 +0000 (22:47 +0200)]
jsoninfo: be a bit more lenient in the helpers w.r.t. NULL values

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agonmealib: fix a warning
Ferry Huberts [Tue, 14 Jun 2016 20:32:16 +0000 (22:32 +0200)]
nmealib: fix a warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: allow all 'type' helpers without a key
Ferry Huberts [Tue, 14 Jun 2016 08:32:55 +0000 (10:32 +0200)]
jsoninfo: allow all 'type' helpers without a key

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: use new nmealib *_to_string helper functions
Ferry Huberts [Mon, 13 Jun 2016 21:42:40 +0000 (23:42 +0200)]
httpinfo: use new nmealib *_to_string helper functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: use the normal nmea_INFO_is_present function
Ferry Huberts [Mon, 13 Jun 2016 12:05:56 +0000 (14:05 +0200)]
httpinfo: use the normal nmea_INFO_is_present function

Not a local copy of it.

And a minor type fix.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobuild: get rid of HTTPINFO_PUD define
Ferry Huberts [Mon, 13 Jun 2016 11:54:33 +0000 (13:54 +0200)]
build: get rid of HTTPINFO_PUD define

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agonmealib: add some *_to_string helper functions
Ferry Huberts [Mon, 13 Jun 2016 21:42:14 +0000 (23:42 +0200)]
nmealib: add some *_to_string helper functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agonmealib: make nmea_INFO_is_present an INLINE function
Ferry Huberts [Mon, 13 Jun 2016 13:41:48 +0000 (15:41 +0200)]
nmealib: make nmea_INFO_is_present an INLINE function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agonmealib: fix an extern C
Ferry Huberts [Tue, 14 Jun 2016 05:56:30 +0000 (07:56 +0200)]
nmealib: fix an extern C

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: always output the PID
Ferry Huberts [Wed, 8 Jun 2016 12:44:43 +0000 (14:44 +0200)]
jsoninfo: always output the PID

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge branch 'release-0.9.0'
Ferry Huberts [Fri, 3 Jun 2016 17:08:21 +0000 (19:08 +0200)]
Merge branch 'release-0.9.0'

* release-0.9.0:
  scheduler: make olsr_flush_timers more robust
  scheduler: do not stop timers that are not running
  scheduler: fix a typo
  main: cleanup the gateways earlier on shutdown
  scheduler: fix olsr_flush_timers to not hang
  main: ensure all timers are stopped in shutdown
  scheduler: mark timers for removal and only remove them in a cleanup walk

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoREADME-Olsr-Extensions: add the -w option to the iptables examples
Ferry Huberts [Fri, 3 Jun 2016 14:55:22 +0000 (16:55 +0200)]
README-Olsr-Extensions: add the -w option to the iptables examples

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoabuf: use a define for the maximum size
Ferry Huberts [Thu, 26 Nov 2015 21:40:58 +0000 (22:40 +0100)]
abuf: use a define for the maximum size

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoabuf: no need to set buf[0] to '\0', calloc already did that
Ferry Huberts [Thu, 26 Nov 2015 21:46:15 +0000 (22:46 +0100)]
abuf: no need to set buf[0] to '\0', calloc already did that

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoautobuf: format code
Ferry Huberts [Thu, 2 Jun 2016 20:21:52 +0000 (22:21 +0200)]
autobuf: format code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge branch 'fixes-pulled-apart' into fixes
Ferry Huberts [Thu, 2 Jun 2016 20:07:59 +0000 (22:07 +0200)]
Merge branch 'fixes-pulled-apart' into fixes

* fixes-pulled-apart:
  lq_plugin: do not confuse malloc size with name size
  linux: improve some strscy() calls
  quagga: improve some strscy() calls
  autobuf: just use memcpy instead of strcpy
  common: refactor _internal_strscpy in strscat/cpy
  common: be paranoid about incoming parameters in strscat/cpy
  common: rename a variable in strscat/cpy
  common: do not invoke _internal_strscpy in strscat when not enough space
  common: let the compiler decide how to place variables in strscat/cpy
  common: rename a variable in strscat/cpy
  common: add some asserts to strscat/cpy
  common: strscat/cpy are simple wrappers around the same function
  common: add comments to strscat/cpy functions
  common: move strscat/cpy to a file of their own
  cfgparser: simplify Makefile a bit
  ipcalc: protect prefix_to_netmask against invalid input

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolq_plugin: do not confuse malloc size with name size
Ferry Huberts [Thu, 2 Jun 2016 19:01:48 +0000 (21:01 +0200)]
lq_plugin: do not confuse malloc size with name size

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolinux: improve some strscy() calls
Ferry Huberts [Thu, 2 Jun 2016 18:58:27 +0000 (20:58 +0200)]
linux: improve some strscy() calls

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoquagga: improve some strscy() calls
Ferry Huberts [Thu, 2 Jun 2016 18:57:50 +0000 (20:57 +0200)]
quagga: improve some strscy() calls

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoautobuf: just use memcpy instead of strcpy
Ferry Huberts [Thu, 2 Jun 2016 17:00:21 +0000 (19:00 +0200)]
autobuf: just use memcpy instead of strcpy

All sizes are checked and guaranteed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocommon: refactor _internal_strscpy in strscat/cpy
Ferry Huberts [Thu, 2 Jun 2016 19:19:57 +0000 (21:19 +0200)]
common: refactor _internal_strscpy in strscat/cpy

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocommon: be paranoid about incoming parameters in strscat/cpy
Ferry Huberts [Thu, 2 Jun 2016 17:24:48 +0000 (19:24 +0200)]
common: be paranoid about incoming parameters in strscat/cpy

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocommon: rename a variable in strscat/cpy
Ferry Huberts [Thu, 2 Jun 2016 16:36:12 +0000 (18:36 +0200)]
common: rename a variable in strscat/cpy

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocommon: do not invoke _internal_strscpy in strscat when not enough space
Ferry Huberts [Thu, 2 Jun 2016 19:05:17 +0000 (21:05 +0200)]
common: do not invoke _internal_strscpy in strscat when not enough space

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocommon: let the compiler decide how to place variables in strscat/cpy
Ferry Huberts [Thu, 2 Jun 2016 16:27:45 +0000 (18:27 +0200)]
common: let the compiler decide how to place variables in strscat/cpy

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