olsrd.git
2 years agoadded client linger timeout telnet_core
Christian Pointner [Mon, 25 Mar 2013 15:46:14 +0000 (16:46 +0100)]
added client linger timeout

2 years agotelnet client free function
Christian Pointner [Sun, 24 Mar 2013 10:22:05 +0000 (11:22 +0100)]
telnet client free function

2 years agointroduced client state (cleaner remove handling)
Christian Pointner [Sat, 23 Mar 2013 19:10:03 +0000 (20:10 +0100)]
introduced client state (cleaner remove handling)
fixed client remove memory error

2 years agoalso removing clients when connection is closed
Christian Pointner [Fri, 22 Mar 2013 18:03:05 +0000 (19:03 +0100)]
also removing clients when connection is closed

2 years agoupdated telnet-plugin after function rename
Christian Pointner [Fri, 22 Mar 2013 17:54:43 +0000 (18:54 +0100)]
updated telnet-plugin after function rename

2 years agoadded telnet client functions
Christian Pointner [Fri, 22 Mar 2013 17:54:09 +0000 (18:54 +0100)]
added telnet client functions

2 years agobasic version for telnet/remote-control plugin
Christian Pointner [Fri, 22 Mar 2013 15:01:02 +0000 (16:01 +0100)]
basic version for telnet/remote-control plugin

2 years agoinitial version of telnet server part
Christian Pointner [Fri, 22 Mar 2013 14:36:03 +0000 (15:36 +0100)]
initial version of telnet server part

2 years agoadded olsr_telnet.[ch]
Christian Pointner [Fri, 22 Mar 2013 13:54:23 +0000 (14:54 +0100)]
added olsr_telnet.[ch]

2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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

2 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)

2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 years agocommon: rename a variable in strscat/cpy
Ferry Huberts [Thu, 2 Jun 2016 16:26:56 +0000 (18:26 +0200)]
common: rename a variable in strscat/cpy

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: add some asserts to strscat/cpy
Ferry Huberts [Thu, 2 Jun 2016 19:33:00 +0000 (21:33 +0200)]
common: add some asserts to strscat/cpy

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: strscat/cpy are simple wrappers around the same function
Ferry Huberts [Thu, 2 Jun 2016 17:13:11 +0000 (19:13 +0200)]
common: strscat/cpy are simple wrappers around the same function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: add comments to strscat/cpy functions
Ferry Huberts [Thu, 2 Jun 2016 16:19:19 +0000 (18:19 +0200)]
common: add comments to strscat/cpy functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: move strscat/cpy to a file of their own
Ferry Huberts [Thu, 2 Jun 2016 17:16:11 +0000 (19:16 +0200)]
common: move strscat/cpy to a file of their own

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocfgparser: simplify Makefile a bit
Ferry Huberts [Thu, 2 Jun 2016 17:08:42 +0000 (19:08 +0200)]
cfgparser: simplify Makefile a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agoipcalc: protect prefix_to_netmask against invalid input
Ferry Huberts [Fri, 6 Nov 2015 09:25:25 +0000 (10:25 +0100)]
ipcalc: protect prefix_to_netmask against invalid input

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: make the paranoid check exit a bit friendlier
Ferry Huberts [Thu, 2 Jun 2016 20:01:13 +0000 (22:01 +0200)]
common: make the paranoid check exit a bit friendlier

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: remove some comments on asserts
Ferry Huberts [Thu, 2 Jun 2016 19:56:42 +0000 (21:56 +0200)]
common: remove some comments on asserts

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: make an exit condition in strscat more readable
Ferry Huberts [Thu, 2 Jun 2016 19:56:04 +0000 (21:56 +0200)]
common: make an exit condition in strscat more readable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: more asserts
Ferry Huberts [Thu, 2 Jun 2016 19:54:48 +0000 (21:54 +0200)]
common: more asserts

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: add a comment
Ferry Huberts [Thu, 2 Jun 2016 19:54:19 +0000 (21:54 +0200)]
common: add a comment

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: code formatting
Ferry Huberts [Thu, 2 Jun 2016 19:53:07 +0000 (21:53 +0200)]
common: code formatting

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: fix an include file guard
Ferry Huberts [Thu, 2 Jun 2016 19:49:06 +0000 (21:49 +0200)]
common: fix an include file guard

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agocommon: fix file headers
Ferry Huberts [Thu, 2 Jun 2016 20:03:19 +0000 (22:03 +0200)]
common: fix file headers

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agodefs: remove an unused include
Ferry Huberts [Thu, 2 Jun 2016 19:49:47 +0000 (21:49 +0200)]
defs: remove an unused include

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2 years agoFix cfgparser makefile
Henning Rogge [Fri, 25 Apr 2014 13:34:54 +0000 (15:34 +0200)]
Fix cfgparser makefile

2 years agoBuffer for quagga was too long (1 byte)
Henning Rogge [Fri, 25 Apr 2014 13:19:14 +0000 (15:19 +0200)]
Buffer for quagga was too long (1 byte)

2 years agoFix some strscy() calls or make them more readable
Henning Rogge [Fri, 25 Apr 2014 13:11:20 +0000 (15:11 +0200)]
Fix some strscy() calls or make them more readable

2 years agoAllow for a "soft fail" in non-debug builds
Henning Rogge [Fri, 25 Apr 2014 12:58:42 +0000 (14:58 +0200)]
Allow for a "soft fail" in non-debug builds

2 years agoDon't use strcpy, we don't need checks there anyways.
Henning Rogge [Fri, 25 Apr 2014 12:51:45 +0000 (14:51 +0200)]
Don't use strcpy, we don't need checks there anyways.