summaryrefslogtreecommitdiff
path: root/sbin/ping
AgeCommit message (Expand)Author
2018-04-11Two fixes in ping:Vadim Zhukov
2017-11-08Add a type cast to force signed comparison. This fixes a loopVisa Hankala
2017-07-08Consistently use if ((option & F_FOO) && (option & F_BAR)) instead ofFlorian Obser
2017-07-08Consistently use if (option & F_FOO); from Klemens Nanni, thanks!Florian Obser
2017-07-05remove useless (void)printf casts, diff from Klemens Nanni, massagedFlorian Obser
2017-07-04calculate multiples of 4 smarter; from Klemens NanniFlorian Obser
2017-07-04replace perror(3) with err(3); from Klemens NanniFlorian Obser
2017-02-22Unbreak "ping6 -L"Renato Westphal
2016-10-26in florian;s last commit i urged him to change "twenty-four" toJason McIntyre
2016-10-26Due to 64 bit seconds + 64 bit nano seconds resolution and theFlorian Obser
2016-10-20Only drop to _ping user if invoked as root. If invoked as anFlorian Obser
2016-09-28Always do the setgroups, setresgid and setresuid even if if theFlorian Obser
2016-09-26Drop privileges to newly added _ping user/group.Florian Obser
2016-09-20whitespaceTheo de Raadt
2016-09-20various cleanup; ok florianJason McIntyre
2016-09-19Only allow standard dot notation for IPv4 addresses.Florian Obser
2016-09-18unbreak IPv6 source selectionFlorian Obser
2016-09-18simplify startup, since we know earlier which type of socket we needTheo de Raadt
2016-09-18whitespaceTheo de Raadt
2016-09-18If running in verbose mode and no source address has been specifiedFlorian Obser
2016-09-18Do not print 'ping6' in reporting output, just 'ping'.Florian Obser
2016-09-18minor tweaks;Jason McIntyre
2016-09-17backwards if(v6flag); pointed out by naddyFlorian Obser
2016-09-17Merge ping6(8) manual into ping(8).Florian Obser
2016-09-17ping6(8) is now a hardlink to ping(8).Florian Obser
2016-09-17The final merge ping6 into ping.Florian Obser
2016-09-17Use ECHOTMLEN define; no functional change.Florian Obser
2016-09-17iov_base is already set in this case; reduce diff to ping6(8).Florian Obser
2016-09-17MAXPAYLOAD is different between ping and ping6.Florian Obser
2016-09-17Just use AF_INET like everywhere else.Florian Obser
2016-09-17malloc sets errno; use err not errxFlorian Obser
2016-09-17whitespaceFlorian Obser
2016-09-17Make getting source address more AF independent.Florian Obser
2016-09-17If -I was not given hoist getting source address up.Florian Obser
2016-09-17Make source address selection more AF independent.Florian Obser
2016-09-17Introduce AF independent from.Florian Obser
2016-09-17Use AF independent dst where possible.Florian Obser
2016-09-17Blindly s/dst/dst4/ or s/dst/dst6/, AF independent dst will beFlorian Obser
2016-09-17We will need the variable name "from" soon, so free it up by renamingFlorian Obser
2016-09-17Reduce diff in pinger().Florian Obser
2016-09-17styleFlorian Obser
2016-09-17Move more AF independent initialization around to reduce diff.Florian Obser
2016-09-17Normalize receive packet allocation.Florian Obser
2016-09-17Use ECHOTMLEN define.Florian Obser
2016-09-17ping(8): The IPv6 header has a payload length field while IPv4 has aFlorian Obser
2016-09-17Bring over includes, we will need them in a merge anyway.Florian Obser
2016-09-17If no source address is specified and we are running in verbose modeFlorian Obser
2016-09-13Rearange option handling to reduce diff between ping(8) and ping6(8).Florian Obser
2016-09-13Make the raw socket non-global and pass it to retransmit()/pinger().Florian Obser
2016-09-13No need to have the destination global.Florian Obser