olsrd.git
6 years agogateway: fix stable count dampening in gw_default_timer
Ferry Huberts [Wed, 30 Jan 2013 10:16:45 +0000 (11:16 +0100)]
gateway: fix stable count dampening in gw_default_timer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: rename some variables to make it more readable
Ferry Huberts [Wed, 30 Jan 2013 10:10:22 +0000 (11:10 +0100)]
gateway: rename some variables to make it more readable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: improve comments of gw_default_weigh_costs a bit
Ferry Huberts [Wed, 30 Jan 2013 09:49:13 +0000 (10:49 +0100)]
gateway: improve comments of gw_default_weigh_costs a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: simplify gw_default_calc_threshold
Ferry Huberts [Wed, 30 Jan 2013 09:48:40 +0000 (10:48 +0100)]
gateway: simplify gw_default_calc_threshold

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: find_interfaceName only works in multi-gateway mode
Ferry Huberts [Tue, 29 Jan 2013 11:10:07 +0000 (12:10 +0100)]
gateway: find_interfaceName only works in multi-gateway mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: also set (update) the gateway when costs have changed
Ferry Huberts [Tue, 29 Jan 2013 11:08:07 +0000 (12:08 +0100)]
gateway: also set (update) the gateway when costs have changed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: add some comments
Ferry Huberts [Thu, 17 Jan 2013 16:14:41 +0000 (17:14 +0100)]
gateway: add some comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: allow advertisement of zero bandwidth
Ferry Huberts [Tue, 29 Jan 2013 13:54:34 +0000 (14:54 +0100)]
gateway: allow advertisement of zero bandwidth

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: use the proper __ANDROID__ define
Ferry Huberts [Thu, 17 Jan 2013 09:01:36 +0000 (10:01 +0100)]
pud: use the proper __ANDROID__ define

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoandroid: fix the path of the tunnel node in the /dev tree
Ferry Huberts [Thu, 17 Jan 2013 09:01:21 +0000 (10:01 +0100)]
android: fix the path of the tunnel node in the /dev tree

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: minor speed improvement in gw_default_choose_gateway
Ferry Huberts [Wed, 16 Jan 2013 20:24:46 +0000 (21:24 +0100)]
gateway: minor speed improvement in gw_default_choose_gateway

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: fix 'eligible' conditions in gw_default_choose_gateway
Ferry Huberts [Wed, 16 Jan 2013 18:11:10 +0000 (19:11 +0100)]
gateway: fix 'eligible' conditions in gw_default_choose_gateway

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: use standard macro to loop over the gateway tree in olsr_cleanup_gateways
Ferry Huberts [Wed, 16 Jan 2013 16:37:11 +0000 (17:37 +0100)]
gateway: use standard macro to loop over the gateway tree in olsr_cleanup_gateways

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: remove 2 unneeded asserts
Ferry Huberts [Wed, 16 Jan 2013 13:56:59 +0000 (14:56 +0100)]
gateway: remove 2 unneeded asserts

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: update some comments
Ferry Huberts [Wed, 16 Jan 2013 13:55:59 +0000 (14:55 +0100)]
gateway: update some comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: minor improvement to get_unused_iptunnel_name
Ferry Huberts [Wed, 16 Jan 2013 13:55:36 +0000 (14:55 +0100)]
gateway: minor improvement to get_unused_iptunnel_name

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: minor update to getBestUplinkGateway
Ferry Huberts [Wed, 16 Jan 2013 17:40:33 +0000 (18:40 +0100)]
pud: minor update to getBestUplinkGateway

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: minor update resulting from the previous revert
Ferry Huberts [Wed, 16 Jan 2013 17:03:43 +0000 (18:03 +0100)]
pud: minor update resulting from the previous revert

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoRevert "pud: the best uplink gateway is the same as the current (smart) gateway"
Ferry Huberts [Wed, 16 Jan 2013 16:50:45 +0000 (17:50 +0100)]
Revert "pud: the best uplink gateway is the same as the current (smart) gateway"

