Ferry Huberts [Wed, 29 Aug 2012 09:52:52 +0000 (11:52 +0200)]
gateway: merge the olsr_get_ipv{4,6}_inet_gateway functions
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 28 Aug 2012 11:57:30 +0000 (13:57 +0200)]
remove most '#if 0' blocks
Leave mpr related blocks alone.
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Saverio Proto [Wed, 3 Oct 2012 15:40:39 +0000 (17:40 +0200)]
Merge remote-tracking branch 'origin/mDNS-plugin-GSoC-2012'
Hans-Christoph Steiner [Tue, 2 Oct 2012 23:05:53 +0000 (19:05 -0400)]
fixed misspelling: usefull -> useful
Hans-Christoph Steiner [Tue, 2 Oct 2012 23:05:21 +0000 (19:05 -0400)]
fix misspelling: 'adress' --> 'address'
- an 'address' represents a location, i.e. MAC address
- 'adress' is a verb meaning "to speak to"
Hans-Christoph Steiner [Wed, 12 Sep 2012 00:42:24 +0000 (20:42 -0400)]
olsrd-adhoc-setup: configure NetworkManager to be nice when adhoc is manually setup
Hans-Christoph Steiner [Tue, 11 Sep 2012 22:35:06 +0000 (18:35 -0400)]
olsrd-adhoc-setup: use static BSSID by default to assoc. with the right mesh
Frank de Brabander [Mon, 3 Sep 2012 11:38:38 +0000 (13:38 +0200)]
Fix optional compilation of the nl80211 lq plugin
Signed-off-by: Frank de Brabander <brabander@fox-it.com>
Frank de Brabander [Fri, 31 Aug 2012 11:34:29 +0000 (13:34 +0200)]
Incorporate fix by Ferry Hubert for float to double promotion
Signed-off-by: Frank de Brabander <brabander@fox-it.com>
Frank de Brabander [Fri, 31 Aug 2012 11:24:20 +0000 (13:24 +0200)]
Merge branch with new lq plugin for NL80211 support
Signed-off-by: Frank de Brabander <brabander@fox-it.com>
Ferry Huberts [Mon, 27 Aug 2012 12:27:54 +0000 (14:27 +0200)]
gateway: rename 2 variables
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 28 Aug 2012 11:47:33 +0000 (13:47 +0200)]
olsrd_plugin: remove #if 1
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 28 Aug 2012 11:43:44 +0000 (13:43 +0200)]
update comments on all ifdefs
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Ferry Huberts [Tue, 28 Aug 2012 11:43:41 +0000 (13:43 +0200)]
ifdef: fix some include ifdefs
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Hans-Christoph Steiner [Mon, 27 Aug 2012 19:25:05 +0000 (15:25 -0400)]
use the Microsoft standard '_WIN32' macro instead of the self-defined 'WIN32'
http://msdn.microsoft.com/en-us/library/
ff540443.aspx
Hans-Christoph Steiner [Mon, 27 Aug 2012 18:58:24 +0000 (14:58 -0400)]
use the POSIX standard '__linux__' macro instead of 'linux'
"Use __linux__ for this purpose, not linux. Although the latter is defined, it is not POSIX compliant."
http://www.faqs.org/docs/Linux-HOWTO/GCC-HOWTO.html#INDEX.25
Ferry Huberts [Mon, 27 Aug 2012 11:04:11 +0000 (13:04 +0200)]
http_info: pud satellites in use are now green, not in use are red
To improve readability
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
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>
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>
Henning Rogge [Sat, 25 Aug 2012 11:03:08 +0000 (13:03 +0200)]
Pud: Do not use the variable name strlen.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Henning Rogge [Wed, 15 Aug 2012 16:00:55 +0000 (18:00 +0200)]
Merge branch 'master' into stable
Saverio Proto [Mon, 13 Aug 2012 22:09:47 +0000 (00:09 +0200)]
Revert "mDNS: init ListOfFilteredHosts in the proper place and not at every received packet"
This reverts commit
0b0ddb77c04ca8f490ede4438acf7073f5a47be1.
Conflicts:
lib/mdns/src/mdns.c
It caused a segfault
Saverio Proto [Mon, 13 Aug 2012 21:29:02 +0000 (23:29 +0200)]
mDNS: Fixed typo in README
Saverio Proto [Mon, 13 Aug 2012 20:03:17 +0000 (22:03 +0200)]
mDNS: better debug support for filtered hosts feature
Saverio Proto [Mon, 13 Aug 2012 19:40:41 +0000 (21:40 +0200)]
mDNS: trivial, removed TODO from code for something that was implemented
Saverio Proto [Mon, 13 Aug 2012 19:27:39 +0000 (21:27 +0200)]
mDNS: init ListOfFilteredHosts in the proper place and not at every received packet
Saverio Proto [Wed, 30 May 2012 17:18:45 +0000 (19:18 +0200)]
mDNS: Change version of mdns plugin to 1.0.1 after GSoC 2012 work by Alessandro Gnagni
Saverio Proto [Sun, 12 Aug 2012 12:35:42 +0000 (14:35 +0200)]
mDNS: trivial debug print fix and code readibility improvement
Alessandro [Sun, 12 Aug 2012 11:12:31 +0000 (13:12 +0200)]
mDNS: BUGFIX, mDNS plugin, hello message of router election not sent if debug = 0
Saverio Proto [Sat, 28 Jul 2012 16:10:38 +0000 (18:10 +0200)]
mDNS: Update checksum field of the IPv4 Header after altering TTL
Alessandro [Thu, 26 Jul 2012 14:03:07 +0000 (16:03 +0200)]
mDNS: Reworked logic of router Election. The election is now handled on interface basis, because the router could have one interface where it needs to be master and another interface where it needs to be disabled. There was a logical bug in the earlier implementation.
Alessandro [Wed, 18 Jul 2012 09:47:39 +0000 (11:47 +0200)]
mDNS: Updated README file for mDNS plugin
Alessandro [Sat, 14 Jul 2012 14:56:45 +0000 (16:56 +0200)]
mDNS: Implemented Host Filtering for ipv4 and ipv6, writing in the config file which hosts to ignore. The mDNS packets from the ignored hosts will be ignored and not propagated in the network
Saverio Proto [Fri, 20 Jul 2012 12:35:25 +0000 (14:35 +0200)]
mDNS: Fix most of the warnings from the compiler
Alessandro Gnagni [Wed, 13 Jun 2012 15:48:32 +0000 (17:48 +0200)]
mDNS: Implemented router election mechansim to have only 1 active mDNS OLSR router in 1 LAN
Implemented IPv4 and IPv6 socket that should
capture the router election signalling packets (hellos)
Hellos are sent out with a timer
A second time triggers the router to decide if he is master
Alessandro Gnagni [Tue, 5 Jun 2012 07:20:46 +0000 (09:20 +0200)]
mDNS: review of Alessandro Gnagni patch, inserted a config value to enable or disable TTL check and change, default is enabled.
Saverio Proto [Thu, 10 May 2012 07:50:03 +0000 (09:50 +0200)]
mDNS: Upgrading the container_of.h that was backported from src/common in master
A newer version is present in master and this commit makes the upgrade
Saverio Proto [Tue, 8 May 2012 13:42:17 +0000 (15:42 +0200)]
mDNS: Skeleton code for new host filter feature in mDNS plugin
Skeleton code of the new feature of mDNS to filter
out some hosts to prevent forwarding of services
we dont want to propagate in the mesh
In the configuration file we can write which IP address we want to discard
and do not propagate in the mDNS flooding.
For example if I have Apple AirPort at home, do not giving out any service
I dont want those mDNS packets travelling in the all mesh network.
Alessandro Gnagni [Sat, 5 May 2012 21:41:20 +0000 (23:41 +0200)]
mDNS: Fixing loops for mDNS packets when mDNS plugin is misconfigured
If two mDNS plug-in enabled OLSR routers are attached to the same HNA network, then mDNS packets will loop back and forth between the two, also flooding the whole OLSR network. For the moment the temporary solution to this problem was to enable the plug-in on one router at a time on the same HNA. A real implemented here is the following:
usually mDNS packets have a TTL != 1, so:
capture only mDNS packets with TTL != 1
when decapsulating mDNS packets, set TTL = 1
where TTL is the IP Time-to-live field or the IPv6 HopLimit field
* Modified code to forward mdns packet from HNA into OLSRd network changing TTL/Hlim to 1
* Now the mDns plugin discard all packet from HNA that have TTL/Hlim equals to 1
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ferry Huberts [Tue, 24 Jul 2012 15:30:24 +0000 (17:30 +0200)]
gateway: add some asserts on gw_handler
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>