summaryrefslogtreecommitdiff
path: root/sbin/ping/ping.c
AgeCommit message (Collapse)Author
2007-02-06remove -j from usage();Jason McIntyre
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-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-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-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-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
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-02-17correct arithmetic brain damage; maxim@macomnet.ruTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-28Request enough buffer space to fit the maximum size of a packet.Hugh Graham
Problem noticed by Art, and fix checked by Markus and Niels.
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-10-04trim warnx outputJakob Schlyter
2001-10-03try to increase receive buffer size, <ft@pi.se>. ok deraadt@Jakob Schlyter
2001-01-12remove extra + character in status outputTheo de Raadt
2001-01-11comment on a signal raceTheo de Raadt
2000-12-21use strlcpyTheo de Raadt
2000-01-22remove extra externs not needed because of unistd.h (rest of tree will be ↵Theo de Raadt
done later.. contact me if you want to help)
1999-10-12avoid an infinite loopHugh Graham
1999-07-18support fine timing interval and calculate std devHugh Graham
1999-02-24fix default payload alignment error; hugh@Kjell Wooding
1999-02-23Fix a buffer overrun with very large ICMP packets.Kjell Wooding
1998-11-18obvious typoTheo de Raadt
1998-05-17Unroll that last patch, Theo thinks there's a better way of solvingAngelos D. Keromytis
the problem.
1998-05-16Avoid the SIGALRM/ping DOS attack. From FreeBSD patch by Jason Young.Angelos D. Keromytis
1998-05-16put time in network byte order. I thought I fixed this!Theo de Raadt
1998-05-16on 64 bit architectures, tv_sec and tv_usec cause problems when weTheo de Raadt
move them onto the wire - so don't put them on the wire. i thought i fixed this ages ago..
1998-04-30certain variables are in msec not usec nowTheo de Raadt
1998-04-03handle unknown option too. All this ipoption handling needs rewriting, I now ↵Theo de Raadt
see a whole bunch more flaws
1998-04-02do not run off end of option buffer for LSRR either; tqbfTheo de Raadt