This reverts commit 6a4cdd2a1b2727caca1b643f9b06571eb5e01292.

We really only want to take into account the exit link bandwidth and
ignore the OLSR path to it.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: fix 2 small typos in a comment
Ferry Huberts [Fri, 11 Jan 2013 14:12:18 +0000 (15:12 +0100)]
gateway: fix 2 small typos in a comment

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: update documentation about smart gateway changes
Ferry Huberts [Thu, 10 Jan 2013 15:01:10 +0000 (16:01 +0100)]
pud: update documentation about smart gateway changes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: only forward downlinked messages when the smart gateway system is enabled
Ferry Huberts [Thu, 10 Jan 2013 14:58:50 +0000 (15:58 +0100)]
pud: only forward downlinked messages when the smart gateway system is enabled

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: there is no hard dependency on smart gateway
Ferry Huberts [Thu, 10 Jan 2013 14:49:58 +0000 (15:49 +0100)]
pud: there is no hard dependency on smart gateway

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: the best uplink gateway is the same as the current (smart) gateway
Ferry Huberts [Thu, 10 Jan 2013 14:48:55 +0000 (15:48 +0100)]
pud: the best uplink gateway is the same as the current (smart) gateway

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agojson_info: do not loop forever on smart gateway egress interfaces
Ferry Huberts [Thu, 10 Jan 2013 13:04:05 +0000 (14:04 +0100)]
json_info: do not loop forever on smart gateway egress interfaces

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: properly set the egress interface names
Ferry Huberts [Thu, 10 Jan 2013 13:10:28 +0000 (14:10 +0100)]
gateway: properly set the egress interface names

They were set to egress_xx instead of to the configured names

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: use tnl_(4|6) tunnel names instead of tnl(4|6)_
Ferry Huberts [Wed, 9 Jan 2013 14:27:37 +0000 (15:27 +0100)]
gateway: use tnl_(4|6) tunnel names instead of tnl(4|6)_

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: fix a revert problem
Ferry Huberts [Wed, 9 Jan 2013 12:57:50 +0000 (13:57 +0100)]
gateway: fix a revert problem

Did not notice that a line got doubled.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: use SmartGatewayAlwaysRemoveServerTunnel configuration parameter
Ferry Huberts [Wed, 9 Jan 2013 11:55:39 +0000 (12:55 +0100)]
gateway: use SmartGatewayAlwaysRemoveServerTunnel configuration parameter

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agocfgparser: add SmartGatewayAlwaysRemoveServerTunnel configuration parameter
Ferry Huberts [Wed, 9 Jan 2013 12:41:12 +0000 (13:41 +0100)]
cfgparser: add SmartGatewayAlwaysRemoveServerTunnel configuration parameter

So that we can have the server tunnel (tunl0) removed on olsrd
shutdown, by setting the parameter to true.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: cleanup the server tunnel later
Ferry Huberts [Wed, 9 Jan 2013 10:53:49 +0000 (11:53 +0100)]
gateway: cleanup the server tunnel later

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: do not show (bogus) errors
Ferry Huberts [Tue, 8 Jan 2013 12:55:15 +0000 (13:55 +0100)]
gateway: do not show (bogus) errors

In add mode (of the policy rule) we first remove rules.
This can show errors when the rules did not yet exist.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoRevert "linux: name is required to be non-null in olsr_os_cleanup_iptunnel"
Ferry Huberts [Wed, 9 Jan 2013 10:33:58 +0000 (11:33 +0100)]
Revert "linux: name is required to be non-null in olsr_os_cleanup_iptunnel"

This reverts commit f72ba167eb3f6c01b15edbb2efddd8a3950067f1.

