public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef9917
)
netd: add ping client (to test raw socks)
author
Brett Gordon
<beretta42@gmail.com>
Tue, 24 Jan 2017 16:02:33 +0000
(11:02 -0500)
committer
Brett Gordon
<beretta42@gmail.com>
Tue, 24 Jan 2017 16:02:33 +0000
(11:02 -0500)
Applications/netd/ping.c
patch
|
blob
|
history
diff --git
a/Applications/netd/ping.c
b/Applications/netd/ping.c
index
4e3e0b0
..
c101fb0
100644
(file)
--- 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;