发布时间:2015-11-04 14:12:20
结构原型:struct ifreq{#define IFHWADDRLEN 6 union { char ifrn_name[IFNAMSIZ]; } ifr_ifrn; union { struct sockaddr ifru_addr; struct sockaddr ifru_dstaddr; struct .........【阅读全文】
发布时间:2015-11-04 14:09:04
PF_PACKET 设备层编程接口定义:Cpp代码#include "/usr/include/sys/socket. h" #include "/usr/includ/sys/if_packet. h" packet_socket = socket(PF_PACKET, socket_type, protocol);&nb.........【阅读全文】