We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
web
|
Java
怎么判断原始套接字接收的数据包为icmp数据包
千锋教育
recvfrom ( sock raw fd, buf, sizeof(buf),0,NULL,NULL); 分析buf数组下标为12-13字节的数据,如果为0x0800, 并且buf数组下标为23字节的数据为1,就是icmp数据包