1 diff --git a/ethtool.c b/ethtool.c
2 index acac32a..a47daaa 100644
5 @@ -2253,6 +2253,25 @@ static int do_gset(struct cmd_context *ctx)
6 } else if (errno != EOPNOTSUPP) {
7 perror("Cannot get link status");
10 + err = send_ioctl(ctx, &edata);
13 + fprintf(stdout,"SIOCGIFFLAGS error \n");
17 + if((ctx->ifr.ifr_flags & IFF_RUNNING))
19 + fprintf(stdout, " Link detected: yes\n");
23 + fprintf(stdout, " Link detected: no\n");
30 fprintf(stdout, "No data available\n");