olsrd.git
4 years agoinfo: simplify send_info function
Ferry Huberts [Sat, 20 Feb 2016 21:36:13 +0000 (22:36 +0100)]
info: simplify send_info function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: introduce and use ARRAY_SIZE define
Ferry Huberts [Sat, 20 Feb 2016 21:35:56 +0000 (22:35 +0100)]
info: introduce and use ARRAY_SIZE define

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: do not send buffers of zero length, wget can't handle that
Ferry Huberts [Sat, 20 Feb 2016 20:47:13 +0000 (21:47 +0100)]
info: do not send buffers of zero length, wget can't handle that

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: fix send result error check in write_data
Ferry Huberts [Sat, 20 Feb 2016 20:48:54 +0000 (21:48 +0100)]
info: fix send result error check in write_data

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: minor update to the README
Ferry Huberts [Sat, 20 Feb 2016 08:31:14 +0000 (09:31 +0100)]
info: minor update to the README

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: extract printing a gateway to a function
Ferry Huberts [Fri, 19 Feb 2016 16:36:03 +0000 (17:36 +0100)]
jsoninfo: extract printing a gateway to a function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: review /links and show more information
Ferry Huberts [Fri, 19 Feb 2016 15:37:15 +0000 (16:37 +0100)]
jsoninfo: review /links and show more information

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: also show local HNAs, like txtinfo does
Ferry Huberts [Fri, 19 Feb 2016 15:03:10 +0000 (16:03 +0100)]
jsoninfo: also show local HNAs, like txtinfo does

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: also show the hops for /sgw, like for /gateways
Ferry Huberts [Fri, 19 Feb 2016 13:09:43 +0000 (14:09 +0100)]
jsoninfo: also show the hops for /sgw, like for /gateways

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: protect against a possible null-deref in ipc_print_neighbors
Ferry Huberts [Fri, 19 Feb 2016 12:32:43 +0000 (13:32 +0100)]
jsoninfo: protect against a possible null-deref in ipc_print_neighbors

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: protect abuf_json_ip_address against a NULL IP address
Ferry Huberts [Fri, 19 Feb 2016 12:25:23 +0000 (13:25 +0100)]
jsoninfo: protect abuf_json_ip_address against a NULL IP address

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: add forgotten 2hop in function table
Ferry Huberts [Fri, 19 Feb 2016 13:55:34 +0000 (14:55 +0100)]
jsoninfo: add forgotten 2hop  in function table

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: add forgotten 2hop in function table
Ferry Huberts [Fri, 19 Feb 2016 13:55:24 +0000 (14:55 +0100)]
txtinfo: add forgotten 2hop  in function table

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: review /hna
Ferry Huberts [Fri, 19 Feb 2016 13:02:10 +0000 (14:02 +0100)]
txtinfo: review /hna

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: review /nei and /2ho
Ferry Huberts [Fri, 19 Feb 2016 13:01:58 +0000 (14:01 +0100)]
txtinfo: review /nei and /2ho

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: review /lin
Ferry Huberts [Fri, 19 Feb 2016 12:48:48 +0000 (13:48 +0100)]
txtinfo: review /lin

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: be less strict about satellite elevation
Ferry Huberts [Fri, 19 Feb 2016 16:49:53 +0000 (17:49 +0100)]
pud: nmealib: be less strict about satellite elevation

Sometimes satellites are seen with elevation -91

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoifnet: ensure string termination
Ferry Huberts [Wed, 17 Feb 2016 17:58:44 +0000 (18:58 +0100)]
ifnet: ensure string termination

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoFix 2 Coverity warnings
Ferry Huberts [Wed, 17 Feb 2016 12:53:09 +0000 (13:53 +0100)]
Fix 2 Coverity warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoall: use the getInterfaceLinkState function
Ferry Huberts [Wed, 10 Feb 2016 13:19:01 +0000 (14:19 +0100)]
all: use the getInterfaceLinkState function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoifnet: add getInterfaceLinkState function
Ferry Huberts [Wed, 10 Feb 2016 13:17:59 +0000 (14:17 +0100)]
ifnet: add getInterfaceLinkState function

