olsrd.git
4 years agosgw: fix a shadowing warning
Ferry Huberts [Mon, 20 Apr 2015 13:08:21 +0000 (15:08 +0200)]
sgw: fix a shadowing warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: refactor outputting JSON
Ferry Huberts [Mon, 20 Apr 2015 12:34:34 +0000 (14:34 +0200)]
jsoninfo: refactor outputting JSON

Nicer formatting and now correct as long as the *mark* functions
are used correctly.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: more comparison simplifications
Ferry Huberts [Mon, 20 Apr 2015 12:23:57 +0000 (14:23 +0200)]
jsoninfo: more comparison simplifications

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: clearer distinction between JSON and non-JSON blocks
Ferry Huberts [Mon, 20 Apr 2015 12:21:33 +0000 (14:21 +0200)]
jsoninfo: clearer distinction between JSON and non-JSON blocks

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: some comparison simplifications
Ferry Huberts [Mon, 20 Apr 2015 12:25:28 +0000 (14:25 +0200)]
jsoninfo: some comparison simplifications

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agojsoninfo: formatting
Ferry Huberts [Mon, 20 Apr 2015 10:26:13 +0000 (12:26 +0200)]
jsoninfo: formatting

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: egress: Android is not Linux
Ferry Huberts [Tue, 7 Apr 2015 07:52:52 +0000 (09:52 +0200)]
sgw: egress: Android is not Linux

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: egress file: use full time resolution on Linux
Ferry Huberts [Tue, 7 Apr 2015 07:42:45 +0000 (09:42 +0200)]
sgw: egress file: use full time resolution on Linux

When checking the file modification time. The file might change
again in the same second that it was last read.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoRevert "Added simple hard-coded whitelist"
Sebastian Kürten [Thu, 12 Mar 2015 23:11:25 +0000 (00:11 +0100)]
Revert "Added simple hard-coded whitelist"

This reverts commit 31d4804b088fd30261fe3189ab00136a95d62a1f.

4 years agoAdded simple hard-coded whitelist
Sebastian Kürten [Thu, 12 Mar 2015 23:02:36 +0000 (00:02 +0100)]
Added simple hard-coded whitelist

We have a list of valid IP addresses which are whitelistet, currently
none of the others will be selected as gateway.

Each whitelistet IP has an associated factor that improves the natural
cost so that we can favor individual addresses over others.

4 years agopud: nmealib: doc: upgrade doxygen configuration file
Ferry Huberts [Thu, 26 Feb 2015 11:25:01 +0000 (12:25 +0100)]
pud: nmealib: doc: upgrade doxygen configuration file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: doc: disable generation of the PDF; pdflatex somehow fails
Ferry Huberts [Thu, 26 Feb 2015 11:22:54 +0000 (12:22 +0100)]
pud: nmealib: doc: disable generation of the PDF; pdflatex somehow fails

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: align nmea_random to olsrd _random
Ferry Huberts [Thu, 26 Feb 2015 10:50:15 +0000 (11:50 +0100)]
pud: nmealib: align nmea_random to olsrd _random

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoolsr_random: need to include time.h
Ferry Huberts [Thu, 26 Feb 2015 10:54:33 +0000 (11:54 +0100)]
olsr_random: need to include time.h

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoolsr_switch: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 01:41:23 +0000 (02:41 +0100)]
olsr_switch: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocontrib: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 01:14:12 +0000 (02:14 +0100)]
contrib: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agocontrib: fix the build
Ferry Huberts [Thu, 26 Feb 2015 01:17:40 +0000 (02:17 +0100)]
contrib: fix the build

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosecure: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 01:13:36 +0000 (02:13 +0100)]
secure: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 00:19:30 +0000 (01:19 +0100)]
pud: nmealib: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agowin32: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 00:11:34 +0000 (01:11 +0100)]
win32: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agobsd: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 00:27:14 +0000 (01:27 +0100)]
bsd: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agounix: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 00:11:16 +0000 (01:11 +0100)]
unix: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agomain: replace random() by our own function
Ferry Huberts [Thu, 26 Feb 2015 00:10:52 +0000 (01:10 +0100)]
main: replace random() by our own function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoolsr_random: introduce better random functions
Ferry Huberts [Thu, 26 Feb 2015 10:27:03 +0000 (11:27 +0100)]
olsr_random: introduce better random functions

