summaryrefslogtreecommitdiff
path: root/sbin/ping
AgeCommit message (Collapse)Author
2009-12-24spelling fixes, from Brad Tilley; we will not fix src/sbin/dump/dump.hIgor Sobrado
as neither arrayified not arrayfied exist -- sanctioned dictionaries like Merriam-Webster ones suggest a few alternatives (e.g., arrayed), however these made up words are easy to understand and we are not certain that current ones are not ok. ok jmc@
2009-12-15Remove an untrue statement about the packetsize beingMarco Pfatschbacher
8 bytes smaller when a raw socket is used. OK jmc, deraadt.
2009-12-15Let ping handle truncated echo replies.Marco Pfatschbacher
Instead of a false data mismatch report, we now print (TRUNC!). This also fixes two out of bounds accesses. The "wrong data byte #XXX" counter was also wrong and off by 8 bytes. OK djm@ on an earlier version, OK deraadt@.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-22use the UNIX-related macros (.At and .Ux) where appropriate.Igor Sobrado
ok jmc@
2009-06-05tweak -V;Jason McIntyre
2009-06-05Fix usage.Claudio Jeker
2009-06-05Allow ping to use an alternate routing domain by using the -V flag.Claudio Jeker
2009-06-01tweak previous;Jason McIntyre
2009-05-31add audible output to ping and ping6: -e beeps when pings are replied, -E ↵Chris Kuethe
beeps when pings are dropped. suggestion to make ping and ping6 use the same flag from deraadt & sthen. reminder to not forget about ping6 from todd and naddy. ok deraadt, sthen "well, i don't object..." from a few others.
2009-04-23ping -v can segfault when displaying received icmp packets that aren'tStuart Henderson
echo replies. it's because the pointer arithmetic is scaled to the size of struct icmp, so 28*28 bytes are added rather than just 28. fortunately a correct value was calculated 2 lines earlier, so we can just use that. "thats a cool fix" dlg, ok deraadt
2008-05-07Remove references to routed.Claudio Jeker
2007-05-31convert to new .Dd format;Jason McIntyre
2007-02-06remove -j from usage();Jason McIntyre
2006-07-18better explanation of return values;Jason McIntyre
originally from david christiansen, but (re)worded by otto; ok otto
2006-07-11+.Xr ping6 8,Jason McIntyre
2006-07-11stop a madman armed with .Tn from rampaging;Jason McIntyre
various other fixes up whilst here;
2006-04-13fix more signal races; ok moritzTheo de Raadt
2006-04-10minimal cleanups prompted by lint; ok ottoTheo de Raadt
2006-03-23sloppy style to cast the sockaddrs backwards, and then potentially wrong ↵Theo de Raadt
size; ok cloder
2006-03-06convert permanent privilege revocation to use setresuid/setresgid;Damien Miller
ok henning@
2006-01-09some minor types house cleaning, ok ottoTheo de Raadt
2005-09-01Comment fix and make description of -c and -w match reality moreOtto Moerbeek
closely. ok millert@ deraadt@
2005-05-27Experimental support for opportunitic use of jumbograms where only some hostsRyan Thomas McBride
on the local network support them. This adds a new socket option, SO_JUMBO, and a new route flag, RTF_JUMBO. If _both_ the socket option is set and the route for the host has RTF_JUMBO set, ip_output will fragment the packet to the largest possible size for the link, ignoring the card's MTU. The semantics of this feature will be evolving rapidly; talk to us if you intend to use it. ok deraadt@ marius@
2005-04-14arg to -I is an address, not if_name;Jason McIntyre
ok hshoexer@
2005-01-19Don't ignore a provided source address, when building an own IP header.Marco Pfatschbacher
This makes the -I option work together with -D, -T and -t. OK deraadt@, hshoexer@, markus@
2004-11-10Use ${STATIC} rather than -static (dont hardcode). ok miod@Dale Rahn
2004-09-14df is a flag, not some u_char thing with -1 value; millert okTheo de Raadt
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2004-05-03Use libc strtonum, not private copy. Based on a diff from tedu@.Todd C. Miller
OK otto@
2004-04-07Remove those option letters from the getopt string which do not have a caseAaron Campbell
handler below. millert@ ok
2004-03-21don't leak the stack on -R; ok deraadt@Markus Friedl
2004-02-29better strtol with consistent usage, unsigned where appropriate, -Wall clean.Ted Unangst
with some help and ok tdeval@
2003-11-25- document interaction with SIGINFO, as observed by Franciszek Holop on misc@Jason McIntyre
- add some .Pp - typo
2003-07-24make packet loss double and print using %.1lf; based on diff from jeffi@rcn.comTheo de Raadt
2003-07-02missing protosTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-03- section reorderJason McIntyre
- some mdoc fixes
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-14Defer incrementing ntransmitted until we are sure sendto succeeds.Chad Loder
2003-04-14permit -s0. from Maxim KonovalovJun-ichiro itojun Hagino
2003-02-11typos;Jason McIntyre
raidctl(8) ok millert@ mknetid(8) help maja@
2002-09-06socklen_t and various other minor tweaksTheo de Raadt
2002-07-03convert to ansi. suddenly realise that means yet another function is aTheo de Raadt
signal handler in some cases, and make it cope with the termination race.
2002-06-29IPPROTO_ICMP will not change in our life; itojun okTheo de Raadt
2002-06-22document -T option, PR#2766. ok deraadt@Jakob Schlyter
2002-05-31KNFTheo de Raadt
2002-05-31kill the signal racesTheo de Raadt
2002-05-31clarify comment when nreceived > ntransmitted. from deraadtJun-ichiro itojun Hagino
2002-05-12These small setuid programs allocate a resvport, and then immediately revokeTheo de Raadt
privs. Link them static, so that even less code is run before main does that job.