olsrd.git
4 years agoall: allocate autobuf memory in AUTOBUFCHUNK sized chunks
Ferry Huberts [Sat, 16 Apr 2016 19:31:29 +0000 (21:31 +0200)]
all: allocate autobuf memory in AUTOBUFCHUNK sized chunks

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agonetjson: various fixes
Ferry Huberts [Fri, 15 Apr 2016 15:02:08 +0000 (17:02 +0200)]
netjson: various fixes

Amongst others, a memory leak of 1 mid (self) structure on each request.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: use a session struct in the JSON helpers
Ferry Huberts [Fri, 15 Apr 2016 12:45:14 +0000 (14:45 +0200)]
info: use a session struct in the JSON helpers

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agonetjson: add plugin
Ferry Huberts [Fri, 15 Apr 2016 11:07:25 +0000 (13:07 +0200)]
netjson: add plugin

Currently supports the commands:
- NetworkRoutes
- NetworkGraph
- NetworkCollection

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add netjson commands
Ferry Huberts [Thu, 14 Apr 2016 11:36:40 +0000 (13:36 +0200)]
info: add netjson commands

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: refactor ipc_action to be much clearer and safer
Ferry Huberts [Fri, 15 Apr 2016 09:52:39 +0000 (11:52 +0200)]
info: refactor ipc_action to be much clearer and safer

And fix a few bugs while at it.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: use httpStatusToReply in output_error
Ferry Huberts [Thu, 14 Apr 2016 23:29:44 +0000 (01:29 +0200)]
txtinfo: use httpStatusToReply in output_error

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: use httpStatusToReply in output_error
Ferry Huberts [Thu, 14 Apr 2016 23:32:12 +0000 (01:32 +0200)]
jsoninfo: use httpStatusToReply in output_error

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add INFO_HTTP_SERVICE_UNAVAILABLE http code
Ferry Huberts [Fri, 15 Apr 2016 08:42:59 +0000 (10:42 +0200)]
info: add INFO_HTTP_SERVICE_UNAVAILABLE http code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add INFO_HTTP_FORBIDDEN http code
Ferry Huberts [Fri, 15 Apr 2016 07:57:59 +0000 (09:57 +0200)]
info: add INFO_HTTP_FORBIDDEN http code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add INFO_HTTP_INTERNAL_SERVER_ERROR http code
Ferry Huberts [Fri, 15 Apr 2016 07:05:36 +0000 (09:05 +0200)]
info: add INFO_HTTP_INTERNAL_SERVER_ERROR http code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: add INFO_HTTP_REQUEST_ENTITY_TOO_LARGE http code
Ferry Huberts [Thu, 14 Apr 2016 23:17:59 +0000 (01:17 +0200)]
info: add INFO_HTTP_REQUEST_ENTITY_TOO_LARGE http code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: do not include INFO_HTTP_VERSION in httpStatusToReply return
Ferry Huberts [Thu, 14 Apr 2016 23:17:39 +0000 (01:17 +0200)]
info: do not include INFO_HTTP_VERSION in httpStatusToReply return

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoquagga: use AUTOBUFCHUNK as allocation unit
Ferry Huberts [Thu, 14 Apr 2016 20:11:42 +0000 (22:11 +0200)]
quagga: use AUTOBUFCHUNK as allocation unit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoquagga: fixup include files
Ferry Huberts [Thu, 14 Apr 2016 20:08:32 +0000 (22:08 +0200)]
quagga: fixup include files

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: fix mistake in previous commit
Ferry Huberts [Thu, 14 Apr 2016 20:14:06 +0000 (22:14 +0200)]
info: fix mistake in previous commit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoinfo: be more paranoid when handling received data
Ferry Huberts [Thu, 14 Apr 2016 19:36:43 +0000 (21:36 +0200)]
info: be more paranoid when handling received data

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoall: avoid includes with relative paths whenever possible
Ferry Huberts [Thu, 14 Apr 2016 19:15:30 +0000 (21:15 +0200)]
all: avoid includes with relative paths whenever possible

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoRemove list-excludes
Ferry Huberts [Thu, 14 Apr 2016 15:18:30 +0000 (17:18 +0200)]
Remove list-excludes

This is a left-over from before Git

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoall: ensure all files have the same license header
Ferry Huberts [Thu, 14 Apr 2016 14:58:30 +0000 (16:58 +0200)]
all: ensure all files have the same license header

Only where applicable, some files are licensed differently.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: simplify setup of plugin functions
Ferry Huberts [Thu, 14 Apr 2016 11:36:55 +0000 (13:36 +0200)]
txtinfo: simplify setup of plugin functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: simplify setup of plugin functions
Ferry Huberts [Thu, 14 Apr 2016 11:36:51 +0000 (13:36 +0200)]
jsoninfo: simplify setup of plugin functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agowatchdog: show plugin name and Git SHA in plugin constructor
Ferry Huberts [Wed, 13 Apr 2016 15:00:36 +0000 (17:00 +0200)]
watchdog: show plugin name and Git SHA in plugin constructor

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

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

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

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

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgwdynspeed: use Git SHA from builddata
Ferry Huberts [Wed, 13 Apr 2016 13:20:37 +0000 (15:20 +0200)]
sgwdynspeed: use Git SHA from builddata

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>