These new function read /dev/urandom (or /dev/random as a fallback)
on platforms that support those devices. They invoke random() on
other platforms.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoquagga: minor readability fixes
Ferry Huberts [Wed, 25 Feb 2015 20:47:42 +0000 (21:47 +0100)]
quagga: minor readability fixes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoparser: fix a Coverity warning
Ferry Huberts [Wed, 25 Feb 2015 20:32:37 +0000 (21:32 +0100)]
parser: fix a Coverity warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agohttpinfo: fix a Coverity warning
Ferry Huberts [Wed, 25 Feb 2015 20:20:10 +0000 (21:20 +0100)]
httpinfo: fix a Coverity warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: fix a Coverity warning
Ferry Huberts [Wed, 25 Feb 2015 20:16:31 +0000 (21:16 +0100)]
pud: nmealib: fix a Coverity warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agopud: nmealib: fix a Coverity warning
Ferry Huberts [Wed, 25 Feb 2015 20:16:26 +0000 (21:16 +0100)]
pud: nmealib: fix a Coverity warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agodyn_gw: fix a Coverity warning
Ferry Huberts [Wed, 25 Feb 2015 20:16:11 +0000 (21:16 +0100)]
dyn_gw: fix a Coverity warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: gwContainer can't be null here
Ferry Huberts [Tue, 24 Feb 2015 15:43:56 +0000 (16:43 +0100)]
sgw: gwContainer can't be null here

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: minor improvement
Ferry Huberts [Tue, 24 Feb 2015 15:43:35 +0000 (16:43 +0100)]
sgw: minor improvement

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: ensure a bandwidth of 1 does not alias onto 0 when serialising
Ferry Huberts [Tue, 24 Feb 2015 10:54:31 +0000 (11:54 +0100)]
sgw: ensure a bandwidth of 1 does not alias onto 0 when serialising

Since a bandwidth of 1 is better than no bandwidth at all.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agokeep pushing data through dotdraw plugin
Henning Rogge [Thu, 19 Feb 2015 07:47:21 +0000 (08:47 +0100)]
keep pushing data through dotdraw plugin

4 years agotc: properly initialise the path_costs field in a new tc
Henning Rogge [Mon, 16 Feb 2015 10:32:37 +0000 (11:32 +0100)]
tc: properly initialise the path_costs field in a new tc

Signed-off-by: Henning Rogge <hrogge@gmail.com>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoarprefresh: README adjusted for plugin name
Teco Boot [Sat, 3 Jan 2015 15:35:52 +0000 (16:35 +0100)]
arprefresh: README adjusted for plugin name

4 years agopud: wireformat-java: improve java detection
Ferry Huberts [Thu, 11 Dec 2014 17:56:16 +0000 (18:56 +0100)]
pud: wireformat-java: improve java detection

Just ask java where its home directory is

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge branch 'release-0.6.8'
Ferry Huberts [Mon, 29 Dec 2014 12:01:55 +0000 (13:01 +0100)]
Merge branch 'release-0.6.8'

* release-0.6.8:
  Update version after release of v0.6.8
  Release v0.6.8

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoUpdate version after release of v0.6.8
Henning Rogge [Mon, 29 Dec 2014 11:17:19 +0000 (12:17 +0100)]
Update version after release of v0.6.8

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agoUpdate version after release of v0.6.8
Henning Rogge [Mon, 29 Dec 2014 11:17:19 +0000 (12:17 +0100)]
Update version after release of v0.6.8

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agoRelease v0.6.8 v0.6.8
Henning Rogge [Mon, 29 Dec 2014 11:17:09 +0000 (12:17 +0100)]
Release v0.6.8

Signed-off-by: Henning Rogge <hrogge@gmail.com>
4 years agoFix bug of former commit
Henning Rogge [Sun, 28 Dec 2014 13:51:52 +0000 (14:51 +0100)]
Fix bug of former commit

4 years agoPrevent memory leak when setting up new interface
Henning Rogge [Sun, 28 Dec 2014 13:04:41 +0000 (14:04 +0100)]
Prevent memory leak when setting up new interface

4 years agoRename 'struct interface' to 'struct interface_olsr'
Ferry Huberts [Thu, 11 Dec 2014 18:54:34 +0000 (19:54 +0100)]
Rename 'struct interface' to 'struct interface_olsr'

The struct name clashes on the Windows builds on Fedora 21
and the name is not very well chosen anyway.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agobuild: add some pud targets
Ferry Huberts [Thu, 4 Dec 2014 18:23:18 +0000 (19:23 +0100)]
build: add some pud targets

