From: Brett Gordon Date: Tue, 24 Jan 2017 16:02:33 +0000 (-0500) Subject: netd: add ping client (to test raw socks) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=396bd80b16e9717b359b0fe1eeccd03b38054876;p=FUZIX.git netd: add ping client (to test raw socks) --- diff --git a/Applications/netd/ping.c b/Applications/netd/ping.c index 4e3e0b01..c101fb0c 100644 --- a/Applications/netd/ping.c +++ b/Applications/netd/ping.c @@ -1,6 +1,8 @@ /* A Cheesey ipv4 ping client + (C) 2017, Brett M. Gordon, GPL2 under Fuzix + todo: * add timestamp to packets to measure delta-t * add time max/min/avg/sdev stats like real ping @@ -118,7 +120,7 @@ my_open( int argc, char *argv[]){ } /* fuzix raw sockets (for now) repurposes the connect() - address struct to pass it's protocol number + address struct's port no to pass it's protocol number */ addr.sin_port = 1; addr.sin_family = AF_INET;