olsrd.git
3 years agoquagga: show plugin name and Git SHA in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:48:55 +0000 (16:48 +0200)]
quagga: show plugin name and Git SHA in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoquagga: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:30:35 +0000 (15:30 +0200)]
quagga: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: use Git SHA from builddata
Ferry Huberts [Wed, 13 Apr 2016 13:17:14 +0000 (15:17 +0200)]
pud: use Git SHA from builddata

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopgraph: show Git SHA and no version in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:46:14 +0000 (16:46 +0200)]
pgraph: show Git SHA and no version in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopgraph: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:30:29 +0000 (15:30 +0200)]
pgraph: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agop2pd: show Git SHA and no version in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:43:57 +0000 (16:43 +0200)]
p2pd: show Git SHA and no version in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agonameservice: show Git SHA and no version in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:41:08 +0000 (16:41 +0200)]
nameservice: show Git SHA and no version in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agonameservice: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:30:19 +0000 (15:30 +0200)]
nameservice: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agomini: cleanup
Ferry Huberts [Wed, 13 Apr 2016 14:38:21 +0000 (16:38 +0200)]
mini: cleanup

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agomdns: show Git SHA and no version and no copyright in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:24:43 +0000 (16:24 +0200)]
mdns: show Git SHA and no version and no copyright in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agomdns: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:29:55 +0000 (15:29 +0200)]
mdns: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: show Git SHA and no version in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:21:00 +0000 (16:21 +0200)]
jsoninfo: show Git SHA and no version in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:29:43 +0000 (15:29 +0200)]
jsoninfo: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: show Git SHA and no version and no author in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:18:30 +0000 (16:18 +0200)]
httpinfo: show Git SHA and no version and no author in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:29:34 +0000 (15:29 +0200)]
httpinfo: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agodyn_gw_plain: show Git SHA and no author in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 14:07:12 +0000 (16:07 +0200)]
dyn_gw_plain: show Git SHA and no author in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agodyn_gw: show Git SHA and no version in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 13:48:35 +0000 (15:48 +0200)]
dyn_gw: show Git SHA and no version in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agodyn_gw: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:29:11 +0000 (15:29 +0200)]
dyn_gw: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agodot_draw: show Git SHA in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 13:45:07 +0000 (15:45 +0200)]
dot_draw: show Git SHA in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agodot_draw: do no show version in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 12:58:44 +0000 (14:58 +0200)]
dot_draw: do no show version in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agodot_draw: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:29:01 +0000 (15:29 +0200)]
dot_draw: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: do not show copyright in constructor, Git shows who has copyright
Ferry Huberts [Wed, 13 Apr 2016 13:40:27 +0000 (15:40 +0200)]
bmf: do not show copyright in constructor, Git shows who has copyright

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: show Git SHA in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 13:27:05 +0000 (15:27 +0200)]
bmf: show Git SHA in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: plugin name like other plugins and minor layout change
Ferry Huberts [Wed, 13 Apr 2016 13:25:53 +0000 (15:25 +0200)]
bmf: plugin name like other plugins and minor layout change

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: remove PLUGIN_AUTHOR, Git shows who worked on it
Ferry Huberts [Wed, 13 Apr 2016 13:22:41 +0000 (15:22 +0200)]
bmf: remove PLUGIN_AUTHOR, Git shows who worked on it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: do no show version in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 12:44:07 +0000 (14:44 +0200)]
bmf: do no show version in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: use PLUGIN_NAME_SHORT in logs
Ferry Huberts [Wed, 13 Apr 2016 12:51:43 +0000 (14:51 +0200)]
bmf: use PLUGIN_NAME_SHORT in logs

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoarprefresh: show Git SHA in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 13:27:14 +0000 (15:27 +0200)]
arprefresh: show Git SHA in plugin constructor

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: only try to match supported commands
Ferry Huberts [Tue, 12 Apr 2016 15:44:52 +0000 (17:44 +0200)]
info: only try to match supported commands

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: stop evaluating send_what when all information has been processed
Ferry Huberts [Tue, 12 Apr 2016 15:30:10 +0000 (17:30 +0200)]
info: stop evaluating send_what when all information has been processed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: fix send_what for empty requests
Ferry Huberts [Tue, 12 Apr 2016 19:00:22 +0000 (21:00 +0200)]
info: fix send_what for empty requests

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: add the define SIW_EVERYTHING
Ferry Huberts [Wed, 13 Apr 2016 07:22:13 +0000 (09:22 +0200)]
info: add the define SIW_EVERYTHING

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: make defines for SIW_* constants a bit clearer
Ferry Huberts [Tue, 12 Apr 2016 19:39:45 +0000 (21:39 +0200)]
info: make defines for SIW_* constants a bit clearer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: simplify get_gwcost_scaled
Ferry Huberts [Tue, 12 Apr 2016 13:11:55 +0000 (15:11 +0200)]
sgw: simplify get_gwcost_scaled

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: show the scaled gw cost in gateways|sgw
Ferry Huberts [Sun, 10 Apr 2016 20:31:57 +0000 (22:31 +0200)]
jsoninfo: show the scaled gw cost in gateways|sgw

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agojsoninfo: show scaled route/link cost in gateways|sgw|links|routes|topology
Ferry Huberts [Mon, 11 Apr 2016 10:27:09 +0000 (12:27 +0200)]
jsoninfo: show scaled route/link cost in gateways|sgw|links|routes|topology

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agotxtinfo: show the scaled gw cost in the sgw output
Ferry Huberts [Mon, 11 Apr 2016 10:13:09 +0000 (12:13 +0200)]
txtinfo: show the scaled gw cost in the sgw output

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agotxtinfo: show the scaled route cost in the sgw output
Ferry Huberts [Mon, 11 Apr 2016 10:07:40 +0000 (12:07 +0200)]
txtinfo: show the scaled route cost in the sgw output

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: show the scaled gw cost in the sgw pane
Ferry Huberts [Mon, 11 Apr 2016 10:02:12 +0000 (12:02 +0200)]
httpinfo: show the scaled gw cost in the sgw pane

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: show the scaled route cost in the sgw pane
Ferry Huberts [Mon, 11 Apr 2016 09:55:21 +0000 (11:55 +0200)]
httpinfo: show the scaled route cost in the sgw pane

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: show the scaled gw cost in the program status file
Ferry Huberts [Sun, 10 Apr 2016 20:19:45 +0000 (22:19 +0200)]
sgw: show the scaled gw cost in the program status file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: show the scaled route cost in the program status file
Ferry Huberts [Mon, 11 Apr 2016 09:57:08 +0000 (11:57 +0200)]
sgw: show the scaled route cost in the program status file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: add get_gwcost_scaled and get_gwcost_text functions
Ferry Huberts [Sun, 10 Apr 2016 19:53:22 +0000 (21:53 +0200)]
sgw: add get_gwcost_scaled and get_gwcost_text functions