It causes failures to add tunnels.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: ignore errors in remove-before-add rule removals
Ferry Huberts [Mon, 7 Jan 2013 15:06:50 +0000 (16:06 +0100)]
gateway: ignore errors in remove-before-add rule removals

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: remove policy rules before adding them
Ferry Huberts [Mon, 7 Jan 2013 14:42:19 +0000 (15:42 +0100)]
gateway: remove policy rules before adding them

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: fix copy/paste mistake in setting up the egress rules
Ferry Huberts [Mon, 7 Jan 2013 14:24:59 +0000 (15:24 +0100)]
gateway: fix copy/paste mistake in setting up the egress rules

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: minor indentation fixes in the gateway script
Ferry Huberts [Mon, 7 Jan 2013 10:48:00 +0000 (11:48 +0100)]
gateway: minor indentation fixes in the gateway script

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: the gateway policy script really is a bash script
Ferry Huberts [Mon, 7 Jan 2013 10:47:36 +0000 (11:47 +0100)]
gateway: the gateway policy script really is a bash script

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: fix policy script permissions checking
Ferry Huberts [Mon, 7 Jan 2013 08:48:56 +0000 (09:48 +0100)]
gateway: fix policy script permissions checking

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoFixed debug output of Scheduler polling interval
Henning Rogge [Thu, 20 Dec 2012 08:34:37 +0000 (09:34 +0100)]
Fixed debug output of Scheduler polling interval

6 years agogateway: also adjust the IPv6 gateway list in olsr_update_gateway_entry
Ferry Huberts [Thu, 13 Dec 2012 12:58:41 +0000 (13:58 +0100)]
gateway: also adjust the IPv6 gateway list in olsr_update_gateway_entry

This was forgotten in 4249b3f

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: add an assert to prevent an 'unused' warning
Ferry Huberts [Thu, 13 Dec 2012 12:57:25 +0000 (13:57 +0100)]
gateway: add an assert to prevent an 'unused' warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: remove 2 superfluous asserts
Ferry Huberts [Thu, 13 Dec 2012 12:57:01 +0000 (13:57 +0100)]
gateway: remove 2 superfluous asserts

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoMerge branch 'multigw'
Ferry Huberts [Thu, 13 Dec 2012 12:32:30 +0000 (13:32 +0100)]
Merge branch 'multigw'

* multigw: (25 commits)
  kernel_route: olsr_os_inetgw_tunnel_route now needs the table explicitly
  gateway: convert some defines into inline functions
  gateway: enable multi-gateway mode
  gateway: introduce and use MULTI_GW_MODE define
  gateway: setup/cleanup multi-gateway mode during startup/shutdown of olsrd
  gateway: setup and clear table specific default routes in/for multi-gateway mode
  gateway: use fixed tunnel names in/for multi-gateway mode
  gateway: initialise the egress interface names in/for multi-gateway mode
  gateway: initialise a set of fixed tunnel names in/for multi-gateway mode
  gateway: add SmartGatewayPolicyRoutingScript configuration parameter
  gateway: add SmartGatewayMarkOffset{Egress,Tunnels} configuration parameters
  gateway: add SmartGatewayEgressInterfaces configuration parameter
  gateway: use SmartGatewayUseCount setting the the gateway lists
  gateway: add SmartGatewayUseCount configuration parameter
  gateway: remove the worst gateway before adding new one
  gateway: let the gateway code determine the tunnel name
  kernel_route: olsr_os_inetgw_tunnel_route can now take the table
  json_info: only output smart gateway info on Linux
  gateway: keep track of the active gateways in a list
  gateway: add gateway_list.{c,h}
  ...

6 years agokernel_route: olsr_os_inetgw_tunnel_route now needs the table explicitly
Ferry Huberts [Thu, 13 Dec 2012 12:30:42 +0000 (13:30 +0100)]
kernel_route: olsr_os_inetgw_tunnel_route now needs the table explicitly

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: convert some defines into inline functions
Ferry Huberts [Thu, 13 Dec 2012 11:51:57 +0000 (12:51 +0100)]
gateway: convert some defines into inline functions

And inline some other defines.

