Commit Graph

31 Commits

Author SHA1 Message Date
mikel 24af6eac72 convert to host byte order when printing stats of received ICMP
packets other than echo-replies; from Dave Huang in PR bin/3876
1997-07-17 06:39:46 +00:00
christos 01bf6a0596 Update from Vernon Schryver, fixing the kluge to flush the route cache. 1997-06-01 19:34:46 +00:00
augustss 525bca97ff Make ping obey the -n flag in places. 1997-04-02 09:22:01 +00:00
christos 794ba0d372 Don't allow < 1 sec ping interval to regular users. 1997-03-24 03:34:26 +00:00
christos 9c21b4d7f9 Try adding `o' option again; connection died. 1997-03-19 12:44:08 +00:00
christos 3696ff03af Take care of alignment problems on the alpha: From John Birell, via cgd. 1997-03-19 12:36:03 +00:00
christos 217f82764f PR/3329: From David Jones: Add F_ONCE 1997-03-18 19:06:51 +00:00
christos 9ee27f02a1 Fix PR/3327: rcvd_tbl index was assumed to be in host order, creating
incorrect dup reports. From enami tsugutomo
1997-03-13 16:19:10 +00:00
christos fe4e4bb7a5 - remove -g from Makefile
- fix setsockopt and recvfrom casts.
1997-03-11 21:53:41 +00:00
christos 203dfd3486 - Use err, warn, errx
- Don't use floor, because we would need libm
- Add maxwait option from old ping
- Add a centralized gethost() to get hostnames
- Fix PR/1014 and PR/2017; (adds -D, -T options, and -I and -t for unicast)
- Document exit status
1997-03-11 21:22:49 +00:00
cgd b292e6cefd make ping(8) print out statistics when given a SIGINFO. 1996-11-06 20:42:14 +00:00
cgd 705e61651e fix a couple of bugs pointed out by John Birrell, though fix some
differently he did.  (1) don't assume that the timeval in
the packet is correctly aligned, (2) don't compare beyond the end
of the packet, (3) minor cast for printf happiness.
1995-08-11 22:37:58 +00:00
ghudson 34f94f0c70 Add and document options -w (to specify a maximum wait timeout, useful
for testing network interfaces) and -S (to specify a source address
on a machine with multiple interfaces).
1995-07-27 23:49:07 +00:00
jtc 68ad3878b1 sys/signal.h -> signal.h 1995-06-26 23:26:23 +00:00
mycroft 27093b3eba Fill in sin_len. 1995-06-03 23:23:52 +00:00
mycroft 6d4cde278d Use inet_aton(), not inet_addr(). 1995-05-21 01:18:03 +00:00
cgd dfb2f56868 if no packets were received, exit with status 1. this should be
documented somewhere.  As suggested by Rens Troost.
1995-04-22 15:27:08 +00:00
mycroft ffe9a4ccf0 Update to use timer{add,sub}(). 1995-03-21 13:55:23 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
cgd c9117f53b5 -Wall cleanups from Jim Jegers 1994-12-18 00:15:01 +00:00
cgd 568f59eb00 will need <sys/queue.h> 1994-10-31 04:34:56 +00:00
mycroft 4922d725cf Remove some more uses of obsolete functions. 1994-09-23 23:48:10 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft 3c78ef3311 Merge with 4.4-Lite version. 1994-09-23 01:38:45 +00:00
hpeyerl 93855d31e9 Another multicast patch.
>From LBL and Steve Mccanne
1993-12-15 04:46:13 +00:00
mycroft 262cbdab66 Use doubles to rather than longs to avoid tsum overflowing so quickly. 1993-09-23 23:03:55 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd beb4553725 have ping do the right thing, wrt microseconds.
actually, now it'll overflow its counters sooner than before, and everything
should *really* be converted to doubles and/or "unsigned long long"s
1993-07-22 09:49:57 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00