summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/rawping.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:34:54 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:34:54 +0000
commitb97306f8dc5e4f93bd3e6e5500a8b8338d6249a2 (patch)
tree2aadaa0640b4910b78b1e1e99718f220fbfa7622 /plugins/Ping/src/rawping.h
parent3dc4db00aa828d245e4f7a8a14233d624f3e2e7c (diff)
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13625 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src/rawping.h')
-rw-r--r--plugins/Ping/src/rawping.h32
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()