Henning doesn't seem to like defines ;-)

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: enable multi-gateway mode
Ferry Huberts [Tue, 4 Dec 2012 10:37:23 +0000 (11:37 +0100)]
gateway: enable multi-gateway mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: introduce and use MULTI_GW_MODE define
Ferry Huberts [Tue, 4 Dec 2012 12:37:17 +0000 (13:37 +0100)]
gateway: introduce and use MULTI_GW_MODE define

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: setup/cleanup multi-gateway mode during startup/shutdown of olsrd
Ferry Huberts [Tue, 4 Dec 2012 13:20:50 +0000 (14:20 +0100)]
gateway: setup/cleanup multi-gateway mode during startup/shutdown of olsrd

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: setup and clear table specific default routes in/for multi-gateway mode
Ferry Huberts [Tue, 4 Dec 2012 12:22:56 +0000 (13:22 +0100)]
gateway: setup and clear table specific default routes in/for multi-gateway mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: use fixed tunnel names in/for multi-gateway mode
Ferry Huberts [Tue, 4 Dec 2012 12:18:33 +0000 (13:18 +0100)]
gateway: use fixed tunnel names in/for multi-gateway mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: initialise the egress interface names in/for multi-gateway mode
Ferry Huberts [Tue, 4 Dec 2012 12:04:48 +0000 (13:04 +0100)]
gateway: initialise the egress interface names in/for multi-gateway mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: initialise a set of fixed tunnel names in/for multi-gateway mode
Ferry Huberts [Tue, 4 Dec 2012 12:03:53 +0000 (13:03 +0100)]
gateway: initialise a set of fixed tunnel names in/for multi-gateway mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: add SmartGatewayPolicyRoutingScript configuration parameter
Ferry Huberts [Tue, 4 Dec 2012 11:56:19 +0000 (12:56 +0100)]
gateway: add SmartGatewayPolicyRoutingScript configuration parameter

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: add SmartGatewayMarkOffset{Egress,Tunnels} configuration parameters
Ferry Huberts [Tue, 4 Dec 2012 11:48:14 +0000 (12:48 +0100)]
gateway: add SmartGatewayMarkOffset{Egress,Tunnels} configuration parameters

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: add SmartGatewayEgressInterfaces configuration parameter
Ferry Huberts [Tue, 4 Dec 2012 11:41:17 +0000 (12:41 +0100)]
gateway: add SmartGatewayEgressInterfaces configuration parameter

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: use SmartGatewayUseCount setting the the gateway lists
Ferry Huberts [Tue, 20 Nov 2012 11:07:53 +0000 (12:07 +0100)]
gateway: use SmartGatewayUseCount setting the the gateway lists

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: add SmartGatewayUseCount configuration parameter
Ferry Huberts [Tue, 4 Dec 2012 11:25:07 +0000 (12:25 +0100)]
gateway: add SmartGatewayUseCount configuration parameter

We can now configure multiple 'active' gateways (although we only
allow 1 for now until the functionality is complete).

Multiple active gateways are used to reduce breaking connections
in a dynamic network.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: remove the worst gateway before adding new one
Ferry Huberts [Tue, 4 Dec 2012 10:28:31 +0000 (11:28 +0100)]
gateway: remove the worst gateway before adding new one

when the gateway list is full, so that we never overrun
the list.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: let the gateway code determine the tunnel name
Ferry Huberts [Tue, 4 Dec 2012 09:50:35 +0000 (10:50 +0100)]
gateway: let the gateway code determine the tunnel name

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agokernel_route: olsr_os_inetgw_tunnel_route can now take the table
Ferry Huberts [Tue, 27 Nov 2012 12:33:31 +0000 (13:33 +0100)]
kernel_route: olsr_os_inetgw_tunnel_route can now take the table

as an optional parameter.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agojson_info: only output smart gateway info on Linux
Ferry Huberts [Tue, 4 Dec 2012 14:45:54 +0000 (15:45 +0100)]
json_info: only output smart gateway info on Linux

