Ferry Huberts [Tue, 3 Jan 2017 10:31:39 +0000 (11:31 +0100)]
info: allow a small delay between connection accept and request arrival
To compensate for slow networks and far-away nodes
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 3 Jan 2017 10:10:16 +0000 (11:10 +0100)]
info: fix drain_request to not block
Otherwise the whole of olsrd is blocked, since it's single-threaded
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 3 Jan 2017 10:08:40 +0000 (11:08 +0100)]
info: add a comment about the size of the receive buffer
The maximum size really is a most the size of a single IP packet,
it is the assumption on which the code is designed. The request must
be in the first packet on the connection.
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 3 Jan 2017 10:06:44 +0000 (11:06 +0100)]
info: move a comment
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 3 Jan 2017 09:38:37 +0000 (10:38 +0100)]
info: fix levels of a few debug messages
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Mon, 2 Jan 2017 15:37:31 +0000 (16:37 +0100)]
jsoninfo: add cli arguments to the config object
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Sun, 25 Dec 2016 12:44:00 +0000 (13:44 +0100)]
jsoninfo: always output the configuration checksum
So that the client knows when it has changed and thus when to
re-fetch the configuration related (startup) objects.
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Sun, 25 Dec 2016 13:30:49 +0000 (14:30 +0100)]
main: save argc and argv for later use
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>