For later use

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: show the route costs text in log messages
Ferry Huberts [Mon, 11 Apr 2016 08:24:24 +0000 (10:24 +0200)]
sgw: show the route costs text in log messages

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: fix currEtx type and link/route confusion
Ferry Huberts [Sun, 10 Apr 2016 19:26:24 +0000 (21:26 +0200)]
bmf: fix currEtx type and link/route confusion

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agomain: initialise sgw system after the tables
Ferry Huberts [Mon, 11 Apr 2016 12:39:31 +0000 (14:39 +0200)]
main: initialise sgw system after the tables

To prevent a NULL deref of active_lq_handler in get_linkcost_text

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolq: minor optimisation
Ferry Huberts [Mon, 11 Apr 2016 12:45:12 +0000 (14:45 +0200)]
lq: minor optimisation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolq: add get_linkcost_scaled function
Ferry Huberts [Mon, 11 Apr 2016 10:19:40 +0000 (12:19 +0200)]
lq: add get_linkcost_scaled function

For later use

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolq plugins: remove print_cost, use get_cost_scaled in generic function
Ferry Huberts [Sat, 9 Apr 2016 14:29:10 +0000 (16:29 +0200)]
lq plugins: remove print_cost, use get_cost_scaled in generic function

The were all the same

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolq plugins: make the print_cost_float functions behave the same
Ferry Huberts [Sat, 9 Apr 2016 12:33:34 +0000 (14:33 +0200)]
lq plugins: make the print_cost_float functions behave the same

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolq plugins: add get_cost_scaled function
Ferry Huberts [Sat, 9 Apr 2016 12:24:45 +0000 (14:24 +0200)]
lq plugins: add get_cost_scaled function

For later use

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agofpm: add fpmtod function
Ferry Huberts [Sat, 9 Apr 2016 12:25:08 +0000 (14:25 +0200)]
fpm: add fpmtod function

