1 Index: ethtool-4/ethtool.c
2 ===================================================================
3 --- ethtool-4/ethtool.c (revision 3)
4 +++ ethtool-4/ethtool.c (working copy)
6 } else if (errno != EOPNOTSUPP) {
7 perror("Cannot get link status");
9 +#if 1 /* ikseong - check running flags */
12 + if(ioctl(fd, SIOCGIFFLAGS, ifr) < 0)
14 + fprintf(stdout,"SIOCGIFFLAGS error \n");
18 + if((ifr->ifr_flags & IFF_RUNNING))
20 + fprintf(stdout, " Link detected: yes\n");
24 + fprintf(stdout, " Link detected: no\n");
32 fprintf(stdout, "No data available\n");