能解析cap文件并发送原始数据报文,并进行统计片段:staticintsend_init(socket_message_t*socket_msg,char*dev_name){memset(&socket_msg->addr,0,sizeof(structsockaddr_ll));if(-1==(socket_msg->sd=socket(PF_PACKET,SOCK_RAW,htons(ETH_P_IP)))){//创建套接字SOCK_RAW为原始套接字return-2;}socket_msg->addr.sll_ifindex=inject_pk