diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-06-17 15:31:59 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-06-18 15:49:09 +0200 |
commit | 91d447df19a7f72b0ebb6c7cc05680c5f856f63b (patch) | |
tree | 171fb95d4947e23fff94b8d39566e0933c5f53c6 /src/nm-connectivity.h | |
parent | 11d59de600e4af093db642279945d79efa5d1f33 (diff) | |
download | NetworkManager-91d447df19a7f72b0ebb6c7cc05680c5f856f63b.tar.gz |
device: don't start connectivity check on unconfigured devices
If the interface has no carrier, no addresses or no routes there is no
point in starting a connectivity check on it because it will fail.
Moreover, doing the check on a device without routes causes the
addition of a negative entry in the ARP table for each of the
addresses associated with the connectivity check host; this can lead
to poor network performances.
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/181
Diffstat (limited to 'src/nm-connectivity.h')
-rw-r--r-- | src/nm-connectivity.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nm-connectivity.h b/src/nm-connectivity.h index ff2b8fd08b..00d0e6420a 100644 --- a/src/nm-connectivity.h +++ b/src/nm-connectivity.h @@ -73,6 +73,7 @@ typedef void (*NMConnectivityCheckCallback) (NMConnectivity *self, NMConnectivityCheckHandle *nm_connectivity_check_start (NMConnectivity *self, int family, + NMPlatform *platform, int ifindex, const char *iface, NMConnectivityCheckCallback callback, |