X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=blobdiff_plain;f=meta-openvuplus%2Frecipes-extended%2Fethtool%2Fethtool%2Fvuplus.patch;h=6c922c9c297a3540a601cee7ee003df40c569d7f;hp=a5fc603c8c1fbfb25b1afc88eaeed9794064a31f;hb=14f3d76a73f47095a8151a479a10ec1f603159ec;hpb=b35a866e1adb64dda7b16a6c61316d5834f1cef5 diff --git a/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch b/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch index a5fc603..6c922c9 100644 --- a/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch +++ b/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch @@ -1,21 +1,20 @@ -Index: ethtool-4/ethtool.c -=================================================================== ---- ethtool-4/ethtool.c (revision 3) -+++ ethtool-4/ethtool.c (working copy) -@@ -1578,6 +1578,27 @@ +diff --git a/ethtool.c b/ethtool.c +index acac32a..a47daaa 100644 +--- a/ethtool.c ++++ b/ethtool.c +@@ -2253,6 +2253,25 @@ static int do_gset(struct cmd_context *ctx) } else if (errno != EOPNOTSUPP) { perror("Cannot get link status"); } -+#if 1 /* ikseong - check running flags */ -+ else -+ { -+ if(ioctl(fd, SIOCGIFFLAGS, ifr) < 0) ++ else{ ++ err = send_ioctl(ctx, &edata); ++ if (err < 0) + { + fprintf(stdout,"SIOCGIFFLAGS error \n"); + } + else + { -+ if((ifr->ifr_flags & IFF_RUNNING)) ++ if((ctx->ifr.ifr_flags & IFF_RUNNING)) + { + fprintf(stdout, " Link detected: yes\n"); + } @@ -23,10 +22,9 @@ Index: ethtool-4/ethtool.c + { + fprintf(stdout, " Link detected: no\n"); + } -+ allfail=0; ++ allfail = 0; + } + } -+#endif - + if (allfail) { fprintf(stdout, "No data available\n");