Code

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