X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=inline;f=discover%2Fnetwork.c;h=2de96ec55d1f061fc301dc9b36fe717c8b3c0a5b;hb=5496eee36f70631ae45403f90ed7b4dc143f27c0;hp=4b79015c24a2ec52dc83db86a5e2b633729ca449;hpb=58a9dfb65164095f32b1d5f7070015da5111d884;p=petitboot diff --git a/discover/network.c b/discover/network.c index 4b79015..2de96ec 100644 --- a/discover/network.c +++ b/discover/network.c @@ -515,6 +515,9 @@ static int network_handle_nlmsg(struct network *network, struct nlmsghdr *nlmsg) return 0; } + /* ignore the default tun device in some environments */ + if (strncmp(ifname, "tun", strlen("tun")) == 0) + return 0; interface = find_interface_by_ifindex(network, info->ifi_index); if (!interface) {