For later use

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolq plugins: explicit unsigned for LINK_COST_BROKEN and ROUTE_COST_BROKEN
Ferry Huberts [Sat, 9 Apr 2016 21:36:05 +0000 (23:36 +0200)]
lq plugins: explicit unsigned for LINK_COST_BROKEN and ROUTE_COST_BROKEN

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolq plugins: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN
Ferry Huberts [Sat, 9 Apr 2016 21:36:57 +0000 (23:36 +0200)]
lq plugins: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN
Ferry Huberts [Sat, 9 Apr 2016 21:37:35 +0000 (23:37 +0200)]
sgw: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agopud: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN
Ferry Huberts [Sat, 9 Apr 2016 21:37:43 +0000 (23:37 +0200)]
pud: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agorouting table: safer checking against LINK_COST_BROKEN & ROUTE_COST_BROKEN
Ferry Huberts [Sat, 9 Apr 2016 21:37:23 +0000 (23:37 +0200)]
routing table: safer checking against LINK_COST_BROKEN & ROUTE_COST_BROKEN

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agospf: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN
Ferry Huberts [Sat, 9 Apr 2016 21:37:06 +0000 (23:37 +0200)]
spf: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agospf: tc->path_cost is a route cost, fix level 2 OLSR_PRINTF messages
Ferry Huberts [Sun, 10 Apr 2016 18:53:38 +0000 (20:53 +0200)]
spf: tc->path_cost is a route cost, fix level 2 OLSR_PRINTF messages

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agosgw: remove struct costs_weights and max_cost_etx_max from the costs API
Ferry Huberts [Sun, 10 Apr 2016 18:38:29 +0000 (20:38 +0200)]
sgw: remove struct costs_weights and max_cost_etx_max from the costs API

They all come from olsr_cnf, use them directly.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: lazily initialise the cache
Ferry Huberts [Fri, 8 Apr 2016 08:27:25 +0000 (10:27 +0200)]
info: lazily initialise the cache

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: completely switch of caching for timeouts <= 0
Ferry Huberts [Fri, 8 Apr 2016 07:59:29 +0000 (09:59 +0200)]
info: completely switch of caching for timeouts <= 0

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: reflect that the SIW defines are 64 bit wide
Ferry Huberts [Thu, 7 Apr 2016 21:42:19 +0000 (23:42 +0200)]
info: reflect that the SIW defines are 64 bit wide

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: minor fix
Ferry Huberts [Thu, 7 Apr 2016 21:00:34 +0000 (23:00 +0200)]
info: minor fix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add support for caching and use it
Ferry Huberts [Thu, 7 Apr 2016 18:44:16 +0000 (20:44 +0200)]
info: add support for caching and use it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoscheduler: export the olsr_times function
Ferry Huberts [Thu, 7 Apr 2016 17:29:41 +0000 (19:29 +0200)]
scheduler: export the olsr_times function

Will need it later

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocfgfile: cache the generated configuration file
Ferry Huberts [Thu, 7 Apr 2016 17:30:40 +0000 (19:30 +0200)]
cfgfile: cache the generated configuration file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoabuf: add abuf_concat function
Ferry Huberts [Thu, 7 Apr 2016 11:13:14 +0000 (13:13 +0200)]
abuf: add abuf_concat function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoplugin util: add set_plugin_long function
Ferry Huberts [Thu, 7 Apr 2016 19:31:23 +0000 (21:31 +0200)]
plugin util: add set_plugin_long function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoplugin util: make set_plugin_boolean actually set a bool
Ferry Huberts [Thu, 7 Apr 2016 19:01:37 +0000 (21:01 +0200)]
plugin util: make set_plugin_boolean actually set a bool

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: make SIW_ENTRIES accessible from other functions
Ferry Huberts [Thu, 7 Apr 2016 16:35:32 +0000 (18:35 +0200)]
info: make SIW_ENTRIES accessible from other functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: make the INFO_PLUGIN_CONFIG_PLUGIN_PARAMETERS a bit safer
Ferry Huberts [Thu, 7 Apr 2016 18:56:09 +0000 (20:56 +0200)]
info: make the INFO_PLUGIN_CONFIG_PLUGIN_PARAMETERS a bit safer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: move some type delcarations up in a header file
Ferry Huberts [Thu, 7 Apr 2016 16:32:08 +0000 (18:32 +0200)]
info: move some type delcarations up in a header file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: fix a type
Ferry Huberts [Thu, 7 Apr 2016 16:36:44 +0000 (18:36 +0200)]
info: fix a type

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: use AUTOBUFCHUNK instead of hard-coding it
Ferry Huberts [Thu, 7 Apr 2016 17:32:23 +0000 (19:32 +0200)]
info: use AUTOBUFCHUNK instead of hard-coding it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: minor layout improvements
Ferry Huberts [Thu, 7 Apr 2016 19:06:16 +0000 (21:06 +0200)]
info: minor layout improvements

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: remove some dead code left over in the previous commit
Ferry Huberts [Thu, 7 Apr 2016 17:38:35 +0000 (19:38 +0200)]
sgw: remove some dead code left over in the previous commit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: do not show unused tunnels in the status file
Ferry Huberts [Thu, 7 Apr 2016 10:51:00 +0000 (12:51 +0200)]
sgw: do not show unused tunnels in the status file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agomake: improve jsoninfo and txtinfo dependencies on info
Ferry Huberts [Tue, 5 Apr 2016 19:46:57 +0000 (21:46 +0200)]
make: improve jsoninfo and txtinfo dependencies on info

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: in /sgw separate prefixes and their lengths
Ferry Huberts [Tue, 29 Mar 2016 14:44:30 +0000 (16:44 +0200)]
jsoninfo: in /sgw separate prefixes and their lengths

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: do not null-deref prefix in abuf_json_prefix
Ferry Huberts [Tue, 29 Mar 2016 12:10:16 +0000 (14:10 +0200)]
jsoninfo: do not null-deref prefix in abuf_json_prefix

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: also show egress information in /sgw
Ferry Huberts [Tue, 29 Mar 2016 07:46:40 +0000 (09:46 +0200)]
jsoninfo: also show egress information in /sgw