This Linux-only function queries a network interface to see if it has a
carrier (cable (dis)connected, medium up/down, etc).

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolinux: netlink_process_link: simplify an if/else
Ferry Huberts [Wed, 10 Feb 2016 12:49:34 +0000 (13:49 +0100)]
linux: netlink_process_link: simplify an if/else

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolinux: netlink_process_link: compute up status only once
Ferry Huberts [Wed, 10 Feb 2016 12:48:41 +0000 (13:48 +0100)]
linux: netlink_process_link: compute up status only once

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolinux: netlink_process_link: simplify a comparison
Ferry Huberts [Wed, 10 Feb 2016 12:22:26 +0000 (13:22 +0100)]
linux: netlink_process_link: simplify a comparison

To make it easier to read

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolinux: netlink_process_link: always determine the oif
Ferry Huberts [Wed, 10 Feb 2016 09:47:57 +0000 (10:47 +0100)]
linux: netlink_process_link: always determine the oif

This simplifies it a bit more.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolinux: netlink_process_link: always determine the interface name
Ferry Huberts [Wed, 10 Feb 2016 09:45:58 +0000 (10:45 +0100)]
linux: netlink_process_link: always determine the interface name

This simplifies it a bit more.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolinux: netlink_process_link: simplify NULL comparisons and add some braces
Ferry Huberts [Wed, 10 Feb 2016 09:38:46 +0000 (10:38 +0100)]
linux: netlink_process_link: simplify NULL comparisons and add some braces

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoifnet: remove unused function set_flag
Ferry Huberts [Wed, 10 Feb 2016 10:23:08 +0000 (11:23 +0100)]
ifnet: remove unused function set_flag

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoAdd a safety net in the segfault handler
Ferry Huberts [Sun, 7 Feb 2016 21:09:27 +0000 (22:09 +0100)]
Add a safety net in the segfault handler

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agomain: add & enable a new SEGV handler (Linux only)
Ferry Huberts [Sun, 7 Feb 2016 11:27:26 +0000 (12:27 +0100)]
main: add & enable a new SEGV handler (Linux only)

It outputs the stack trace to syslog and then tries to
clean up through olsr_shutdown.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: fix processing of command per HTTP request
Ferry Huberts [Thu, 4 Feb 2016 10:00:20 +0000 (11:00 +0100)]
info: fix processing of command per HTTP request

Reported-by: Bastian Bittorf <bittorf@bluebottle.com>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: do not try to interpret the request when it is too large
Ferry Huberts [Thu, 4 Feb 2016 09:48:33 +0000 (10:48 +0100)]
info: do not try to interpret the request when it is too large

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocookie: split assert to see which part actually triggers the assert
Ferry Huberts [Sat, 30 Jan 2016 07:54:42 +0000 (08:54 +0100)]
cookie: split assert to see which part actually triggers the assert

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoCHANGELOG: add a note about txtinfo and jsoninfo being merged
Ferry Huberts [Wed, 27 Jan 2016 14:33:10 +0000 (15:33 +0100)]
CHANGELOG: add a note about txtinfo and jsoninfo being merged

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: strip EOLs from the command
Ferry Huberts [Tue, 5 Jan 2016 10:35:48 +0000 (11:35 +0100)]
info: strip EOLs from the command

After commits dc2719d and 20ed604 this is needed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: review of /hna
Ferry Huberts [Mon, 4 Jan 2016 10:32:27 +0000 (11:32 +0100)]
txtinfo: review of /hna

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: review of /hna
Ferry Huberts [Mon, 4 Jan 2016 10:32:14 +0000 (11:32 +0100)]
jsoninfo: review of /hna

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: use strcmp instead of strstr
Ferry Huberts [Mon, 4 Jan 2016 07:30:58 +0000 (08:30 +0100)]
jsoninfo: use strcmp instead of strstr

To avoid matching on substrings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: use strcmp instead of strstr
Ferry Huberts [Mon, 4 Jan 2016 07:30:52 +0000 (08:30 +0100)]
txtinfo: use strcmp instead of strstr

To avoid matching on substrings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoModify .gitignore file to keep full default example
Henning Rogge [Wed, 9 Dec 2015 10:54:52 +0000 (11:54 +0100)]
Modify .gitignore file to keep full default example

