diff options
author | Thomas Haller <thaller@redhat.com> | 2015-10-22 15:15:47 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-11-02 13:57:01 +0100 |
commit | aa5b89a2ec8db5735925f78f3c91885a513ce51e (patch) | |
tree | bfc9575d7a31fde059d295ef8bd840443e2c9dd0 /src/nm-ip4-config.h | |
parent | 59eb21f4a99ab5d3612ae82e04e4543bfd5a2429 (diff) | |
download | NetworkManager-aa5b89a2ec8db5735925f78f3c91885a513ce51e.tar.gz |
ip4-config: let the IPv4 device route depend on the peer-address
Usually, the peer-address is the same as the local address.
In case where it is not, it is the peer-address that determines
the IPv4 device-route. So we must use the peer-address.
Also, don't consider device-routes with the first octet of zero,
just like kernel does.
Also, nm_ip4_config_get_subnet_for_host() is effectively the same
as nm_ip4_config_destination_is_direct(). So drop it.
Diffstat (limited to 'src/nm-ip4-config.h')
-rw-r--r-- | src/nm-ip4-config.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nm-ip4-config.h b/src/nm-ip4-config.h index 1c76b97e99..160f2246bf 100644 --- a/src/nm-ip4-config.h +++ b/src/nm-ip4-config.h @@ -102,7 +102,6 @@ guint32 nm_ip4_config_get_num_routes (const NMIP4Config *config); const NMPlatformIP4Route *nm_ip4_config_get_route (const NMIP4Config *config, guint32 i); const NMPlatformIP4Route *nm_ip4_config_get_direct_route_for_host (const NMIP4Config *config, guint32 host); -const NMPlatformIP4Address *nm_ip4_config_get_subnet_for_host (const NMIP4Config *config, guint32 host); /* Nameservers */ void nm_ip4_config_reset_nameservers (NMIP4Config *config); |