So that the coverity build can build everything in one go

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agobuild: uberclean must also remove builddata.txt
Ferry Huberts [Thu, 4 Dec 2014 18:34:12 +0000 (19:34 +0100)]
build: uberclean must also remove builddata.txt

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: fix output of /sgw command
Ferry Huberts [Wed, 3 Dec 2014 16:57:31 +0000 (17:57 +0100)]
txtinfo: fix output of /sgw command

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: react to path cost changes on all active gateways
Ferry Huberts [Wed, 3 Dec 2014 17:40:40 +0000 (18:40 +0100)]
sgw: react to path cost changes on all active gateways

Instead of only to path cost changes of the best active gateway

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: the costs are signed numbers
Ferry Huberts [Wed, 3 Dec 2014 16:16:55 +0000 (17:16 +0100)]
sgw: the costs are signed numbers

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: fix cost calculation for advertised speeds greater or equal than MAX
Ferry Huberts [Wed, 26 Nov 2014 17:04:09 +0000 (18:04 +0100)]
sgw: fix cost calculation for advertised speeds greater or equal than MAX

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: use MAX_SMARTGW_SPEED instead of hard-coding it
Ferry Huberts [Wed, 26 Nov 2014 17:04:31 +0000 (18:04 +0100)]
sgw: use MAX_SMARTGW_SPEED instead of hard-coding it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: tune the status file for IPv4, making it a bit more compact
Ferry Huberts [Tue, 25 Nov 2014 13:37:31 +0000 (14:37 +0100)]
sgw: tune the status file for IPv4, making it a bit more compact

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: uplink and downlink fields can be 9 chars wide in the output file
Ferry Huberts [Mon, 24 Nov 2014 14:31:18 +0000 (15:31 +0100)]
sgw: uplink and downlink fields can be 9 chars wide in the output file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: refactor egress file change detection
Ferry Huberts [Fri, 21 Nov 2014 15:44:58 +0000 (16:44 +0100)]
sgw: refactor egress file change detection

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: only advertise egress speeds
Ferry Huberts [Fri, 21 Nov 2014 12:04:38 +0000 (13:04 +0100)]
sgw: only advertise egress speeds

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: when there is no best overall link advertise 0 bandwidth
Ferry Huberts [Fri, 21 Nov 2014 11:22:35 +0000 (12:22 +0100)]
sgw: when there is no best overall link advertise 0 bandwidth

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: refresh the advertised speed when the best overall link changes
Ferry Huberts [Fri, 21 Nov 2014 10:45:23 +0000 (11:45 +0100)]
sgw: refresh the advertised speed when the best overall link changes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: always clear egress settings when this egress file is not readable
Ferry Huberts [Fri, 21 Nov 2014 09:43:35 +0000 (10:43 +0100)]
sgw: always clear egress settings when this egress file is not readable

Proper fix now.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoRevert "sgw: always clear egress settings when this egress file is not readable"
Ferry Huberts [Fri, 21 Nov 2014 09:30:23 +0000 (10:30 +0100)]
Revert "sgw: always clear egress settings when this egress file is not readable"

This reverts commit ad6b5a445925f4731a747bd721f33dcb524c0a79.

4 years agosgw: always clear egress settings when this egress file is not readable
Ferry Huberts [Mon, 17 Nov 2014 11:46:17 +0000 (12:46 +0100)]
sgw: always clear egress settings when this egress file is not readable

We need to do this because of the situation in which the egress file
was first successfully read and then it disappears; in that case all
the settings must be reset.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge branch 'master' of git://olsr.org/olsrd
Henning Rogge [Sun, 16 Nov 2014 15:07:00 +0000 (16:07 +0100)]
Merge branch 'master' of git://olsr.org/olsrd

4 years agoOnly use IPV6_TCLASS and IPV6_V6ONLY when defined
Henning Rogge [Sun, 16 Nov 2014 15:06:29 +0000 (16:06 +0100)]
Only use IPV6_TCLASS and IPV6_V6ONLY when defined

4 years agopud: duplicate android regex trick from nameservice
Ferry Huberts [Fri, 14 Nov 2014 13:31:47 +0000 (14:31 +0100)]
pud: duplicate android regex trick from nameservice

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: fix android build
Ferry Huberts [Fri, 14 Nov 2014 13:25:14 +0000 (14:25 +0100)]
sgw: fix android build

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoandroid: fixup regex makefile
Ferry Huberts [Fri, 14 Nov 2014 13:23:19 +0000 (14:23 +0100)]
android: fixup regex makefile

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoandroid: bump the NDK compiler version
Ferry Huberts [Fri, 14 Nov 2014 11:20:42 +0000 (12:20 +0100)]
android: bump the NDK compiler version