4 years agoMerge branch 'master' of git://olsr.org/olsrd
Henning Rogge [Wed, 9 Dec 2015 10:54:02 +0000 (11:54 +0100)]
Merge branch 'master' of git://olsr.org/olsrd

4 years agoConfiguration file cleanup
Henning Rogge [Wed, 9 Dec 2015 10:51:49 +0000 (11:51 +0100)]
Configuration file cleanup

Rename "full" config file (its not full anymore, its default only)
Add txtinfo to default configuration examples
Add some more explanation to README

4 years agoall: fixes resulting from building with clang
Ferry Huberts [Wed, 9 Dec 2015 09:02:27 +0000 (10:02 +0100)]
all: fixes resulting from building with clang

Used clang 3.7.0-1 on Fedora 23

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agomake: support building with clang (on Linux)
Ferry Huberts [Wed, 9 Dec 2015 09:32:03 +0000 (10:32 +0100)]
make: support building with clang (on Linux)

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agofiles: clarify why jsoninfo is in the example configuration files
Ferry Huberts [Wed, 9 Dec 2015 10:03:39 +0000 (11:03 +0100)]
files: clarify why jsoninfo is in the example configuration files

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: neighbors/2hop: show more information
Ferry Huberts [Tue, 8 Dec 2015 12:03:44 +0000 (13:03 +0100)]
jsoninfo: neighbors/2hop: show more information

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: only show gateways of the request IP version in /gateways
Ferry Huberts [Thu, 3 Dec 2015 16:03:57 +0000 (17:03 +0100)]
jsoninfo: only show gateways of the request IP version in /gateways

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: minor scope change of 2 variable in /gat
Ferry Huberts [Thu, 3 Dec 2015 15:41:14 +0000 (16:41 +0100)]
txtinfo: minor scope change of 2 variable in /gat

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: do not use tabs in the /gat table, use fixed widths
Ferry Huberts [Thu, 3 Dec 2015 15:40:49 +0000 (16:40 +0100)]
txtinfo: do not use tabs in the /gat table, use fixed widths

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: also print gateways without a tc in /gat
Ferry Huberts [Thu, 3 Dec 2015 14:25:13 +0000 (15:25 +0100)]
txtinfo: also print gateways without a tc in /gat

Like in /sgw

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: minor formatting in /gat
Ferry Huberts [Thu, 3 Dec 2015 14:23:51 +0000 (15:23 +0100)]
txtinfo: minor formatting in /gat

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: simplify some code for /gat
Ferry Huberts [Thu, 3 Dec 2015 14:20:59 +0000 (15:20 +0100)]
txtinfo: simplify some code for /gat

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: move duplicated 'selectable' code into a function
Ferry Huberts [Thu, 3 Dec 2015 15:33:57 +0000 (16:33 +0100)]
jsoninfo: move duplicated 'selectable' code into a function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: refactor /gateways
Ferry Huberts [Thu, 3 Dec 2015 13:29:25 +0000 (14:29 +0100)]
jsoninfo: refactor /gateways

It prints almost the same information as /sgw, so make them look alike

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: add 'selectable' field to /sgw
Ferry Huberts [Thu, 3 Dec 2015 14:44:21 +0000 (15:44 +0100)]
jsoninfo: add 'selectable' field to /sgw

