olsrd.git
7 years agopud: include nmealib v1.0.3
Ferry Huberts [Mon, 27 Aug 2012 08:24:57 +0000 (10:24 +0200)]
pud: include nmealib v1.0.3

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: force pending buffer out if not enough space for our message
Ferry Huberts [Fri, 24 Aug 2012 13:10:51 +0000 (15:10 +0200)]
pud: force pending buffer out if not enough space for our message

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPud: Do not use the variable name strlen.
Henning Rogge [Sat, 25 Aug 2012 11:03:08 +0000 (13:03 +0200)]
Pud: Do not use the variable name strlen.

7 years agogateway: merge 2 code blocks
Ferry Huberts [Fri, 24 Aug 2012 08:50:46 +0000 (10:50 +0200)]
gateway: merge 2 code blocks

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: prevent 2 NULL dereferences
Ferry Huberts [Thu, 23 Aug 2012 12:53:48 +0000 (14:53 +0200)]
gateway: prevent 2 NULL dereferences

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: the gateway to set must either be an IPv4 or IPv6 gateway or both
Ferry Huberts [Thu, 23 Aug 2012 12:42:24 +0000 (14:42 +0200)]
gateway: the gateway to set must either be an IPv4 or IPv6 gateway or both

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: the gateway to set must be in the gateway tree
Ferry Huberts [Thu, 23 Aug 2012 12:40:28 +0000 (14:40 +0200)]
gateway: the gateway to set must be in the gateway tree

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: merge 2 code blocks
Ferry Huberts [Thu, 23 Aug 2012 12:33:28 +0000 (14:33 +0200)]
gateway: merge 2 code blocks

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: push an if condition into its nested if's
Ferry Huberts [Thu, 23 Aug 2012 12:31:54 +0000 (14:31 +0200)]
gateway: push an if condition into its nested if's

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: simplify a condition
Ferry Huberts [Thu, 23 Aug 2012 12:15:54 +0000 (14:15 +0200)]
gateway: simplify a condition

Because of the preceding
  if (ipv4) {
    current_ipv4_gw = NULL;
  }
  if (ipv6) {
    current_ipv6_gw = NULL;
  }

The condition(s)
   if (ipvX && entry != current_ipvX_gw
Are effectively
   if (ipvX && entry != NULL
Also, the test
   entry != NULL
was already performed by the enclosing if statement

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: rename a function
Ferry Huberts [Tue, 21 Aug 2012 12:52:12 +0000 (14:52 +0200)]
gateway: rename a function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: inline olsr_trigger_inetgw_selection function
Ferry Huberts [Wed, 22 Aug 2012 10:48:16 +0000 (12:48 +0200)]
gateway: inline olsr_trigger_inetgw_selection function

To simplify and reduce the number of functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: inline olsr_find_gateway_entry function
Ferry Huberts [Wed, 22 Aug 2012 10:47:50 +0000 (12:47 +0200)]
gateway: inline olsr_find_gateway_entry function

To simplify and reduce the number of functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: add comments to struct olsr_gw_handler function prototypes
Ferry Huberts [Wed, 22 Aug 2012 11:28:11 +0000 (13:28 +0200)]
gateway: add comments to struct olsr_gw_handler function prototypes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: rename hooks
Ferry Huberts [Wed, 22 Aug 2012 11:26:19 +0000 (13:26 +0200)]
gateway: rename hooks

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: add init and cleanup hooks for gateway plugins
Ferry Huberts [Wed, 22 Aug 2012 11:22:02 +0000 (13:22 +0200)]
gateway: add init and cleanup hooks for gateway plugins

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: clear gw_handler during cleanup
Ferry Huberts [Tue, 14 Aug 2012 08:08:36 +0000 (10:08 +0200)]
gateway: clear gw_handler during cleanup

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: add asserts to validate gw_handler
Ferry Huberts [Tue, 14 Aug 2012 08:18:41 +0000 (10:18 +0200)]
gateway: add asserts to validate gw_handler

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: remove 'unused' v{4,6}gw_choosen_external
Ferry Huberts [Thu, 23 Aug 2012 12:02:22 +0000 (14:02 +0200)]
gateway: remove 'unused' v{4,6}gw_choosen_external

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: formatting
Ferry Huberts [Wed, 22 Aug 2012 11:15:20 +0000 (13:15 +0200)]
gateway: formatting

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: reorder functions to reflect order in header
Ferry Huberts [Wed, 22 Aug 2012 10:40:42 +0000 (12:40 +0200)]
gateway: reorder functions to reflect order in header

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agogateway: clarify header with extra comments and ordering
Ferry Huberts [Fri, 24 Aug 2012 08:25:40 +0000 (10:25 +0200)]
gateway: clarify header with extra comments and ordering

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Reviewed-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
7 years agosgwdynspeed: make sure to update the smart gw netmask
Ferry Huberts [Tue, 21 Aug 2012 13:05:36 +0000 (15:05 +0200)]
sgwdynspeed: make sure to update the smart gw netmask

when the uplink and/or downlink speeds change, because the smart gw
netmask carries the uplink and downlink speeds that are advertised
to other nodes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: move refresh_smartgw_netmask to exported functions section
Ferry Huberts [Tue, 21 Aug 2012 13:02:14 +0000 (15:02 +0200)]
gateway: move refresh_smartgw_netmask to exported functions section

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: export refresh_smartgw_netmask function
Ferry Huberts [Tue, 21 Aug 2012 13:01:48 +0000 (15:01 +0200)]
gateway: export refresh_smartgw_netmask function

we need it when we adjust the uplink and/or downlink speeds

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoMerge branch 'master' into stable master-stable-switch
Henning Rogge [Wed, 15 Aug 2012 16:00:55 +0000 (18:00 +0200)]
Merge branch 'master' into stable

7 years agoPUD: nmealib: use fully qualified path to ldconfig
Ferry Huberts [Thu, 9 Aug 2012 20:16:40 +0000 (22:16 +0200)]
PUD: nmealib: use fully qualified path to ldconfig

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agolinux: rework usage of defines w.r.t. IPv6 tunnel
Ferry Huberts [Wed, 8 Aug 2012 12:31:58 +0000 (14:31 +0200)]
linux: rework usage of defines w.r.t. IPv6 tunnel

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agolinux: name is required to be non-null in olsr_os_cleanup_iptunnel
Ferry Huberts [Wed, 8 Aug 2012 12:05:52 +0000 (14:05 +0200)]
linux: name is required to be non-null in olsr_os_cleanup_iptunnel

Mainly to get rid of TUNNEL_ENDPOINT_IF and TUNNEL_ENDPOINT_IF6
usage here.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agolinux: consolidate os_ip4_tunnel and os_ip6_tunnel
Ferry Huberts [Wed, 8 Aug 2012 12:25:17 +0000 (14:25 +0200)]
linux: consolidate os_ip4_tunnel and os_ip6_tunnel

the code was almost the same, so merge the functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: add SmartGatewayWeightExitLink and SmartGatewayWeightEtx
Ferry Huberts [Thu, 26 Jul 2012 14:15:21 +0000 (16:15 +0200)]
pud: add SmartGatewayWeightExitLink and SmartGatewayWeightEtx

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: add exit link weighing
Ferry Huberts [Fri, 3 Aug 2012 09:16:41 +0000 (11:16 +0200)]
gateway: add exit link weighing

Only performed when the weighing factors are set

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: calculate with uint64_t i.s.o. olsr_linkcost
Ferry Huberts [Wed, 1 Aug 2012 10:30:41 +0000 (12:30 +0200)]
gateway: calculate with uint64_t i.s.o. olsr_linkcost

The next change needs larger numbers

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agocfg: add SmartGateway weighing parameters
Ferry Huberts [Fri, 3 Aug 2012 09:12:22 +0000 (11:12 +0200)]
cfg: add SmartGateway weighing parameters

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: cfg: mark BMF interface as non-persistent
Ferry Huberts [Fri, 3 Aug 2012 17:57:46 +0000 (19:57 +0200)]
pud: cfg: mark BMF interface as non-persistent

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agobmf: allow marking the BMF network interface as non-persistent
Ferry Huberts [Fri, 3 Aug 2012 17:53:30 +0000 (19:53 +0200)]
bmf: allow marking the BMF network interface as non-persistent

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agotc_set.c duplicate_set.c: small bug-fix - case ipv6 - ipwidth 30-->39
harald [Wed, 1 Aug 2012 15:29:25 +0000 (17:29 +0200)]
tc_set.c duplicate_set.c: small bug-fix - case ipv6 - ipwidth 30-->39

7 years agogateway: rename a variable
Ferry Huberts [Mon, 30 Jul 2012 13:07:08 +0000 (15:07 +0200)]
gateway: rename a variable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: make smart gateway threshold parameter work properly.
Ferry Huberts [Mon, 30 Jul 2012 13:04:09 +0000 (15:04 +0200)]
gateway: make smart gateway threshold parameter work properly.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: add helper function gw_default_calc_threshold
Ferry Huberts [Mon, 30 Jul 2012 11:07:52 +0000 (13:07 +0200)]
gateway: add helper function gw_default_calc_threshold

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: improve gw_default_update_handler a bit
Ferry Huberts [Mon, 30 Jul 2012 09:19:32 +0000 (11:19 +0200)]
gateway: improve gw_default_update_handler a bit

protect against a null pointer deref

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: update logic of gw_default_delete_handler
Ferry Huberts [Fri, 27 Jul 2012 10:24:56 +0000 (12:24 +0200)]
gateway: update logic of gw_default_delete_handler

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agojsoninfo: fix crash in /interfaces when olsrd is using a net interface that is not up
Hans-Christoph Steiner [Tue, 31 Jul 2012 17:42:35 +0000 (13:42 -0400)]
jsoninfo: fix crash in /interfaces when olsrd is using a net interface that is not up

7 years agopud: ignore zero bandwidth/uni-directional link gateways
Ferry Huberts [Wed, 25 Jul 2012 19:18:24 +0000 (21:18 +0200)]
pud: ignore zero bandwidth/uni-directional link gateways

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: fix deserialisation of 0 in deserialize_gw_speed
Ferry Huberts [Wed, 25 Jul 2012 19:17:35 +0000 (21:17 +0200)]
gateway: fix deserialisation of 0 in deserialize_gw_speed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: ignore zero bandwidth and uni-directional links
Ferry Huberts [Wed, 25 Jul 2012 16:30:09 +0000 (18:30 +0200)]
gateway: ignore zero bandwidth and uni-directional links

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: ignore unreachable gateways
Ferry Huberts [Wed, 25 Jul 2012 16:28:16 +0000 (18:28 +0200)]
gateway: ignore unreachable gateways

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: reset bandwidth to zero when no link speed is advertised
Ferry Huberts [Tue, 24 Jul 2012 15:42:58 +0000 (17:42 +0200)]
gateway: reset bandwidth to zero when no link speed is advertised

in olsr_update_gateway_entry

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: minor simplification to olsr_set_inet_gateway
Ferry Huberts [Tue, 24 Jul 2012 15:33:57 +0000 (17:33 +0200)]
gateway: minor simplification to olsr_set_inet_gateway

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: minor simplification to olsr_delete_gateway_entry
Ferry Huberts [Tue, 24 Jul 2012 15:33:11 +0000 (17:33 +0200)]
gateway: minor simplification to olsr_delete_gateway_entry

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: remove an unused variable in olsr_update_gateway_entry
Ferry Huberts [Tue, 24 Jul 2012 15:32:39 +0000 (17:32 +0200)]
gateway: remove an unused variable in olsr_update_gateway_entry

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: minor simplification to olsr_trigger_gatewayloss_check
Ferry Huberts [Tue, 24 Jul 2012 15:32:17 +0000 (17:32 +0200)]
gateway: minor simplification to olsr_trigger_gatewayloss_check

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: add some asserts on gw_handler
Ferry Huberts [Tue, 24 Jul 2012 15:30:24 +0000 (17:30 +0200)]
gateway: add some asserts on gw_handler

7 years agogateway: initialise all variables in olsr_init_gateways
Ferry Huberts [Tue, 24 Jul 2012 15:29:28 +0000 (17:29 +0200)]
gateway: initialise all variables in olsr_init_gateways

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: add and update lots of comments
Ferry Huberts [Tue, 24 Jul 2012 15:28:52 +0000 (17:28 +0200)]
gateway: add and update lots of comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: introduce OLSR_IP_ADDR_2_HNA_PTR helper
Ferry Huberts [Tue, 24 Jul 2012 15:26:08 +0000 (17:26 +0200)]
gateway: introduce OLSR_IP_ADDR_2_HNA_PTR helper

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: simplify and inline olsr_find_gateway_entry
Ferry Huberts [Thu, 19 Jul 2012 15:00:32 +0000 (17:00 +0200)]
gateway: simplify and inline olsr_find_gateway_entry

node2gateway already takes care of NULL

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: simplify deserialize_gw_speed
Ferry Huberts [Wed, 18 Jul 2012 16:40:51 +0000 (18:40 +0200)]
gateway: simplify deserialize_gw_speed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: remove some unused code in refresh_smartgw_netmask
Ferry Huberts [Wed, 18 Jul 2012 16:40:31 +0000 (18:40 +0200)]
gateway: remove some unused code in refresh_smartgw_netmask

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: reorder functions
Ferry Huberts [Wed, 18 Jul 2012 13:53:19 +0000 (15:53 +0200)]
gateway: reorder functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: add some comments
Ferry Huberts [Wed, 18 Jul 2012 13:28:46 +0000 (15:28 +0200)]
gateway: add some comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: make olsr_find_gateway_entry static
Ferry Huberts [Wed, 18 Jul 2012 08:42:41 +0000 (10:42 +0200)]
gateway: make olsr_find_gateway_entry static

it is only used in gateway.c

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: make olsr_trigger_inetgw_selection
Ferry Huberts [Wed, 18 Jul 2012 08:40:18 +0000 (10:40 +0200)]
gateway: make olsr_trigger_inetgw_selection

it is only used in gateway.c

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: make refresh_smartgw_netmask static
Ferry Huberts [Wed, 18 Jul 2012 08:38:47 +0000 (10:38 +0200)]
gateway: make refresh_smartgw_netmask static

it is only used with gateway.c

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: let init and cleanup functions take the name as parameter
Ferry Huberts [Thu, 21 Jun 2012 13:25:48 +0000 (15:25 +0200)]
gateway: let init and cleanup functions take the name as parameter

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: minor simplification
Ferry Huberts [Tue, 17 Jul 2012 13:36:20 +0000 (15:36 +0200)]
gateway: minor simplification

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: add some comments
Ferry Huberts [Tue, 17 Jul 2012 13:35:35 +0000 (15:35 +0200)]
gateway: add some comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: add some comments
Ferry Huberts [Tue, 17 Jul 2012 11:04:02 +0000 (13:04 +0200)]
gateway: add some comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: fixup includes
Ferry Huberts [Tue, 17 Jul 2012 11:03:49 +0000 (13:03 +0200)]
gateway: fixup includes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: split variable declarations
Ferry Huberts [Tue, 17 Jul 2012 11:01:50 +0000 (13:01 +0200)]
gateway: split variable declarations

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: use the same 'ifdef linux' and the header and source file
Ferry Huberts [Tue, 17 Jul 2012 11:01:23 +0000 (13:01 +0200)]
gateway: use the same 'ifdef linux' and the header and source file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: remove an unused include
Ferry Huberts [Tue, 17 Jul 2012 11:01:00 +0000 (13:01 +0200)]
gateway: remove an unused include

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: make olsr_gw_default_lookup_gateway function static
Ferry Huberts [Tue, 17 Jul 2012 10:55:22 +0000 (12:55 +0200)]
gateway: make olsr_gw_default_lookup_gateway function static

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: shift up the #ifdef linux
Ferry Huberts [Tue, 17 Jul 2012 10:50:14 +0000 (12:50 +0200)]
gateway: shift up the #ifdef linux

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: initialise variables in the declaration order
Ferry Huberts [Tue, 17 Jul 2012 10:50:34 +0000 (12:50 +0200)]
gateway: initialise variables in the declaration order

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: reorder functions
Ferry Huberts [Thu, 31 May 2012 12:37:22 +0000 (14:37 +0200)]
gateway: reorder functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agobugfix: set_nameservice_float() writes a float, not a double.
Lars Kruse [Tue, 24 Jul 2012 14:31:05 +0000 (16:31 +0200)]
bugfix: set_nameservice_float() writes a float, not a double.

as reported in http://olsr.org/bugs/view.php?id=33 I noticed that the timeout
parameter of the namespace plugin is _almost_ ignored.
The simple cause is a type mismatch (double/float).

Attached you find the trivial patch that solves the problem for me.

7 years agoandroid: port linux make 'prefix' work
Ferry Huberts [Tue, 24 Jul 2012 13:51:53 +0000 (15:51 +0200)]
android: port linux make 'prefix' work

So that
  make NDK_BASE="<some path>/android-ndk-r8" \
       OS="android" \
       DESTDIR="$(pwd)/dist" \
       DEBUG=0 \
       OPTIMIZE="-O2" \
       build_all install_all
works again

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: statically link nmealib if PUD_NMEALIB_STATICALLY_LINKED is defined
Ferry Huberts [Fri, 20 Jul 2012 08:31:50 +0000 (10:31 +0200)]
pud: statically link nmealib if PUD_NMEALIB_STATICALLY_LINKED is defined

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: nmealib: also build a static library
Ferry Huberts [Fri, 20 Jul 2012 07:59:40 +0000 (09:59 +0200)]
pud: nmealib: also build a static library

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: update comment describing build command line for correctness
Hans-Christoph Steiner [Thu, 19 Jul 2012 20:36:53 +0000 (16:36 -0400)]
android: update comment describing build command line for correctness

7 years agoman: fix a minor issue in the man page
Ferry Huberts [Thu, 19 Jul 2012 20:17:20 +0000 (22:17 +0200)]
man: fix a minor issue in the man page

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: only advertise linkspeed when the link is bi-directional
Ferry Huberts [Wed, 18 Jul 2012 16:28:48 +0000 (18:28 +0200)]
gateway: only advertise linkspeed when the link is bi-directional

Uni-directional links produce all kinds of funky network behaviour.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: fix serialize_gw_speed
Ferry Huberts [Thu, 19 Jul 2012 07:46:48 +0000 (09:46 +0200)]
gateway: fix serialize_gw_speed

Values over 320000000 would serialize to 0, which is not correct,
since they should be clipped to the maximum value of the
serialization range.

v2: unchanged, sent with another patch

v3: values 100000000 and 200000000 would result in an exponent of 8,
    which is out-of-range for the exponent.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: nmealib: increase the number of satellites
Ferry Huberts [Thu, 19 Jul 2012 07:34:06 +0000 (09:34 +0200)]
pud: nmealib: increase the number of satellites

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agogateway: fix lazy gateway selection
Ferry Huberts [Tue, 17 Jul 2012 13:38:56 +0000 (15:38 +0200)]
gateway: fix lazy gateway selection

Only an increase in the number of gateway nodes was seen as a network
in flux. A decrease in the number of gateway nodes was not taken into
account.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agomain: fix a typo
Ferry Huberts [Wed, 18 Jul 2012 08:37:36 +0000 (10:37 +0200)]
main: fix a typo

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agohttpinfo: position: also show satellite information when available
Ferry Huberts [Mon, 16 Jul 2012 15:25:05 +0000 (17:25 +0200)]
httpinfo: position: also show satellite information when available

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: posavg: make sure to put track, mtrack and magvar in the cumulative
Ferry Huberts [Mon, 16 Jul 2012 16:00:40 +0000 (18:00 +0200)]
pud: posavg: make sure to put track, mtrack and magvar in the cumulative

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: posavg: don't add an angle if it is not present
Ferry Huberts [Mon, 16 Jul 2012 15:59:51 +0000 (17:59 +0200)]
pud: posavg: don't add an angle if it is not present

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: posavg: minor simplification
Ferry Huberts [Mon, 16 Jul 2012 15:56:39 +0000 (17:56 +0200)]
pud: posavg: minor simplification

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: posavg: fix typo in calculateAngle
Ferry Huberts [Mon, 16 Jul 2012 15:55:57 +0000 (17:55 +0200)]
pud: posavg: fix typo in calculateAngle

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: include nmealib v1.0.1
Ferry Huberts [Mon, 16 Jul 2012 13:41:44 +0000 (15:41 +0200)]
pud: include nmealib v1.0.1

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: fix angle averaging
Ferry Huberts [Mon, 16 Jul 2012 09:14:47 +0000 (11:14 +0200)]
pud: fix angle averaging

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: switch to syslog logging on successful loading of plugin
Ferry Huberts [Mon, 16 Jul 2012 10:32:07 +0000 (12:32 +0200)]
pud: switch to syslog logging on successful loading of plugin

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: allow logging to syslog
Ferry Huberts [Mon, 16 Jul 2012 09:44:52 +0000 (11:44 +0200)]
pud: allow logging to syslog

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: simplify pudError a bit
Ferry Huberts [Mon, 16 Jul 2012 09:43:11 +0000 (11:43 +0200)]
pud: simplify pudError a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: hook up the nmea library error callback
Ferry Huberts [Mon, 16 Jul 2012 09:25:47 +0000 (11:25 +0200)]
pud: hook up the nmea library error callback

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: minor simplification to receiver
Ferry Huberts [Mon, 16 Jul 2012 08:57:04 +0000 (10:57 +0200)]
pud: minor simplification to receiver

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agopud: upgrade doxygen configuration files
Ferry Huberts [Mon, 16 Jul 2012 08:04:18 +0000 (10:04 +0200)]
pud: upgrade doxygen configuration files

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