test,examples: fix scripts to avoid 'has_key' for Python 3

'has_key' on Dictionaries is removed from Python3 in favor of 'in'.

Signed-off-by: Thomas Haller <thaller@redhat.com>
core: add nm_utils_ip6_route_metric_normalize() function

Kernel treats IPv6 route metrics with value zero (0) special.
Add a utility function that helps accounting for that.

Signed-off-by: Thomas Haller <thaller@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=738590
core: add nm_ipX_config_get_direct_route_for_host() functions

add two functions nm_ip4_config_get_direct_route_for_host()
and nm_ip6_config_get_direct_route_for_host() to check if we have
a direct (non-gw) route to a certain host.

Signed-off-by: Thomas Haller <thaller@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=738590
dhcp: don't add special route to DHCP server when having direct route

When the DHCP server address is not on the same subnet, we used
to add a /32 route to the server IP address via the gateway.

Do not add this route, if we already got a direct route from DHCP.

https://bugzilla.gnome.org/show_bug.cgi?id=738590

Signed-off-by: Thomas Haller <thaller@redhat.com>
core: merge branch 'th/bgo738590_dhcp_server_route' (bgo #738590)

https://bugzilla.gnome.org/show_bug.cgi?id=738590

Signed-off-by: Thomas Haller <thaller@redhat.com>
doc: fix IGNORE_HFILES referencing non-existing *-bindings.h files

Fixes: 8ad3ff24ad2e2e2879cd1694be89f939791db1bb
Signed-off-by: Thomas Haller <thaller@redhat.com>
doc: fix IGNORE_HFILES in libnm-glib

nm-dbus-helpers-private.h is a private header file to libnm-glib/.

nm-settings-connection-glue.h and nm-settings-glue.h are not part
of libnm-glib/, they are inside src/.

Signed-off-by: Thomas Haller <thaller@redhat.com>
all: add macros to suppress compiler warnings

Signed-off-by: Thomas Haller <thaller@redhat.com>
wimax/build: use NM_PRAGMA_WARNING_DISABLE() macro instead of #pragma

Signed-off-by: Thomas Haller <thaller@redhat.com>
cli: Activating an already activated connection fails

The new ActiveConnection starts in UNKNOWN state and we immediately assume
it failed. We should wait for DEACTIVATED or ACTIVATED instead.

https://bugzilla.gnome.org/show_bug.cgi?id=739339