Hi Marcel, > Hi Benoit, > > > I'm using an udev rule to rename network interfaces on my device. If a > > particular interface is plugged before connman is started, the new name > > will be used but if it is plugged after, connman will still use the old > > name. > > > > My gut feeling is that it looks racy; Do you think this renaming is > > just cosmetic (i.e. test/list-services showing the old name) or could > > it triggers bugs ? > > > > I tried to write a small patch to have connman pick up the new name. > > Right now, all it does is break ofono's ability to activate a context > > (I'm renaming a 3G modem network interface). > > if oFono doesn't has the right name, then ConnMan doesn't either. In > case of 3G you get the interface name from oFono and not RTNL. > Ok, that would explain why my patch breaks activate_context.
That aside, I am still worried that renaming a network interface could have some strange consequences on connman : read_uevent (rtnl.c) is using the interface name to read a file in sysfs. Maybe I should simply avoid renaming network interfaces ? -- Cheers, Benoît. _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
