summaryrefslogtreecommitdiff
path: root/ping/rawping.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ping/rawping.cpp')
-rw-r--r--ping/rawping.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ping/rawping.cpp b/ping/rawping.cpp
index 65478e2..c5289dd 100644
--- a/ping/rawping.cpp
+++ b/ping/rawping.cpp
@@ -62,7 +62,7 @@ extern int init_raw_ping() {
ICMPHeader *header = (ICMPHeader *)packet;
- header->type = ICMP_ECHO_REQUEST;
+ header->type = PT_ICMP_ECHO_REQUEST;
header->code = 0;
header->id = (USHORT)GetCurrentProcessId();
@@ -177,7 +177,7 @@ extern int raw_ping(char *host, int timeout) {
if(options.logging) CallService(PLUG "/Log", (WPARAM)"rawping error: wrong ID...cycling", 0);
continue;
- if(reply->type != ICMP_ECHO_REPLY && reply->type != ICMP_SOURCE_QUENCH) {
+ if(reply->type != PT_ICMP_ECHO_REPLY && reply->type != PT_ICMP_SOURCE_QUENCH) {
if(options.logging) CallService(PLUG "/Log", (WPARAM)"rawping error: wrong type...cycling", 0);
continue;
}
@@ -189,7 +189,7 @@ extern int raw_ping(char *host, int timeout) {
continue;
}
- if(reply->type == ICMP_SOURCE_QUENCH) {
+ if(reply->type == PT_ICMP_SOURCE_QUENCH) {
char buff[1024];
sprintf(buff, Translate("Host %s requests that you reduce the amount of traffic you are sending."), host);
MessageBox(0, buff, Translate(PLUG " Warning"), MB_OK | MB_ICONWARNING);