Linux下枚举系统中网卡的信息(3)

puts("");
                 puts("");
                }
#endif

else {
               char str[256];

sprintf (str, "cpm: ioctl device %s", buf[intrface].ifr_name);
               perror (str);
           }
        }
      } else
         perror ("cpm: ioctl");

} else
      perror ("cpm: socket");

close(fd);
    return retn;
}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwfjpp.html