Check interface name change and store it.
Do not merge as is, this breaks ofono's activate_context.
---
 src/rtnl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/rtnl.c b/src/rtnl.c
index b10d835..06f4ff8 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -462,6 +462,10 @@ static void process_newlink(unsigned short type, int 
index, unsigned flags,
 
                if (type == ARPHRD_ETHER)
                        read_uevent(interface);
+       } else if (strcmp(interface->name, ifname) != 0) {
+               DBG("%s renamed to %s index %d", interface->name, ifname, 
index);
+               g_free(interface->name);
+               interface->name = g_strdup(ifname);
        }
 
        for (list = rtnl_list; list; list = list->next) {
-- 
1.7.1

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to