To get rid of some warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: android has no getline(), implement it
Ferry Huberts [Fri, 14 Nov 2014 13:21:52 +0000 (14:21 +0100)]
sgw: android has no getline(), implement it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agobuild: make TOPDIR an absolute path
Ferry Huberts [Fri, 14 Nov 2014 13:20:43 +0000 (14:20 +0100)]
build: make TOPDIR an absolute path

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: change the cached timestamp
Ferry Huberts [Fri, 14 Nov 2014 10:37:13 +0000 (11:37 +0100)]
sgw: change the cached timestamp

Some platforms don't have full resolution

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: unshadow a variable
Ferry Huberts [Fri, 14 Nov 2014 10:36:24 +0000 (11:36 +0100)]
sgw: unshadow a variable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: remove an unused variable
Ferry Huberts [Fri, 14 Nov 2014 10:36:12 +0000 (11:36 +0100)]
sgw: remove an unused variable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: initialise the egress best routes differently
Ferry Huberts [Fri, 14 Nov 2014 10:35:59 +0000 (11:35 +0100)]
sgw: initialise the egress best routes differently

Some platforms can't deal with the current initialisation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: do not make the egress types available only on linux
Ferry Huberts [Fri, 14 Nov 2014 10:35:17 +0000 (11:35 +0100)]
sgw: do not make the egress types available only on linux

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge branch 'msgw'
Ferry Huberts [Fri, 14 Nov 2014 09:38:05 +0000 (10:38 +0100)]
Merge branch 'msgw'

* msgw: (23 commits)
  sgw: do not prematurely exit doRoutesMultiGw
  sgw: reset cached egress file timestamp on file access errors
  sgw: show all sgw tunnels in the output file instead of only the active one
  sgw: lazily determine the sgw costs weights
  sgw: initialise the egress interfaces earlier
  sgw: fix default path costs for egress interfaces
  sgwdynspeed: only allow the plugin in single-sgw mode
  sgw: program egress link routes
  sgw: program best egress link route
  sgw: program best overall link routes
  sgw: add reportNewGateway function
  sgw: add the smart gateway status file writer
  sgw: add SmartGatewayStatusFile setting
  sgw: determine best overall link in doRoutesMultiGw
  sgw: determine best exit link in doRoutesMultiGw
  sgw: introduce function to process multi-sgw changes
  sgw: use the smartgw_tunnel_monitor to track up/down of egress interfaces
  sgw: track the up status of an egress interface
  sgw: track the interface index of an egress interface
  sgw: add egress file reader
  ...

4 years agosgw: do not prematurely exit doRoutesMultiGw
Ferry Huberts [Wed, 12 Nov 2014 17:27:44 +0000 (18:27 +0100)]
sgw: do not prematurely exit doRoutesMultiGw

Some change happen so the status file must be written

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: reset cached egress file timestamp on file access errors
Ferry Huberts [Wed, 12 Nov 2014 16:21:28 +0000 (17:21 +0100)]
sgw: reset cached egress file timestamp on file access errors

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: show all sgw tunnels in the output file instead of only the active one
Ferry Huberts [Wed, 12 Nov 2014 14:55:15 +0000 (15:55 +0100)]
sgw: show all sgw tunnels in the output file instead of only the active one

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: lazily determine the sgw costs weights
Ferry Huberts [Wed, 12 Nov 2014 13:14:03 +0000 (14:14 +0100)]
sgw: lazily determine the sgw costs weights

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: initialise the egress interfaces earlier
Ferry Huberts [Wed, 12 Nov 2014 13:12:31 +0000 (14:12 +0100)]
sgw: initialise the egress interfaces earlier

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: fix default path costs for egress interfaces
Ferry Huberts [Mon, 10 Nov 2014 12:18:13 +0000 (13:18 +0100)]
sgw: fix default path costs for egress interfaces

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgwdynspeed: only allow the plugin in single-sgw mode
Ferry Huberts [Fri, 15 Aug 2014 10:51:19 +0000 (12:51 +0200)]
sgwdynspeed: only allow the plugin in single-sgw mode

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: program egress link routes
Ferry Huberts [Fri, 31 Oct 2014 12:08:11 +0000 (13:08 +0100)]
sgw: program egress link routes

