[基础知识说明] 结构原型: /* * Interface request structure used for socket * ioctl's. All interface ioctl's must have parameter * definitions which begin with ifr_name. The * remainder may be interface specific. */ struct ifreq {#define IFHWADDRLEN 6 union { …
结构原型: /* * Interface request structure used for socket * ioctl's. All interface ioctl's must have parameter * definitions which begin with ifr_name. The * remainder may be interface specific. */ struct ifreq {#define IFHWADDRLEN 6 union { char ifr…