summaryrefslogtreecommitdiffstats
path: root/sbin/ping
AgeCommit message (Expand)AuthorFilesLines
2021-02-21exclamation mark needs escaped too;jmc1-2/+2
2021-02-21Add ping -g, a concise display format similar to that used by othersthen2-14/+45
2020-12-29If we manage to send all "count" flood pings before receiving allflorian1-4/+6
2020-10-21ICMP raw sockets start to receive packets as soon as they are createdflorian1-1/+50
2020-09-21Missing space for '-i interval' option error message.mglocker1-2/+2
2020-02-11Simplify and unify wording for the -I sourceaddr option in various places.deraadt2-8/+8
2020-01-04ping(8): improve "-i wait" parsing and error-checking codecheloha2-29/+35
2019-08-28At startup, unveil entire filesystem to read-only. If after privdrop, somederaadt1-1/+7
2019-07-20ping(8): don't round inter-packet delay up to HZcheloha1-6/+1
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-25/+25
2019-03-19delay dropping privs a bit when root so that setrtable works.tedu1-3/+8
2018-11-13Fix previous, which broke ping -T.dhill1-2/+2
2018-11-11make all the setsockopt calls consistent.dlg1-35/+37
2018-11-10let -D work on ping6 too.dlg2-9/+13
2018-11-10add support for setting the traffic class on ipv6 packets.dlg2-8/+17
2018-10-14Fix ID commentskn1-4/+4
2018-10-14Remove unneeded sockaddr size checkskn1-7/+1
2018-07-21There is no need to initialise global and static local variables to zero,claudio1-8/+8
2018-07-18replace manual zero initialization of various fields with memset;florian1-7/+3
2018-07-18When running flood ping with count packets (-c) set an alarm afterflorian1-3/+20
2018-04-11Two fixes in ping:zhuk1-4/+4
2017-11-08Add a type cast to force signed comparison. This fixes a loopvisa1-2/+2
2017-07-08Consistently use if ((option & F_FOO) && (option & F_BAR)) instead offlorian1-4/+4
2017-07-08Consistently use if (option & F_FOO); from Klemens Nanni, thanks!florian1-6/+6
2017-07-05remove useless (void)printf casts, diff from Klemens Nanni, massagedflorian1-117/+117
2017-07-04calculate multiples of 4 smarter; from Klemens Nanniflorian1-2/+2
2017-07-04replace perror(3) with err(3); from Klemens Nanniflorian1-5/+3
2017-02-22Unbreak "ping6 -L"renato1-4/+9
2016-10-26in florian;s last commit i urged him to change "twenty-four" tojmc1-3/+3
2016-10-26Due to 64 bit seconds + 64 bit nano seconds resolution and theflorian1-5/+6
2016-10-20Only drop to _ping user if invoked as root. If invoked as anflorian1-2/+2
2016-09-28Always do the setgroups, setresgid and setresuid even if if theflorian1-11/+17
2016-09-26Drop privileges to newly added _ping user/group.florian1-12/+17
2016-09-20whitespacederaadt1-3/+3
2016-09-20various cleanup; ok florianjmc1-49/+36
2016-09-19Only allow standard dot notation for IPv4 addresses.florian1-12/+2
2016-09-18unbreak IPv6 source selectionflorian1-2/+2
2016-09-18simplify startup, since we know earlier which type of socket we needderaadt1-26/+12
2016-09-18whitespacederaadt1-19/+19
2016-09-18If running in verbose mode and no source address has been specifiedflorian1-2/+2
2016-09-18Do not print 'ping6' in reporting output, just 'ping'.florian1-15/+4
2016-09-18minor tweaks;jmc1-5/+4
2016-09-17backwards if(v6flag); pointed out by naddyflorian1-3/+3
2016-09-17Merge ping6(8) manual into ping(8).florian1-6/+66
2016-09-17ping6(8) is now a hardlink to ping(8).florian1-1/+2
2016-09-17The final merge ping6 into ping.florian1-127/+801
2016-09-17Use ECHOTMLEN define; no functional change.florian1-2/+2
2016-09-17iov_base is already set in this case; reduce diff to ping6(8).florian1-3/+2
2016-09-17MAXPAYLOAD is different between ping and ping6.florian1-3/+5
2016-09-17Just use AF_INET like everywhere else.florian1-2/+2