diff options
Diffstat (limited to 'debian/patches/50-bridge-interfaces.patch')
| -rw-r--r-- | debian/patches/50-bridge-interfaces.patch | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/debian/patches/50-bridge-interfaces.patch b/debian/patches/50-bridge-interfaces.patch index f58ba5d7..de243fbb 100644 --- a/debian/patches/50-bridge-interfaces.patch +++ b/debian/patches/50-bridge-interfaces.patch @@ -1,8 +1,8 @@ Index: network-manager/system-settings/plugins/ifupdown/plugin.c =================================================================== ---- network-manager.orig/system-settings/plugins/ifupdown/plugin.c 2010-12-04 16:41:38.000000000 +0100 -+++ network-manager/system-settings/plugins/ifupdown/plugin.c 2010-12-04 16:51:51.810906877 +0100 -@@ -360,9 +360,49 @@ +--- network-manager.orig/system-settings/plugins/ifupdown/plugin.c 2011-03-11 14:47:00.272832466 +0100 ++++ network-manager/system-settings/plugins/ifupdown/plugin.c 2011-03-11 14:47:01.272832466 +0100 +@@ -360,9 +360,51 @@ while (block) { if(!strcmp ("auto", block->type) || !strcmp ("allow-hotplug", block->type)) g_hash_table_insert (auto_ifaces, block->name, GUINT_TO_POINTER (1)); @@ -15,11 +15,13 @@ Index: network-manager/system-settings/plugins/ifupdown/plugin.c + /* Try to find bridge ports */ + const char *ports = ifparser_getkey (block, "bridge_ports"); + if (ports) { -+ PLUGIN_PRINT("SCPlugin-Ifupdown", "found bridge ports %s for %s", ports, block->name); -+ char **port_ifaces = g_strsplit_set (ports, " \t", -1); -+ + int i; + int state = 0; ++ char **port_ifaces; ++ ++ PLUGIN_PRINT("SCPlugin-Ifupdown", "found bridge ports %s for %s", ports, block->name); ++ ++ port_ifaces = g_strsplit_set (ports, " \t", -1); + for (i = 0; i < g_strv_length (port_ifaces); i++) { + char *token = port_ifaces[i]; + /* Skip crazy stuff like regex or all */ @@ -53,7 +55,7 @@ Index: network-manager/system-settings/plugins/ifupdown/plugin.c /* Remove any connection for this block that was previously found */ exported = g_hash_table_lookup (priv->iface_connections, block->name); if (exported) { -@@ -385,6 +425,7 @@ +@@ -385,6 +427,7 @@ g_hash_table_insert (priv->well_known_interfaces, block->name, "known"); PLUGIN_PRINT("SCPlugin-Ifupdown", "adding mapping %s to well_known_interfaces", block->name); } |