diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-31 05:07:21 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-31 05:07:21 +0000 |
commit | 0ff1d601dfadfd19e286c021fd1288e8b8b4b7c2 (patch) | |
tree | aafe89e4f6870ad528f00e081d31432cdfbb8d32 /ping/rawping.cpp | |
parent | 87a314a0f8b3aa138601963c0e98d339997b9d6e (diff) |
use yapp api for popup classes
use fontservice for fame background colour
add beta changelog url link to svn log
use IPHLPAPI.dll if available, and use only one icmp file handle
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@316 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'ping/rawping.cpp')
-rw-r--r-- | ping/rawping.cpp | 6 |
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);
|