From: Cheoleun Moon Date: Tue, 2 Jun 2020 02:19:46 +0000 (+0900) Subject: Print IFFLAGS before interface up/down X-Git-Tag: submit/tizen/20200602.082342^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ae79f6c9671ea3d4cdb38bef3ec1c45b9af533b;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Print IFFLAGS before interface up/down Change-Id: I008a96e2603d3aff4c4546b1434a37b0967f53de Signed-off-by: Cheoleun Moon --- diff --git a/src/utils/util.c b/src/utils/util.c index 26beb05..363f6ef 100755 --- a/src/utils/util.c +++ b/src/utils/util.c @@ -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);