cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 644b2b703f494a358512742cbc4ac1519d34bd45
parent 15a3a885649c9788592a0670370aa13e0e43ab40
Author: cnlohr <lohr85@gmail.com>
Date:   Sat, 23 Mar 2019 22:55:27 -0400

update all files

Diffstat:
MMakefile | 4++--
Mcnping.exe | 0
Mping.c | 6++----
Muac.manifest | 1+
4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,8 +1,8 @@ all : cnping searchnet -CFLAGS:=$(CFLAGS) -g -I/opt/X11/include -Wall +CFLAGS:=$(CFLAGS) -s -Os -I/opt/X11/include -Wall CXXFLAGS:=$(CFLAGS) -LDFLAGS:=-g -L/opt/X11/lib/ +LDFLAGS:=-s -L/opt/X11/lib/ #CFLAGS:=$(CFLAGS) -DCNFGOGL #LDFLAGS:=$(LDFLAGS) -lGL diff --git a/cnping.exe b/cnping.exe Binary files differ. diff --git a/ping.c b/ping.c @@ -50,8 +50,6 @@ static og_sema_t s_exec[PINGTHREADS]; void ping_setup() { - int i; - #if defined( WIN32 ) || defined( WINDOWS ) WSADATA wsaData; int r = WSAStartup(MAKEWORD(2,2), &wsaData); @@ -99,9 +97,9 @@ static void * pingerthread( void * v ) ICMP_ECHO_REPLY rply; uint8_t err_data[16384]; } repl; - struct in_addr inet_addr( char * a ); + DWORD res = IcmpSendEcho( ih, - psaddr.sin_addr, ping_payload, rl, + psaddr.sin_addr.s_addr, ping_payload, rl, 0, &repl, sizeof( repl ), timeout_ms ); int err; diff --git a/uac.manifest b/uac.manifest @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!-- This is no longer needed if you compile with WIN_USE_NO_ADMIN_PING. It is only required for raw packet access --> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="cnping" type="win32"/> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">