[020124] * Michal Kochanowicz typos in tracepath.8 * Michael Wardle : undo silly change of ss000305 (printing rtt in some funny units). Michael noticed that "sec" is not standard abbreviation for time units (bullshit, of course), but real concern is that it is more difficult to interpret with a neglibible improvement to appearance. So, do this as expected: in "ms". * Documentation. Wow! I did it. man pages are disassembled to docbook, audited wrt real state, edited... and promised to be maintained in sync with the state of utilities. [011202] * Utz Bacher Bitops in ping6 were wrong on bigendian machines. Wow, luckily I forgot to acknowledge that patch of 010805 which has gotten rid of kernel bitops and did this so wrongly. * Michael Bakunin (:-)) found mud in tftpd.c, it will crash when directory supplied in argument is longer ~512 symbols. * Alexandr D. Kanevskiy : buffer overflow in clockdiff. Very stupid one, the overflowed buffer even was not used. :-) * Alexandr D. Kanevskiy : shit! Code recognizing kernels with broken IP_RECVERR for raw sockets depended on race and accused even good kernel of being buggy. :-) [011002] * Stepan Koltsov , tracepath/tracepth6 segfaulted when used without address. * Alexandr D. Kanevskiy : arping printed "permission denied" instead of showing help page to non-superuser. [010824] * Alexandr D. Kanevskiy : ping compiled for linux-2.4 forgot to send the second packet, when used with linux-2.2 * Chris Evans : buffer overflow in traceroute6. datalen was messed: counting header in half of places. Funny, looking into LBL traceroute, it is even worse :-) * Alexandr D. Kanevskiy : relayed patches by Solar_Diz. Only missing description of option -q is accepted. * ping6 printed wrong mtu. * Alexandr D. Kanevskiy : -Werror is removed. Newer gcc are buggy and generates some wrong warnings about uninitalized variables, which are evidently initialized. [010805] * Some news from Pekka Savola around setting tos bits. * arping: broadcast-only mode by Ard van Breemen * ping6/traceroute6: parse ICMP errors with extension headers (me) traceroute6 works with size > mtu now. Nice. * ping: Erik Quanstrom . Serious patch. ping interval timer was not very broken, but very unintelligible. Though I remade the code to use leaky bucket logic, which is the most transparent one. Anyway, contribution by Eric is the most important one since the previous release. Short theory of operation: option -i (interval) sets rate r=1/interval pps, option -l (preload) sets burst size of l packets. So, ping sends at most r*t+l packets for an arbitrary interval t. Default values: l=1 and for non-flood case: r=1pps, for flood r=infinity. Nice? Exact algorithm is: Let N(t) be l/r=l*i initially and N(t) grow continuously with time as: N(t+delta) = min{l*i, N(t) + delta} Packet can be transmitted only at the time t_* when 1/r=i <= N(t_*) and in this case N(t) jumps: N(t_* + 0) = N(t_* - 0) - i. When interval is zero, algo degenerates allowing to send any amount of messages. In this case we modify it using l as limit on amount of unanswered requests and waiting for 10msec, when something is not answered. Note that the last thing (10msec) is just to be compatible with BSD manual pages. BSD ping is simply not able to avoid delay technically, we are able now. In result we got some new facilities: * "-f -l 100" becomes very aggressive, in fact on good link it holds permanently 100 packets in flight, which is very different of earlier bevaviour (one packet in flight). * -f and -i are not incompatible more. In fact, "-f -i 1" is equivalent to plain ping, only output is different (dotted). Essentially, change of output format is the only effect. "ping -i 0" is flood printing output in normal format. Moved some parts of code to ping_common.c. Common part is not fully trivial now. :-) * ping: Ian Lynagh , larger and dynamic dup detector. Also, Ian submitted two large patches, one fixing formatting, another doing something with signedness/longness. Not now... Later note: found not working. x + 7 / 8 :-). Sorry... dubious, withdrawn. size of table increased to maximal value instead (8K of memory, not a big deal). * tftpd: an old misprint. left@sbor.spb.su (Igor A. Lefterov) * clockdiff: do not fail, if reversed resolution failed. Tommy Lacroix * ping: audible ping by Patrik Schilt Patrick's option renamed to -a to align to freebsd. * ping: react to device queue overflows using IP_RECVERR. me. * ping: option -S allows to change sndbuf * rarpd is moved from separate package here (people asked) * ping6: kernel style bitops are not used more. * Option -A to adapt to network rtt. * Use BPF, when multiple pings are detected. [001110] * ping is able to select TOS. By Pekka Savola * tracepath* DNS names. By Pawel Krawczyk and Arkadiusz Miskiewicz * ping6 is expected to be compiled with linux-2.2. [001011] * RH bugid#16677: segfault, when ping is used by root and size is large enough. Fix is to allow oversize by root (it is necessary to check kernel side), but clamp it at some safe value. [001010] * More bug fixes from Chris Evans - do not trust h_length returned by system resolver. This value is meaningless in any case. - ping: buffer overflow in fill()!!! Disgraceful bug. * ping: allow not-priviledged users to use broadcasts. It was paranoia. Multicasts were allowed. 8) * ping: but force broadcasts&multicasts not to fragment. BSD does not allow to do this to anyone, we still allow this for superuser. * Option -M to control path mtu discovery. [001007] * By Pekka Savola - SIOCGSTAMP/SO_TIMESTAMP are sensitive to bug in kernel. When get_fast_time != gettimeofday (f.e. timestampless x86), returned stamp can be out of sync with gettimeofday. Workaround is not to use SIOCGSTAMP/SO_TIMESTAMP on such systems. - fixes in man pages - compiles under rh-7.0 * Chris Evans - ping: possible buffer overflow in pr_addr(). [000928] * Sorry. I have lost all the CVS with changes made since 000418. If someone sent me a patch after this date, please, resubmit. Restored from the last backup and mailboxes: * ping*, SO_TIMESTAMP support. * ping*, allow zero data length (reported by Damjan Lango ) * iputils man and help updates. Pekka Savola * ping.8, fix to ping man page. By Dadid Eisner * ping prints addresses in numeric, if destination is numeric. Proposed by Tim Waugh New: * ping: strncpy bug * arping: improvements by Charles Howes - a feature to arping: quit as soon as a reply is received. - default to eth0. - spelling [000418] * llsqrt() was buggy again! (noticed by Sam Farin ) [000404] * tracepath*, "NURDUnet-gw" bug workaround. (noticed by Vitaly E.Lavrov ) * tracepath*, handle case of routers initializing rtt to 128. Vitaly E.Lavrov * shadowed icmp_sock in ping6. James Morris * Bug in ping -f, introduced with SO_RCVTIMEO. me. * llsqrt() (ping, ping6) was wrong yet. me. [000310] * Print mean deviation of RTT in ping/ping6. * Use SIOCGSTAMP in ping/ping6. Old behaviour calculating true user-to-user latency is restored with option -U. Reason for this stupid change is mainly political; people wonder why freebsd has twice less latency on loopback. If to follow along this line, we have to print rtt equal to 0. 8) [ LATER NOTE: actually, the change is _right_ without any doubts. Ping has another bug: nameresolver is blocking, so that when it dies not respond, ping shows evenly increasing by 1 sec RTT. It is very confusing (look through linux-kernel maillists to count number of people, who were cheated by misconfigured dns). ] * Use SO_RCVTIMEO instead of poll() with ping/ping6 -f. * Added -V option to arping/ping/ping6/traceroute6/rdisc to print snapshot number. [000305] * rdisc: ugly bug in getting interface list. me. * ping/ping6: ping -i N, N>=3 did not work. Jeff Jonson * ping/ping6: microsecond rtt measurements. me. [000120] * ping/ping6: non-zero exit code even without -w. [991024] * Option "-i" to ping/ping6 takes fractional time now, so that "ping -i 0.3 xxx" pings each 300 msec. The idea is by Marc Boucher * alpha/glibc-2.1 alignment problems in ping are fixed (struct timeval was wrongly aligned). [990915] * ping/ping6 worked only with kernels 2.3.15+ in 990824. [990824] * tftpd is added. It uses MSG_CONFIRM to confirm arp entries. * ping6: workaround for bug in some egcs versions. [990610] * ping: output buffer was too small for full sized ping. * ping: silly restriction on ping size is removed. [990530] * short man pages (Oleg M. Shumsky ) * ping6: get and print hop limit of reply packets (ME) * rdisc deletes routes before exit with -TERM * ping/ping6: option -w TIMEOUT * arping: exit with error, if received no replies in normal (not DAD and not unsilicited ARP) mode.