Since it's only available on Linux

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agoMerge branch 'release-0.6.5'
Ferry Huberts [Tue, 11 Dec 2012 14:07:10 +0000 (15:07 +0100)]
Merge branch 'release-0.6.5'

* release-0.6.5:
  doc: clean up the latex directory if empty

6 years agodoc: clean up the latex directory if empty
Ferry Huberts [Tue, 11 Dec 2012 14:05:17 +0000 (15:05 +0100)]
doc: clean up the latex directory if empty

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoMerge branch 'release-0.6.5'
Ferry Huberts [Tue, 11 Dec 2012 10:57:05 +0000 (11:57 +0100)]
Merge branch 'release-0.6.5'

* release-0.6.5:
  pud: java make target is dependent on library make target

6 years agopud: java make target is dependent on library make target
Ferry Huberts [Tue, 11 Dec 2012 10:56:34 +0000 (11:56 +0100)]
pud: java make target is dependent on library make target

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: java make target is dependent on library make target
Ferry Huberts [Tue, 11 Dec 2012 10:56:34 +0000 (11:56 +0100)]
pud: java make target is dependent on library make target

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoMerge branch 'release-0.6.5'
Ferry Huberts [Tue, 11 Dec 2012 10:44:28 +0000 (11:44 +0100)]
Merge branch 'release-0.6.5'

* release-0.6.5:
  pud: change java include path to generic java include path

6 years agopud: change java include path to generic java include path
Ferry Huberts [Tue, 11 Dec 2012 10:43:20 +0000 (11:43 +0100)]
pud: change java include path to generic java include path

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: keep track of the active gateways in a list
Ferry Huberts [Fri, 9 Nov 2012 09:53:10 +0000 (10:53 +0100)]
gateway: keep track of the active gateways in a list

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: add gateway_list.{c,h}
Ferry Huberts [Mon, 5 Nov 2012 12:12:48 +0000 (13:12 +0100)]
gateway: add gateway_list.{c,h}

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: simplify by using the new costs interface
Ferry Huberts [Thu, 8 Nov 2012 14:33:26 +0000 (15:33 +0100)]
gateway: simplify by using the new costs interface

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: add interface to get the gateway costs
Ferry Huberts [Thu, 8 Nov 2012 14:26:08 +0000 (15:26 +0100)]
gateway: add interface to get the gateway costs

We need it when we are going to keep the active gateway(s) in a list

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: add path_cost to 'set gateway' interface
Ferry Huberts [Wed, 7 Nov 2012 09:12:21 +0000 (10:12 +0100)]
gateway: add path_cost to 'set gateway' interface

We need it when we are going to keep the active gateway(s) in a list

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: lazily allocate the current gateway structs
Ferry Huberts [Mon, 5 Nov 2012 12:53:58 +0000 (13:53 +0100)]
gateway: lazily allocate the current gateway structs

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agogateway: store current gateway(s) in a struct
Ferry Huberts [Mon, 5 Nov 2012 12:47:40 +0000 (13:47 +0100)]
gateway: store current gateway(s) in a struct

This simplifies the administration of the currently
active gateways.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <hrogge@googlemail.com>
6 years agoUpdate version after branch of v0.6.5
Ferry Huberts [Mon, 10 Dec 2012 13:53:53 +0000 (14:53 +0100)]
Update version after branch of v0.6.5

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoBranch v0.6.5
Ferry Huberts [Mon, 10 Dec 2012 13:53:53 +0000 (14:53 +0100)]
Branch v0.6.5

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoMerge branch 'release-0.6.4' into mmmm
Ferry Huberts [Mon, 10 Dec 2012 13:52:57 +0000 (14:52 +0100)]
Merge branch 'release-0.6.4' into mmmm

* release-0.6.4:
  release: the script can now also create a release branch
  release: convert some code into getPrevRelTag function
  release: convert some code into checkGitSigningKeyIsConfigured function
  release: convert some code into checkIsOlsrdGitCheckout function
  release: move into the base directory earlier
  release: fix usage of literal dot in regular expressions
  release: make gitIsGitDirectory do the correct thing
  release: move the stringTrim function up a bit

