src/liboping.c: Improve coding style.
[liboping.git] / ChangeLog
1 2016-06-27, Version 1.9.0:
2         * liboping: The new "PING_OPT_MARK" option allows to mark packets,
3           which can be used for filtering and routing such packets on Linux.
4         * oping, noping: The new "-m" command line option allows to set a mark
5           on packets sent by the tool.
6         * oping, noping: The new "-O" command line option allows to write
7           measurements to an CSV file.
8         * oping, noping: The new "-w" command line option allows to specify
9           the timeout after which a packet/reply is considered "dropped".
10
11 2014-11-20, Version 1.8.0:
12         * oping, noping: Average and standard deviation have been removed from
13           the status output, which show median and 95th percentile instead.
14           The percentile can be chosen with the "-P" option.
15         * noping: The additional graph types "histogram" and "boxplot" have
16           been added, which can be selected with the "-g" option.
17
18 2014-09-25, Version 1.7.0:
19         * oping, noping: The new -Z option allows the exit status to indicate
20           the number of failing hosts. Thanks to Barak Pearlmutter for the
21           patch.
22         * noping: The ability to print a "prettyping" style graph has been
23           added. Thanks to Antoine Beaupré for his work!
24         * src/liboping.c: Build issues on Solaris have been fixed. Thanks
25           Scott Severtson for the fix!
26         * Build system: Creation and installation of a pkg-config file has
27           been added. Thanks to Barak Pearlmutter for the patch.
28
29 2012-01-31, Version 1.6.2:
30         * Build system: Setting capabilities and the set-UID bit has been made
31           more fault-tolerant, so that it will work with Debian's fakeroot(1)
32           utility.
33         * src/liboping.c: Fixed a compiler warning about an non-static format
34           string. Thanks to Brian Edwards for pointing this out.
35         * src/liboping.c: Fixed compilation under Mac OS X and Solaris. Thanks
36           to Clayton O'Neill for his patch.
37
38 2011-03-06, Version 1.6.1:
39         * Build system: If "make install" is executed as root, the CAP_NET_RAW
40           capability is added to the binary (on Linux) or the set-UID bit is
41           set (other Unixes).
42         * src/oping.c: Fix compiler warnings which may abort the build. Thanks
43           to James Bromberger for reporting the problem.
44         * noping: Compatibility with ncurses 5.8 has been fixed. Thanks to
45           Gaetan Bisson for his patch.
46
47 2011-01-26, Version 1.6.0:
48         * liboping: Improve timing of received network packets using
49           SO_TIMESTAMP if available. Thanks to Bruno Prémont for his patch.
50
51 2010-11-17, Version 1.5.1:
52         * oping, noping: Alias for the “Voice Admit” DSCP has been added.
53         * src/oping.c, src/liboping.c: Compiler warnings / errors have been
54           fixed. Thanks to James Bromberger for reporting one of them.
55
56 2010-10-27, Version 1.5.0:
57         * src/liboping.c: The possibility to set the QoS byte of outgoing IPv4
58           and IPv6 packets and read the byte from incoming packets has been
59           added. Thanks to Vladimir Melnikov for his patch.
60         * oping, noping: Add the ability to configure the QoS field on the
61           command line. If either the QoS field of outgoing or incoming
62           packets is non-standard, the QoS byte of incoming packets will be
63           printed.
64         * liboping: The library has been relicensed under the LGPL 2.1.
65
66 2010-06-13, Version 1.4.0:
67         * noping: A new front-end to liboping, using the ncurses library, has
68           been added. The new command line application displays ping
69           statistics online and highlights aberrant round-trip times.
70
71 2009-12-20, Version 1.3.4:
72         * src/liboping.c: When one file descriptor was in an error state, the
73           select(2) loop would run indefinitely. Error handling has been
74           improved so the loop ends gracefully now in this case.
75         * src/liboping.c: Drop privileges before reading files if supported by
76           the system. This way files are opened using the user's original
77           privileges when using the “-f” option.
78         * Net::Oping: An off-by-one error has been fixed in the Perl bindings.
79           Thanks to Fredrik Soderblom for his patch.
80
81 2009-09-29, Version 1.3.3:
82         * oping: Disable the “-f” option if the real and effective user IDs
83           don't match. If that is the case the program is probably running
84           SetUID and should not read foreign files. Unfortunately, dropping
85           privileges before reading the file is not possible, because they are
86           required for opening raw sockets.
87
88           Reading from STDIN using “-f -” is still possible.
89
90           Thanks to Steve Kemp for reporting this issue as Debian bug #548684.
91
92 2009-07-27, Version 1.3.2:
93         * src/oping.h: Remove `HAVE_*_H' macros for system headers. Those
94           macros should not be used in system wide installed header files.
95           Thanks to Sebastian for fixing this.
96
97 2009-07-20, Version 1.3.1
98         * src/liboping.c: Fix too eager argument validation that prevented the
99           library to work as documented. Thanks to Sebastian for catching this
100           bug.
101
102 2009-07-18, Version 1.3.0
103         * oping: Documentation and messages have been improved.
104         * oping: Support for the `-D' command line option has been added.
105           Using this new option, the outgoing network device can be set.
106           Thanks to Sebastian Harl for the patch.
107         * src/liboping.c: The value of the `received TTL' information after
108           missing packets has been corrected.
109         * src/liboping.c: A bug when matching received packets to configured
110           hosts has been fixed. This regression was introduced after 1.0, we
111           believe. Thanks to Sebastian Harl for noticing and fixing this bug.
112         * src/liboping.c: Support for the `PING_OPT_DEVICE' option has been
113           added. This option can be used to set the outgoing network device.
114           Thanks to Sebastian for his patch.
115
116 2009-07-15, Version 1.2.0
117         * `oping': Implement the `-f' command line option to read hostnames
118           from a file (or STDIN).
119         * src/liboping.c: No longer export `sstrerror'.
120
121 2009-04-05, Version 1.1.2
122         * liboping.c: A NULL-pointer dereference has been fixed in the IPv4
123           code. This led to a segmentation fault when an ICMPv4 paket could
124           not be associated with any host. This usually happened when one or
125           more hosts were unreachable for some time. Thanks to Tomasz Pala for
126           discovering the problem and finding a way to reproduce it.
127
128 2009-03-23, Version 1.1.1
129         * liboping.c: Use libxnet when available. The `normal' version of
130           `recvmsg' does not provide the `auxiliary data' on some or all
131           versions of Solaris.
132
133 2009-03-15, Version 1.1.0
134         * liboping.c: Eliminate the use of `strerror' and use `strerror_r'
135           instead, removing the (hopefully) last thread-unsafe function.
136         * liboping.c: Provide the TTL of received IP packets.
137         * oping.c: Allow setting of the TTL using the `-t' command line
138           option.
139
140 2009-02-17, Version 1.0.0
141         * oping.h: Provide the OPING_VERSION to easily determine the library's
142           version at compile time.
143         * liboping.c: Fixed an off-by-one error in `ping_iterator_get_info':
144           When determining the buffer size to hold the hostname, the function
145           would return one byte too little.
146         * liboping.c: Fix an incorrect assertion in `ping_timeval_add'. Thanks
147           to Alex Brooks for reporting the issue.
148         * liboping.c: Make sure `EAI_SYSTEM' is defined at compile time.
149           Although specified by POSIX, Cygwin apparently doesn't have it.
150         * liboping.c: Add compatibility code for AIX. Thanks to Doug
151           MacEachern for the patch.
152         * liboping.c: Store and possibly return the host name as provided by
153           the user.
154         * liboping.c: The number of timed out packets is now counted and can
155           be retrieved with `ping_iterator_get_info'.
156         * Perl bindings: The Net::Oping Perl package has been added to
157           bindings/ and is built along with liboping.
158
159 2007-03-27, Version 0.3.5
160         * liboping.c: Close the filedescriptor in `ping_free', not
161           `ping_host_remove'. Thanks to Esteban Sanchez for submitting this
162           patch.
163         * oping.h: Include <sys/types.h> so that `size_t' is defined. Thanks
164           to Alex Brooks for pointing this out.
165         * oping.h: Use `extern "C"' when being used with C++. Thanks to Alex
166           Brooks for pointing this out.
167
168 2006-12-01, Version 0.3.4
169         * Fixes a bug in `ping_host_remove': Due to an incorrect hostname
170           checking the wrong host would be removed.
171
172 2006-07-16, Version 0.3.3
173         * `sendto(2)' now catches `EHOSTUNREACH' and `ENETUNREACH' if they're
174           defined.
175
176 2006-07-13, Version 0.3.2
177         * `oping' now drops root privileges as soon as possible.
178         * `liboping' now contains an `soname' and a version.
179
180 2006-07-09, Version 0.3.1
181         * Removed `libltdl' from the distribution since it's not used.
182         * More nonsense has been removed from the build system. Thanks to
183           Sebastian Harl for pointing it out :)
184
185 2006-07-09, Version 0.3.0
186         * The ability to set the source address from which the packets
187           originate has been added to the library and the oping application.
188
189 2006-07-16, Version 0.2.3
190         * `sendto(2)' now catches `EHOSTUNREACH' and `ENETUNREACH' if they're
191           defined.
192
193 2006-06-05, Version 0.2.2
194         * The `oping' application didn't exit if no hosts could be resolved.
195           This release fixes it's behavior.
196
197 2006-06-01, Version 0.2.1
198         * Fix the behavior for non GNU-Linux systems. liboping tried to
199           `bind(2)' to the raw-socket it uses to send ICMP packets. Apparently
200           (decided by majority vote ;) this is not the right thing to do.
201           GNU/Linux never complained about it, but works find without the bind.
202           Other operating systems don't work at all with the bind.
203         * Build fixes for non-GNU/Linux platforms: Mac OS X doesn't define
204           `size_t' as `unsigned int' and therefore needs casting and FreeBSD
205           needs to have `sys/types.h' included before `netinet/*.h'
206
207 2006-05-29, Version 0.2.0
208         * It's now possible to set the data to be send to the remote host and
209           to get the data received from the host.
210         * The `oping' binary now calculates the standard deviation. Also, it
211           displays the number of byes that were received and other output
212           changes.
213         * Hosts are now returned in the same order as they were added by
214           `ping_host_add'. This is not guaranteed, but makes `oping' prettier.
215
216 2006-05-12, Version 0.1.1
217         * A bug in the library has been fixed: When the sequence got higher
218           than 2^16 the counter in the packets wrapped around, but the
219           internal counter didn't, causing the library to ignore all further
220           ICMP packets. This affected both, ICMPv4 and ICMPv6.
221
222 2006-05-08, Version 0.1.0
223         * Initial release.