cnping

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

commit fa239855b1b3d301f1e652035467442ecd212d86
parent 10406c772b324383b144777e8ad896b5adc430ba
Author: cnlohr <lohr85@gmail.com>
Date:   Fri,  3 Nov 2017 19:50:08 -0400

Increase max packet size forping

Diffstat:
Mping.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ping.c b/ping.c @@ -62,7 +62,7 @@ struct icmphdr float pingperiodseconds; int precise_ping; -#define PACKETSIZE 1500 +#define PACKETSIZE 16384 struct packet { @@ -105,7 +105,7 @@ void listener() #endif struct sockaddr_in addr; - unsigned char buf[8192]; + unsigned char buf[17000]; #ifdef WIN32 SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL); #endif