ICMP head data structure

zhaozj2021-02-16  48

ICMP header: /// / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / TYPEDEF STRUCTY : // Packet type BYTE ICE ICMPCODE; File: // Packet Type Further Information Ushort ICMPCHECKSUM; Union File: / / Different data {struct {UNSIGNED Char UC1, UC2, UC3, UC4;} SUC; struct {unsigned short us1, us2;} sUS; unsigned long sUL;} sICMP; unsigned long ICMP_Originate_Timestamp; file: // not a standard head, Oh, but good enough unsigned long ICMP_Receive_Timestamp; unsigned long ICMP_Transmit_Timestamp;} ICMPHeader;

/ * This head is my synthesis, and it should be more close to the standard head structure. * /

转载请注明原文地址:https://www.9cbs.com/read-27067.html

New Post(0)