Like /gateways has (there it's called 'u')

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: minor field reordering for /sgw
Ferry Huberts [Thu, 3 Dec 2015 13:20:56 +0000 (14:20 +0100)]
jsoninfo: minor field reordering for /sgw

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agolq plugins: ensure string termination in lq_print_cost functions
Ferry Huberts [Thu, 3 Dec 2015 15:23:06 +0000 (16:23 +0100)]
lq plugins: ensure string termination in lq_print_cost functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: minor improvement to /sgw printing
Ferry Huberts [Thu, 3 Dec 2015 10:34:10 +0000 (11:34 +0100)]
jsoninfo: minor improvement to /sgw printing

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: use the new ip address helper in /sgw printing
Ferry Huberts [Thu, 3 Dec 2015 10:34:34 +0000 (11:34 +0100)]
jsoninfo: use the new ip address helper in /sgw printing

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: add abuf_json_ip_address
Ferry Huberts [Thu, 3 Dec 2015 10:28:43 +0000 (11:28 +0100)]
jsoninfo: helpers: add abuf_json_ip_address

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: minor improvements to /sgw printing
Ferry Huberts [Thu, 3 Dec 2015 11:54:45 +0000 (12:54 +0100)]
txtinfo: minor improvements to /sgw printing

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: remove unused nompr field from the configuration
Ferry Huberts [Thu, 3 Dec 2015 09:25:31 +0000 (10:25 +0100)]
info: remove unused nompr field from the configuration

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: update README
Ferry Huberts [Thu, 3 Dec 2015 10:18:11 +0000 (11:18 +0100)]
jsoninfo: update README

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: update README
Ferry Huberts [Thu, 3 Dec 2015 10:18:22 +0000 (11:18 +0100)]
txtinfo: update README

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: update README
Ferry Huberts [Thu, 3 Dec 2015 10:18:29 +0000 (11:18 +0100)]
info: update README

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: simplify determine_action
Ferry Huberts [Thu, 3 Dec 2015 11:43:05 +0000 (12:43 +0100)]
info: simplify determine_action

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: simplify use of the functions table further
Ferry Huberts [Thu, 3 Dec 2015 11:32:20 +0000 (12:32 +0100)]
info: simplify use of the functions table further

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: simplify setup of the functions table
Ferry Huberts [Thu, 3 Dec 2015 10:51:26 +0000 (11:51 +0100)]
jsoninfo: simplify setup of the functions table

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: simplify setup of the functions table
Ferry Huberts [Thu, 3 Dec 2015 10:51:16 +0000 (11:51 +0100)]
txtinfo: simplify setup of the functions table

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: simplify use of the functions table
Ferry Huberts [Thu, 3 Dec 2015 10:55:47 +0000 (11:55 +0100)]
info: simplify use of the functions table

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: minor reordering in send_info to reflect SIW_x order
Ferry Huberts [Thu, 3 Dec 2015 09:18:09 +0000 (10:18 +0100)]
info: minor reordering in send_info to reflect SIW_x order

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: define the uuidfile extern in the proper place
Ferry Huberts [Wed, 2 Dec 2015 17:48:41 +0000 (18:48 +0100)]
jsoninfo: define the uuidfile extern in the proper place

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: define the vtime extern in the proper place
Ferry Huberts [Wed, 2 Dec 2015 17:50:57 +0000 (18:50 +0100)]
txtinfo: define the vtime extern in the proper place

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: use sizeof() for uuid size
Ferry Huberts [Wed, 2 Dec 2015 15:49:28 +0000 (16:49 +0100)]
jsoninfo: helpers: use sizeof() for uuid size

And make its size a bit less strange.
Plus an extra minor simplification.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: use a double as parameter for abuf_json_float
Ferry Huberts [Wed, 2 Dec 2015 15:40:23 +0000 (16:40 +0100)]
jsoninfo: helpers: use a double as parameter for abuf_json_float

Higher precision

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: use sizeof() for buffers
Ferry Huberts [Wed, 2 Dec 2015 15:31:47 +0000 (16:31 +0100)]
jsoninfo: helpers: use sizeof() for buffers

Plus an extra 'ensure 0 termination'

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: get_string_from_file ensures '\0' in the first byte
Ferry Huberts [Wed, 2 Dec 2015 15:31:12 +0000 (16:31 +0100)]
jsoninfo: helpers: get_string_from_file ensures '\0' in the first byte

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: use an actual bool as parameter for abuf_json_boolean
Ferry Huberts [Wed, 2 Dec 2015 15:19:26 +0000 (16:19 +0100)]
jsoninfo: helpers: use an actual bool as parameter for abuf_json_boolean

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: fix output format for int/long
Ferry Huberts [Wed, 2 Dec 2015 15:18:56 +0000 (16:18 +0100)]
jsoninfo: helpers: fix output format for int/long

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: output floats in full precision
Ferry Huberts [Wed, 2 Dec 2015 16:59:06 +0000 (17:59 +0100)]
jsoninfo: helpers: output floats in full precision

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: use abuf_json_insert_comma
Ferry Huberts [Wed, 2 Dec 2015 15:14:21 +0000 (16:14 +0100)]
jsoninfo: helpers: use abuf_json_insert_comma

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: firm up asserts on currentjsondepth
Ferry Huberts [Wed, 2 Dec 2015 15:08:29 +0000 (16:08 +0100)]
jsoninfo: helpers: firm up asserts on currentjsondepth

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: helpers: minor simplification of abuf_json_new_indent
Ferry Huberts [Wed, 2 Dec 2015 15:06:11 +0000 (16:06 +0100)]
jsoninfo: helpers: minor simplification of abuf_json_new_indent

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: use the function to initialise the config
Ferry Huberts [Wed, 2 Dec 2015 14:49:05 +0000 (15:49 +0100)]
jsoninfo: use the function to initialise the config

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: use the function to initialise the config
Ferry Huberts [Wed, 2 Dec 2015 14:48:59 +0000 (15:48 +0100)]
txtinfo: use the function to initialise the config

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add a function to initialise the config
Ferry Huberts [Wed, 2 Dec 2015 14:48:43 +0000 (15:48 +0100)]
info: add a function to initialise the config

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: remove some unused includes
Ferry Huberts [Wed, 2 Dec 2015 14:53:38 +0000 (15:53 +0100)]
jsoninfo: remove some unused includes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: remove some unused includes
Ferry Huberts [Wed, 2 Dec 2015 14:25:46 +0000 (15:25 +0100)]
txtinfo: remove some unused includes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: rename header files recursive include guards
Ferry Huberts [Wed, 2 Dec 2015 14:11:40 +0000 (15:11 +0100)]
jsoninfo: rename header files recursive include guards

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: rename header files recursive include guards
Ferry Huberts [Wed, 2 Dec 2015 14:11:28 +0000 (15:11 +0100)]
txtinfo: rename header files recursive include guards

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: check against the correct __linux__ define
Ferry Huberts [Wed, 2 Dec 2015 14:29:40 +0000 (15:29 +0100)]
info: check against the correct __linux__ define

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: http headers: add some asserts
Ferry Huberts [Wed, 2 Dec 2015 13:51:01 +0000 (14:51 +0100)]
info: http headers: add some asserts

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: plugin_ipc_init: merge 2 if statements
Ferry Huberts [Wed, 2 Dec 2015 13:47:17 +0000 (14:47 +0100)]
info: plugin_ipc_init: merge 2 if statements

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: plugin_ipc_init: fix a perror message
Ferry Huberts [Wed, 2 Dec 2015 13:41:25 +0000 (14:41 +0100)]
info: plugin_ipc_init: fix a perror message

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: plugin_ipc_init: close the ipc_socket on the error paths
Ferry Huberts [Wed, 2 Dec 2015 13:41:10 +0000 (14:41 +0100)]
info: plugin_ipc_init: close the ipc_socket on the error paths

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: plugin_ipc_init: 'unelse' an else branch, the if already returns
Ferry Huberts [Wed, 2 Dec 2015 13:34:57 +0000 (14:34 +0100)]
info: plugin_ipc_init: 'unelse' an else branch, the if already returns

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: plugin_ipc_init: rename 2 variables
Ferry Huberts [Wed, 2 Dec 2015 13:15:08 +0000 (14:15 +0100)]
info: plugin_ipc_init: rename 2 variables

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: ipc_action: minor fix
Ferry Huberts [Wed, 2 Dec 2015 13:12:33 +0000 (14:12 +0100)]
info: ipc_action: minor fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: ipc_action: use a safer 'oversize' comparison
Ferry Huberts [Wed, 2 Dec 2015 13:12:24 +0000 (14:12 +0100)]
info: ipc_action: use a safer 'oversize' comparison

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: ipc_action: use a static sink buffer
Ferry Huberts [Wed, 2 Dec 2015 13:06:37 +0000 (14:06 +0100)]
info: ipc_action: use a static sink buffer

That is also a bit larger

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