Print IFFLAGS before interface up/down 41/235041/2 accepted/tizen/unified/20200603.150131 submit/tizen/20200602.082342
authorCheoleun Moon <chleun.moon@samsung.com>
Tue, 2 Jun 2020 02:19:46 +0000 (11:19 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Tue, 2 Jun 2020 06:37:26 +0000 (15:37 +0900)
Change-Id: I008a96e2603d3aff4c4546b1434a37b0967f53de
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/utils/util.c

index 26beb05..363f6ef 100755 (executable)
@@ -384,6 +384,7 @@ gboolean netconfig_interface_up(const char *ifname)
                return FALSE;
        }
 
+       DBG("IFFLAGS: %x", ifr.ifr_flags);
        ifr.ifr_flags |= (IFF_UP | IFF_DYNAMIC);
        if (ioctl(fd, SIOCSIFFLAGS, &ifr) < 0) {
                ERR("Fail to set IFFLAGS %d", errno);
@@ -417,6 +418,7 @@ gboolean netconfig_interface_down(const char *ifname)
                return FALSE;
        }
 
+       DBG("IFFLAGS: %x", ifr.ifr_flags);
        ifr.ifr_flags = (ifr.ifr_flags & ~IFF_UP) | IFF_DYNAMIC;
        if (ioctl(fd, SIOCSIFFLAGS, &ifr) < 0) {
                ERR("Fail to set IFFLAGS %d", errno);