[PATCH 3/8] ethernet: Check kernel interface binding when matching config
- From: Thomas Graf <tgraf redhat com>
- To: networkmanager-list gnome org
- Cc: Thomas Graf <tgraf redhat com>
- Subject: [PATCH 3/8] ethernet: Check kernel interface binding when matching config
- Date: Mon, 21 Nov 2011 17:50:15 +0100
When matching an ethernet device with connection settings, check if
the connection needs to be bound to a specific kernel interface.
Signed-off-by: Thomas Graf <tgraf redhat com>
---
src/nm-device-ethernet.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/nm-device-ethernet.c b/src/nm-device-ethernet.c
index 9390ecf..d398bf0 100644
--- a/src/nm-device-ethernet.c
+++ b/src/nm-device-ethernet.c
@@ -1858,6 +1858,11 @@ connection_match_config (NMDevice *self, const GSList *connections)
for (iter = (GSList *) connections; iter; iter = g_slist_next (iter)) {
NMConnection *candidate = NM_CONNECTION (iter->data);
+ const char *iface;
+
+ iface = nm_connection_get_iface_name (candidate);
+ if (iface && strcmp (nm_device_get_iface (self), iface))
+ continue;
s_con = nm_connection_get_setting_connection (candidate);
g_assert (s_con);
--
1.7.7.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]