6 years agorelease: the script can now also create a release branch
Ferry Huberts [Mon, 10 Dec 2012 13:41:40 +0000 (14:41 +0100)]
release: the script can now also create a release branch

and update the versions correctly

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: convert some code into getPrevRelTag function
Ferry Huberts [Mon, 10 Dec 2012 10:41:36 +0000 (11:41 +0100)]
release: convert some code into getPrevRelTag function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: convert some code into checkGitSigningKeyIsConfigured function
Ferry Huberts [Mon, 10 Dec 2012 10:38:20 +0000 (11:38 +0100)]
release: convert some code into checkGitSigningKeyIsConfigured function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: convert some code into checkIsOlsrdGitCheckout function
Ferry Huberts [Mon, 10 Dec 2012 10:35:46 +0000 (11:35 +0100)]
release: convert some code into checkIsOlsrdGitCheckout function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: move into the base directory earlier
Ferry Huberts [Mon, 10 Dec 2012 10:34:50 +0000 (11:34 +0100)]
release: move into the base directory earlier

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: fix usage of literal dot in regular expressions
Ferry Huberts [Mon, 10 Dec 2012 12:57:07 +0000 (13:57 +0100)]
release: fix usage of literal dot in regular expressions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: make gitIsGitDirectory do the correct thing
Ferry Huberts [Mon, 10 Dec 2012 10:30:13 +0000 (11:30 +0100)]
release: make gitIsGitDirectory do the correct thing

Some relevant code was left commented out from debugging

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: move the stringTrim function up a bit
Ferry Huberts [Mon, 10 Dec 2012 10:29:03 +0000 (11:29 +0100)]
release: move the stringTrim function up a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: do not generate documentation for gui code
Ferry Huberts [Wed, 5 Dec 2012 23:26:02 +0000 (00:26 +0100)]
doc: do not generate documentation for gui code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix win32 specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:23:09 +0000 (00:23 +0100)]
doc: fix win32 specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix bsd specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:23:36 +0000 (00:23 +0100)]
doc: fix bsd specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix unix specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:23:29 +0000 (00:23 +0100)]
doc: fix unix specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix linux specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:01:58 +0000 (00:01 +0100)]
doc: fix linux specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix common documentation tags
Ferry Huberts [Wed, 5 Dec 2012 22:36:38 +0000 (23:36 +0100)]
doc: fix common documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: add doxygen documentation generation
Ferry Huberts [Tue, 24 Jul 2012 07:25:49 +0000 (09:25 +0200)]
doc: add doxygen documentation generation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agolinux: put #ifdef __linux__ around code
Ferry Huberts [Wed, 5 Dec 2012 22:32:10 +0000 (23:32 +0100)]
linux: put #ifdef __linux__ around code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: only check smart gateway configuration on linux
Ferry Huberts [Thu, 29 Nov 2012 18:38:36 +0000 (19:38 +0100)]
gateway: only check smart gateway configuration on linux

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: enable dynamic polling of the position file
Ferry Huberts [Thu, 29 Nov 2012 20:44:47 +0000 (21:44 +0100)]
pud: enable dynamic polling of the position file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agocookie: raise the number of cookies
Ferry Huberts [Thu, 29 Nov 2012 20:45:40 +0000 (21:45 +0100)]
cookie: raise the number of cookies

When running many plugins, I run into the cookie limit.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: put plugin config in olsrd.conf.sample
Ferry Huberts [Thu, 29 Nov 2012 14:39:34 +0000 (15:39 +0100)]
pud: put plugin config in olsrd.conf.sample

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agosgwdynspeed: put plugin config in olsrd.conf.sample
Ferry Huberts [Thu, 29 Nov 2012 14:36:49 +0000 (15:36 +0100)]
sgwdynspeed: put plugin config in olsrd.conf.sample

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