--- isys/linkdetect.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/isys/linkdetect.c b/isys/linkdetect.c index 1d1e33e..20877b3 100644 --- a/isys/linkdetect.c +++ b/isys/linkdetect.c @@ -130,6 +130,20 @@ int get_link_status(char * devname) { return -1; } + /* make sure interface is up and activated */ + memset(&ifr, 0, sizeof(ifr)); + strcpy(ifr.ifr_name, devname); + + if (ioctl(sock, SIOCGIFFLAGS, &ifr) < 0) { + return -1; + } + + ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); + + if (ioctl(sock, SIOCSIFFLAGS, &ifr) < 0) { + return -1; + } + /* Setup our control structures. */ memset(&ifr, 0, sizeof(ifr)); strcpy(ifr.ifr_name, devname); -- 1.6.6 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list