SO that the same information is shown as in the sgw status file.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: add isEgressSelected function
Ferry Huberts [Tue, 29 Mar 2016 07:47:07 +0000 (09:47 +0200)]
sgw: add isEgressSelected function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: rename json helpers files
Ferry Huberts [Tue, 29 Mar 2016 06:45:46 +0000 (08:45 +0200)]
info: rename json helpers files

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: move iterating over a table of siw/function entries into a function
Ferry Huberts [Mon, 28 Mar 2016 15:54:19 +0000 (17:54 +0200)]
info: move iterating over a table of siw/function entries into a function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: minor layout improvements
Ferry Huberts [Mon, 28 Mar 2016 15:52:20 +0000 (17:52 +0200)]
info: minor layout improvements

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add abuf_json_prefix json helper
Ferry Huberts [Mon, 28 Mar 2016 11:07:13 +0000 (13:07 +0200)]
info: add abuf_json_prefix json helper

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: move json helpers here from jsoninfo
Ferry Huberts [Mon, 28 Mar 2016 10:02:48 +0000 (12:02 +0200)]
info: move json helpers here from jsoninfo

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: update a comment
Ferry Huberts [Thu, 24 Mar 2016 17:21:39 +0000 (18:21 +0100)]
sgw: update a comment

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoRevert "sgw: fix a mask in the sgw status file"
Ferry Huberts [Thu, 24 Mar 2016 17:13:17 +0000 (18:13 +0100)]
Revert "sgw: fix a mask in the sgw status file"

This reverts commit 3f329381a1d4edb3988cf84daa1bf85c586d42a0.

4 years agosgw: fix a mask in the sgw status file
Ferry Huberts [Thu, 24 Mar 2016 16:57:17 +0000 (17:57 +0100)]
sgw: fix a mask in the sgw status file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: fix a typo in /config
Ferry Huberts [Thu, 24 Mar 2016 11:52:46 +0000 (12:52 +0100)]
jsoninfo: fix a typo in /config

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: remove a derived field from the /config output
Ferry Huberts [Tue, 22 Mar 2016 15:33:36 +0000 (16:33 +0100)]
jsoninfo: remove a derived field from the /config output

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: in /config rename sgw weight section to costsCalculation
Ferry Huberts [Mon, 21 Mar 2016 14:18:17 +0000 (15:18 +0100)]
jsoninfo: in /config rename sgw weight section to costsCalculation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: improve /config
Ferry Huberts [Mon, 21 Mar 2016 13:38:55 +0000 (14:38 +0100)]
jsoninfo: improve /config

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: allow key to be NULL when printing a string
Ferry Huberts [Fri, 18 Mar 2016 16:34:19 +0000 (17:34 +0100)]
jsoninfo: allow key to be NULL when printing a string

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: in /interfaces show message times like validity times
Ferry Huberts [Fri, 18 Mar 2016 13:26:01 +0000 (14:26 +0100)]
jsoninfo: in /interfaces show message times like validity times

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: remove an obsolete comment
Ferry Huberts [Fri, 18 Mar 2016 12:58:22 +0000 (13:58 +0100)]
jsoninfo: remove an obsolete comment

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: in /interfaces use the new IP address helper function
Ferry Huberts [Fri, 18 Mar 2016 12:57:40 +0000 (13:57 +0100)]
jsoninfo: in /interfaces use the new IP address helper function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: in /interfaces show 'state' text as 'up' boolean
Ferry Huberts [Fri, 18 Mar 2016 12:57:18 +0000 (13:57 +0100)]
jsoninfo: in /interfaces show 'state' text as 'up' boolean

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