Hi,
On Wed, 2012-06-20 at 15:42 +0100, Stavros Vagionitis wrote:
> Instead of removing and creating again the device, now I just change the
> identification string, from zero to the real one. The change is happening
> in the same file, src/detect.c and as follows:
I think we can catch a zero address earlier than that, can you try with
the following patch and see if it works out?
Patrik
---
src/rtnl.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/rtnl.c b/src/rtnl.c
index a6ff84b..d324385 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -427,6 +427,12 @@ static void process_newlink(unsigned short type, int
index, unsigned flags,
switch (type) {
case ARPHRD_ETHER:
+ if (memcmp(&address, &compare, ETH_ALEN) == 0) {
+ connman_info("%s {newlink} ignore index %d address %s",
+ ifname, index, str);
+ return;
+ }
+ /* fall through */
case ARPHRD_LOOPBACK:
case ARPHDR_PHONET_PIPE:
case ARPHRD_NONE:
--
1.7.10
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman