olsrd.git
3 years agop2pd: use the new olsr_realloc function
Ferry Huberts [Thu, 21 Apr 2016 09:23:11 +0000 (11:23 +0200)]
p2pd: use the new olsr_realloc function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agomdns: use the new olsr_realloc function
Ferry Huberts [Thu, 21 Apr 2016 09:23:03 +0000 (11:23 +0200)]
mdns: use the new olsr_realloc function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agobmf: use the new olsr_realloc function
Ferry Huberts [Thu, 21 Apr 2016 09:22:56 +0000 (11:22 +0200)]
bmf: use the new olsr_realloc function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoquagga: improve zparse function a bit
Ferry Huberts [Thu, 21 Apr 2016 09:14:38 +0000 (11:14 +0200)]
quagga: improve zparse function a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoquagga: refactor zclient_read to be much more readable and safer
Ferry Huberts [Thu, 21 Apr 2016 08:57:10 +0000 (10:57 +0200)]
quagga: refactor zclient_read to be much more readable and safer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoolsr: add olsr_realloc function
Ferry Huberts [Thu, 21 Apr 2016 08:28:13 +0000 (10:28 +0200)]
olsr: add olsr_realloc function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agolink_set: fix a crash: use the entry name in a printf
Ferry Huberts [Wed, 20 Apr 2016 21:21:39 +0000 (23:21 +0200)]
link_set: fix a crash: use the entry name in a printf

Entry is guaranteed to be non-null.
Introduced in f8d4e24

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: fail info_plugin_init when plugin_ipc_init fails
Ferry Huberts [Sun, 17 Apr 2016 13:44:18 +0000 (15:44 +0200)]
info: fail info_plugin_init when plugin_ipc_init fails

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoandroid: minor improvements to the Makefile and README
Ferry Huberts [Sat, 16 Apr 2016 20:15:16 +0000 (22:15 +0200)]
android: minor improvements to the Makefile and README

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoautobuf: simplify abuf_vappendf
Ferry Huberts [Sat, 16 Apr 2016 19:18:16 +0000 (21:18 +0200)]
autobuf: simplify abuf_vappendf

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoautobuf: work around a warning
Ferry Huberts [Sat, 16 Apr 2016 19:36:40 +0000 (21:36 +0200)]
autobuf: work around a warning

src/common/autobuf.c:109:6: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]
   if (new_size > autobuf->size) {
      ^

This showed up in the Android build when building with NDK r11c.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agoinfo: start with a single AUTOBUFCHUNK sized chunk of memory
Ferry Huberts [Sat, 16 Apr 2016 19:33:28 +0000 (21:33 +0200)]
info: start with a single AUTOBUFCHUNK sized chunk of memory

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
3 years agohttpinfo: reduce memory usage
Ferry Huberts [Sat, 16 Apr 2016 19:33:04 +0000 (21:33 +0200)]
httpinfo: reduce memory usage

Allocating 100KiB to start with is quite insane.
The generated pages will never be that large.

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