When an egress interface has a network then a network route is
programmed in the table corresponding to the egress interface.
A default route is always programmed in that same table.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: program best egress link route
Ferry Huberts [Fri, 31 Oct 2014 12:05:42 +0000 (13:05 +0100)]
sgw: program best egress link route

This is a default route in the routing table corresponding to the
best egress link. If there is no such link, then a blackhole route
is programmed to prevent accidental looping of sgw tunnel traffic.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: program best overall link routes
Ferry Huberts [Fri, 31 Oct 2014 11:57:35 +0000 (12:57 +0100)]
sgw: program best overall link routes

These are a set of 2 /1 routes to override any default gateway
routes that are setup through other means such as a DHCP client.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: add reportNewGateway function
Ferry Huberts [Fri, 31 Oct 2014 11:50:30 +0000 (12:50 +0100)]
sgw: add reportNewGateway function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: add the smart gateway status file writer
Ferry Huberts [Fri, 31 Oct 2014 11:48:50 +0000 (12:48 +0100)]
sgw: add the smart gateway status file writer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: add SmartGatewayStatusFile setting
Ferry Huberts [Wed, 29 Oct 2014 14:40:31 +0000 (15:40 +0100)]
sgw: add SmartGatewayStatusFile setting

The status file writer will be added later on.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: determine best overall link in doRoutesMultiGw
Ferry Huberts [Fri, 31 Oct 2014 11:45:37 +0000 (12:45 +0100)]
sgw: determine best overall link in doRoutesMultiGw

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: determine best exit link in doRoutesMultiGw
Ferry Huberts [Fri, 31 Oct 2014 11:43:17 +0000 (12:43 +0100)]
sgw: determine best exit link in doRoutesMultiGw

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: introduce function to process multi-sgw changes
Ferry Huberts [Fri, 31 Oct 2014 11:33:12 +0000 (12:33 +0100)]
sgw: introduce function to process multi-sgw changes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: use the smartgw_tunnel_monitor to track up/down of egress interfaces
Ferry Huberts [Fri, 31 Oct 2014 11:29:33 +0000 (12:29 +0100)]
sgw: use the smartgw_tunnel_monitor to track up/down of egress interfaces

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: track the up status of an egress interface
Ferry Huberts [Wed, 29 Oct 2014 13:00:41 +0000 (14:00 +0100)]
sgw: track the up status of an egress interface

We need this later.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: track the interface index of an egress interface
Ferry Huberts [Wed, 29 Oct 2014 12:52:38 +0000 (13:52 +0100)]
sgw: track the interface index of an egress interface

We need this later.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: add egress file reader
Ferry Huberts [Fri, 31 Oct 2014 11:26:05 +0000 (12:26 +0100)]
sgw: add egress file reader

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: add egress file reader settings
Ferry Huberts [Wed, 29 Oct 2014 10:22:55 +0000 (11:22 +0100)]
sgw: add egress file reader settings

* SmartGatewayEgressFile: the file with egress bandwidths and network
  configurations.
* SmartGatewayEgressFilePeriod: the period on which to check & process
  the SmartGatewayEgressFile.

The egress file reader will be added later on.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: store table & rule numbers in the sgw_egress_if structure
Ferry Huberts [Fri, 31 Oct 2014 11:11:49 +0000 (12:11 +0100)]
sgw: store table & rule numbers in the sgw_egress_if structure

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: move 'struct sgw_egress_if' type into a separate include file
Ferry Huberts [Tue, 28 Oct 2014 13:18:47 +0000 (14:18 +0100)]
sgw: move 'struct sgw_egress_if' type into a separate include file

Some egress types will be added later on and the global types file
doesn't really need the types anyway.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agotxtinfo: fix formatting in ipc_print_sgw
Ferry Huberts [Wed, 12 Nov 2014 10:41:54 +0000 (11:41 +0100)]
txtinfo: fix formatting in ipc_print_sgw

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agosgw: fix deserialize_gw_speed
Ferry Huberts [Mon, 10 Nov 2014 12:14:57 +0000 (13:14 +0100)]
sgw: fix deserialize_gw_speed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
4 years agoMerge branch 'release-0.6.7'
Ferry Huberts [Fri, 24 Oct 2014 17:17:58 +0000 (19:17 +0200)]
Merge branch 'release-0.6.7'

* release-0.6.7:
  release: fix up the CHANGELOG
  Update version after release of v0.6.7.1
  Release v0.6.7.1

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