NetworkManager/src/platform
Thomas Haller 7dfdcd36ba core: fix checks for default routes by comparing the prefix length
At some places, we considered a default route to be a route with
destination network 0.0.0.0 (::). This is wrong because a default route
is a route with plen==0.

This is for example relevant for OpenVPN which adds two routes
0.0.0.0/1 and 128.0.0.0/1 to hijack the default route. We should
not treat 0.0.0.0/1 as default route, instead  NM should treat
it as any other subnet route (even if it effectively routes large
parts).

Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit 06703c1670)

Conflicts:
	src/platform/nm-platform.h
2014-07-30 00:11:26 +02:00
..
tests platform/test: use proper to_string() functions when printing NMPlaformIP[46]Address in dump_interface() 2014-06-20 17:22:26 -05:00
wifi wifi: fix WoWLAN detection 2014-06-20 17:28:48 -05:00
Makefile.am platform: add minimal Makefile.am for convenience 2013-06-19 13:48:29 +02:00
nm-fake-platform.c platform: improve tracking of route sources 2014-06-06 10:24:43 -04:00
nm-fake-platform.h platform: link management 2013-04-10 16:40:58 +02:00
nm-linux-platform.c core: fix checks for default routes by comparing the prefix length 2014-07-30 00:11:26 +02:00
nm-linux-platform.h platform: link management 2013-04-10 16:40:58 +02:00
nm-platform.c platform: extend nm_platform_ip_address_cmp_expiry() to handle addresses without timestamp 2014-06-20 17:22:27 -05:00
nm-platform.h core: fix checks for default routes by comparing the prefix length 2014-07-30 00:11:26 +02:00