标签:
1.定义IP头部格式
2.定义数据校验协议
public struct IP_Head { public char headlength ; public char version; public char tos; public short total_len; public short identifier; public char ttl; public char protocal; public short checknum; public long sourceIP; public long destIP; } public struct ICMP_Header { byte type; byte code; short cknum; short id; short seq; }
标签:
原文地址:http://www.cnblogs.com/363546828/p/5101843.html