diff options
Diffstat (limited to 'plugins/Ping/src/rawping.h')
-rw-r--r-- | plugins/Ping/src/rawping.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/Ping/src/rawping.h b/plugins/Ping/src/rawping.h index f5d9f877f5..59751d8c7a 100644 --- a/plugins/Ping/src/rawping.h +++ b/plugins/Ping/src/rawping.h @@ -20,26 +20,26 @@ // The IP header
struct IPHeader {
- BYTE h_len:4; // Length of the header in dwords
- BYTE version:4; // Version of IP
- BYTE tos; // Type of service
- USHORT total_len; // Length of the packet in dwords
- USHORT ident; // unique identifier
- USHORT flags; // Flags
- BYTE ttl; // Time to live
- BYTE proto; // Protocol number (TCP, UDP etc)
- USHORT checksum; // IP checksum
- ULONG source_ip;
- ULONG dest_ip;
+ BYTE h_len : 4; // Length of the header in dwords
+ BYTE version : 4; // Version of IP
+ BYTE tos; // Type of service
+ USHORT total_len; // Length of the packet in dwords
+ USHORT ident; // unique identifier
+ USHORT flags; // Flags
+ BYTE ttl; // Time to live
+ BYTE proto; // Protocol number (TCP, UDP etc)
+ USHORT checksum; // IP checksum
+ ULONG source_ip;
+ ULONG dest_ip;
};
// ICMP header
struct ICMPHeader {
- BYTE type; // ICMP packet type
- BYTE code; // Type sub code
- USHORT checksum;
- USHORT id;
- USHORT seq;
+ BYTE type; // ICMP packet type
+ BYTE code; // Type sub code
+ USHORT checksum;
+ USHORT id;
+ USHORT seq;
};
#pragma pack()
|