根据ifreq&ioctl获取linux设备网卡相关信息 参考文档:struct ifreq学习和实例 == http://blog.csdn.net/gujintong1110/article/details/45530911