src/oping.c: Improved the help output.
A short description has been added for each option. Also, print the program
version and author.
A short description has been added for each option. Also, print the program
version and author.
src/oping.c: Improved and unified error messages when parsing CL options.
Bumped version to 1.2.0; Updated ChangeLog.
AUTHORS: Add Dan Sully.
oping(8): Document the new `-f' option.
src/oping.c: Change some codig style.
src/oping.c: Only treat "-" as STDIN, not all strings beginning with "-".
Allow reading of files containing hostnames.
Signed-off-by: Dan Sully <daniel-github@electricrain.com>
Signed-off-by: Florian Forster <octo@verplant.org>
Signed-off-by: Dan Sully <daniel-github@electricrain.com>
Signed-off-by: Florian Forster <octo@verplant.org>
src/liboping.c: Check if IPPROTO_IPV6 and IPV6_RECVHOPLIMIT are defined.
src/liboping.c: Made sstrerror() static.
This is a private helper function only.
This is a private helper function only.
Bumped version to 1.1.2; Updated ChangeLog.
15 years agosrc/liboping.c: Check if pointer is NULL before dereferencing it in `ping_receive_ipv4'.
src/liboping.c: Check if pointer is NULL before dereferencing it in `ping_receive_ipv4'.
Thanks to Tomasz Pala for pointing out the problem.
Thanks to Tomasz Pala for pointing out the problem.
src/oping.h: Bump the OPING_VERSION, too.
Bumped version to 1.1.1; Updated ChangeLog.
src/liboping.c: Use ph-addrfamily to determine the protocol type.
src/liboping.c: Be more fault-tolerant when checking for the TTL.
If it's not included in the auxiliary data, fall back to the value
included in the IPv4 header which is provided via the raw socket.
If it's not included in the auxiliary data, fall back to the value
included in the IPv4 header which is provided via the raw socket.
src/liboping.c: Only include <stdint.h> if the configure script found it.
build system: Actually link with libxnet and use CPPFLAGS.
(Instead of CFLAGS.)
(Instead of CFLAGS.)
src/liboping.c: Added compatibility with old Solaris versions.
Apparently the X/Open conforming `recvmsg' function is in the `xnet'
library. Check for this library and use it if it exists.
Also set the ominous MSG_XPG4_2 flag. Didn't find out what it does, but
apparently it's a Solaris internal flag..
Apparently the X/Open conforming `recvmsg' function is in the `xnet'
library. Check for this library and use it if it exists.
Also set the ominous MSG_XPG4_2 flag. Didn't find out what it does, but
apparently it's a Solaris internal flag..
Net::Oping: Improve the POD a little.
build system: Define ABI and API versions in the configure script.
bindings/perl: Bumped version to 1.10; Updated Changes.
bindings/perl: Add some more simple syntax tests.
bindings/perl: Add the `ttl' method.
bindings/perl: Add the `get_recv_ttl' method.
Bumped version to 1.1.0; Updated ChangeLog.
AUTHORS: Added contributors so far.
src/oping.c: Allow setting of the TTL using `-t'.
src/liboping.c: When setting the TTL, update all existing pinghost_t, too.
manual pages: Fix some more typos.
src/oping.c: Print the received TTL, too.
src/liboping.c: Add debugging output to the TTL setting code.
manual pages: Fix some minor issues and typos.
src/liboping.c: Provide the TTL on received packets.
Thanks to Vladimir V. Melnikov for the suggestion and initial patch.
Thanks to Vladimir V. Melnikov for the suggestion and initial patch.
src/liboping.c: Make -Wextra happy.
Removed an unused parameter.
Removed an unused parameter.
ping_setopt(3): Document the PING_VERSION define.
A typo if fixed, too.
A typo if fixed, too.
src/oping.c: Allow shorter interval settings.
Previously, only 1/5s was allowed. Now everything down to 1/1000s is
accepted.
Previously, only 1/5s was allowed. Now everything down to 1/1000s is
accepted.
src/oping.c: Use `context_destroy' to free the context.
src/oping.c: Make all functions (except `main') static.
src/liboping.c: Remove dead code which broke strict aliasing rules.
Thanks to Alan Pevec for the pointer.
Thanks to Alan Pevec for the pointer.
src/liboping.c: Use thread-safe error handling.
I. e. move to `strerror_r'.
I. e. move to `strerror_r'.
src/{lib,}oping.c: Fix a few problems -Wextra has found.
src/{lib,}oping.c: Don't cast `size_t' to `unsigned int' when printing.
Use the "%zu" format string instead.
Use the "%zu" format string instead.
src/mans/*.pod: Updated copyright information.
Bumped version to 1.0.0.
ChangeLog, README: Updated information for the 1.0.0 release.
bindings/perl/Makefile.PL: Let the Perl module depend on liboping.la.
When building the Perl module from the liboping sources (instead of e.g. a
stand-alone Perl package), the module will now be rebuilt if the library has
been changed.
When building the Perl module from the liboping sources (instead of e.g. a
stand-alone Perl package), the module will now be rebuilt if the library has
been changed.
src/liboping.c: Beautify two debugging messages.
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
src/liboping.c: Fix a (too conservative) off-by-one error in ping_iterator_get_info()
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
bindings/perl: Add support for the number of dropped packets.
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
bindings/perl: Update license information in the XS file.
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
bindings/perl: Fix error handling in Perl:ping() and XS:_ping_iterator_get_hostname().
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
bindings/perl: Improve license information and fix typos in the documentation.
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
build system: Added some serious voodoo to make MakeMaker behave.
It is now, at last, possible to build the Perl module before installing
liboping and still have it linked correctly.
It is now, at last, possible to build the Perl module before installing
liboping and still have it linked correctly.
bindings/perl: Use OPING_VERSION to enable the work-around for 0.3.5.
src/liboping.c: Fix an incorrect assertion in `ping_timeval_add'.
bindings/perl: Fix a memory leak in _ping_iterator_get_hostname().
Thanks to "Iceberg" who reported this issue and provided the patch via
rt.cpan.org.
Signed-off-by: Florian Forster <octo@verplant.org>
Thanks to "Iceberg" who reported this issue and provided the patch via
rt.cpan.org.
Signed-off-by: Florian Forster <octo@verplant.org>
bindings/Makefile.am: Don't build the Perl bindings automatically.
To build the Perl bindings, do:
$ cd bindings; make perl install
To build the Perl bindings, do:
$ cd bindings; make perl install
ping_iterator_get_info: Provide the number of timed out packets.
src/liboping.c: Use \#ifdef's around `EAI_SYSTEM'.
Apparently this define is mentioned in RFC3493 but not in SUS. At least Cygwin
seems not to have this define..
Apparently this define is mentioned in RFC3493 but not in SUS. At least Cygwin
seems not to have this define..
bindings/perl/Makefile.PL: Removed that `use 5.008007;' from yet another place.
Why is everything kept in 1000 places in Perl modules? *argh*
Why is everything kept in 1000 places in Perl modules? *argh*
Merge branch 'origin'
Net::Oping: Bumped version to 1.01.
Also added `use 5.006;' to Net/Oping.pm, because `use warnings;' is a Perl 5.6
feature.
Also added `use 5.006;' to Net/Oping.pm, because `use warnings;' is a Perl 5.6
feature.
Integrate bindings subdirectory into the build process.
* Added bindings/Makefile.am.
* Added support for the variable PERL, which specifies the Perl interpreter
command, to the configure script.
* Added the --with-perl-bindings option to the configure script. Any argument
(except "yes" and "no") will be passed as options to "perl Makefile.PL".
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@verplant.org>
* Added bindings/Makefile.am.
* Added support for the variable PERL, which specifies the Perl interpreter
command, to the configure script.
* Added the --with-perl-bindings option to the configure script. Any argument
(except "yes" and "no") will be passed as options to "perl Makefile.PL".
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@verplant.org>
bindings/perl/Makefile.PL: Search for the header file and give up if it cannot be found.
Net::Oping: Added a note about the need to be root to the module's POD.
bindings/perl/MANIFEST: Sorted the entries alphabetically.
Net::Oping: Removed `use 5.008007;' because we (hopefully) don't need it.
bindings/perl/MANIFEST: Remove the ppport.h header file from this list.
src/liboping.c: Return the number of bytes actually required to store the username
Including the terminating NULL-byte.
Including the terminating NULL-byte.
Merge branch 'liboping-0.3'
Merge branch 'pull/liboping-0.3' into liboping-0.3
src/liboping.c: Return the number of bytes actually required to store the hostname
Including the terminating NULL-byte.
Including the terminating NULL-byte.
bindings/perl: Added an improved version of the Perl bindings created by Olivier Fredj.
Merge branch 'origin'
src/liboping.c: Added the `username' field which holds the name provided by the user.
Alex Brooks has reported that he cannot reliably remove hosts he added without
a fully qualified domain name, such as `foobar'. The reason is that the
`hostname' the user provided is replaced with the `canonical hostname', if they
differ. To fix this problem I introduced a new fields `username' which holds
the hostname as it was supplied by the user. This is the only name checked when
removing a host now.
Applications may access this name using the new `PING_INFO_USERNAME' option for
`ping_iterator_get_info'.
Alex Brooks has reported that he cannot reliably remove hosts he added without
a fully qualified domain name, such as `foobar'. The reason is that the
`hostname' the user provided is replaced with the `canonical hostname', if they
differ. To fix this problem I introduced a new fields `username' which holds
the hostname as it was supplied by the user. This is the only name checked when
removing a host now.
Applications may access this name using the new `PING_INFO_USERNAME' option for
`ping_iterator_get_info'.
Provide a fallback if `ICMP6_ECHO_REQUEST' or `ICMP6_ECHO_REPLY' is not defined.
Hello,
I just started looking at liboping, looks great so far! I needed the attached
patch to compile on aix 5.2, works as expected once built. I chose to hardwire
the constant values due to conflicts when including aix's netinet/ip6_icmp.h.
I can try to untangle if desired but prefer to spend as little time on aix as
possible :)
% uname -a
AIX orange 2 5 000919934C00
% find /usr/include/ -name "*.h" | xargs grep ICMP6_ | egrep '128|129'
/usr/include/netinet/ip6_icmp.h:#define ICMP6_ECHO 128 /* echo service */
/usr/include/netinet/ip6_icmp.h:#define ICMP6_ECHOREPLY 129 /* echo reply */
Hello,
I just started looking at liboping, looks great so far! I needed the attached
patch to compile on aix 5.2, works as expected once built. I chose to hardwire
the constant values due to conflicts when including aix's netinet/ip6_icmp.h.
I can try to untangle if desired but prefer to spend as little time on aix as
possible :)
% uname -a
AIX orange 2 5 000919934C00
% find /usr/include/ -name "*.h" | xargs grep ICMP6_ | egrep '128|129'
/usr/include/netinet/ip6_icmp.h:#define ICMP6_ECHO 128 /* echo service */
/usr/include/netinet/ip6_icmp.h:#define ICMP6_ECHOREPLY 129 /* echo reply */
Bumped version to 0.3.5; Updated ChangeLog and debian/changelog
Merge branch 'es/close'
oping.h: Use `extern "C"' if `__cplusplus' is defined.
oping.h: #include <sys/types.h> so that `size_t' is defined.
Close the filedescriptor in `ping_free', not `ping_host_remove'.
ping_iterator_get(3): Added the `AUTHOR' section.
Bumped version to 0.3.4; Updated ChangeLog and debian/changelog
Fix usage of `strcasecmp' in `ping_host_remove'.
The compare function needs to be checked wether it returns zero. Without this
fix the first host is being removed unless it's the host being looked for.
That is obviously not good nor correct.
The compare function needs to be checked wether it returns zero. Without this
fix the first host is being removed unless it's the host being looked for.
That is obviously not good nor correct.
Bumped version to 0.3.3; Updated ChangeLog and debian/changelog
Merge branch 'v022/net-unreach'
ChangeLog: Added note about the E{HOST,NET}UNREACH bugfix.
liboping.c: Catch `EHOSTUNREACH' and `ENETUNREACH'
When the kernel cannot send out a packet to a host because the host or network
is unreachable, `sendto' may return with `EHOSTUNREACH' or `ENETUNREACH'. So
far all errors returned by `sendto' were considered fatal and the pinging was
aborted. This is wrong when the host is unreachable, so catching and ignoring
these errors is reasonable..
Thanks to Wolfgang Kroener for reporting and debigging this problem with me :)
When the kernel cannot send out a packet to a host because the host or network
is unreachable, `sendto' may return with `EHOSTUNREACH' or `ENETUNREACH'. So
far all errors returned by `sendto' were considered fatal and the pinging was
aborted. This is wrong when the host is unreachable, so catching and ignoring
these errors is reasonable..
Thanks to Wolfgang Kroener for reporting and debigging this problem with me :)
Bumped version to 0.3.2, updated ChangeLog(s).
Removed unneccesary comments.
Fixed the build system to version the generated shared objects and set an `soname' for them.
oping: Drop root privileges as soon as possible.
Bumped version to 0.3.1
configure.ac: There's no configure-script in src/.
Remove more libltdl.
Remove libltdl.
I have no clue what I was thinking when including this.
I have no clue what I was thinking when including this.
Makefile.am: Don't include debian/ in the distribution tarball.
Bumped version to 0.3.0; Updated ChangeLog.
AUTHORS: Document the only author so far ;)