liboping.git
16 years agobindings/perl/MANIFEST: Sorted the entries alphabetically.
Florian Forster [Sat, 26 Jan 2008 16:20:48 +0000 (17:20 +0100)]
bindings/perl/MANIFEST: Sorted the entries alphabetically.

16 years agoNet::Oping: Removed `use 5.008007;' because we (hopefully) don't need it.
Florian Forster [Sat, 26 Jan 2008 16:20:31 +0000 (17:20 +0100)]
Net::Oping: Removed `use 5.008007;' because we (hopefully) don't need it.

16 years agobindings/perl/MANIFEST: Remove the ppport.h header file from this list. Net-Oping-1.00
Florian Forster [Sat, 26 Jan 2008 13:53:41 +0000 (14:53 +0100)]
bindings/perl/MANIFEST: Remove the ppport.h header file from this list.

16 years agosrc/liboping.c: Return the number of bytes actually required to store the username
Florian Forster [Sat, 26 Jan 2008 13:00:02 +0000 (14:00 +0100)]
src/liboping.c: Return the number of bytes actually required to store the username

Including the terminating NULL-byte.

16 years agoMerge branch 'liboping-0.3'
Florian Forster [Sat, 26 Jan 2008 12:59:23 +0000 (13:59 +0100)]
Merge branch 'liboping-0.3'

16 years agoMerge branch 'pull/liboping-0.3' into liboping-0.3
Florian Forster [Sat, 26 Jan 2008 12:59:07 +0000 (13:59 +0100)]
Merge branch 'pull/liboping-0.3' into liboping-0.3

16 years agosrc/liboping.c: Return the number of bytes actually required to store the hostname
Florian Forster [Sat, 26 Jan 2008 12:58:30 +0000 (13:58 +0100)]
src/liboping.c: Return the number of bytes actually required to store the hostname

Including the terminating NULL-byte.

16 years agobindings/perl: Added an improved version of the Perl bindings created by Olivier...
Florian Forster [Sat, 26 Jan 2008 12:57:05 +0000 (13:57 +0100)]
bindings/perl: Added an improved version of the Perl bindings created by Olivier Fredj.

16 years agoMerge branch 'origin'
Florian Forster [Sat, 26 Jan 2008 09:36:20 +0000 (10:36 +0100)]
Merge branch 'origin'

16 years agosrc/liboping.c: Added the `username' field which holds the name provided by the user.
Florian Forster [Sat, 26 Jan 2008 09:35:08 +0000 (10:35 +0100)]
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'.

16 years agoProvide a fallback if `ICMP6_ECHO_REQUEST' or `ICMP6_ECHO_REPLY' is not defined.
Doug MacEachern [Wed, 29 Aug 2007 20:09:52 +0000 (22:09 +0200)]
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 */

17 years agoBumped version to 0.3.5; Updated ChangeLog and debian/changelog liboping-0.3.5
Florian Forster [Tue, 27 Mar 2007 09:23:16 +0000 (11:23 +0200)]
Bumped version to 0.3.5; Updated ChangeLog and debian/changelog

17 years agoMerge branch 'es/close'
Florian Forster [Tue, 27 Mar 2007 09:15:17 +0000 (11:15 +0200)]
Merge branch 'es/close'

17 years agooping.h: Use `extern "C"' if `__cplusplus' is defined.
Alex Brooks [Tue, 27 Mar 2007 09:14:19 +0000 (11:14 +0200)]
oping.h: Use `extern "C"' if `__cplusplus' is defined.

17 years agooping.h: #include <sys/types.h> so that `size_t' is defined.
Alex Brooks [Tue, 27 Mar 2007 09:11:31 +0000 (11:11 +0200)]
oping.h: #include <sys/types.h> so that `size_t' is defined.

17 years agoClose the filedescriptor in `ping_free', not `ping_host_remove'.
Esteban Sanchez [Tue, 27 Mar 2007 09:06:56 +0000 (11:06 +0200)]
Close the filedescriptor in `ping_free', not `ping_host_remove'.

17 years agoping_iterator_get(3): Added the `AUTHOR' section.
Florian Forster [Sat, 16 Dec 2006 11:07:39 +0000 (12:07 +0100)]
ping_iterator_get(3): Added the `AUTHOR' section.

17 years agoBumped version to 0.3.4; Updated ChangeLog and debian/changelog liboping-0.3.4
Florian Forster [Fri, 1 Dec 2006 08:24:04 +0000 (09:24 +0100)]
Bumped version to 0.3.4; Updated ChangeLog and debian/changelog

17 years agoFix usage of `strcasecmp' in `ping_host_remove'.
Wojtek [Fri, 1 Dec 2006 08:13:57 +0000 (09:13 +0100)]
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.

17 years agoBumped version to 0.3.3; Updated ChangeLog and debian/changelog liboping-0.3.3
Florian Forster [Sun, 16 Jul 2006 10:34:46 +0000 (12:34 +0200)]
Bumped version to 0.3.3; Updated ChangeLog and debian/changelog

17 years agoMerge branch 'v022/net-unreach'
Florian Forster [Sun, 16 Jul 2006 10:29:35 +0000 (12:29 +0200)]
Merge branch 'v022/net-unreach'

17 years agoChangeLog: Added note about the E{HOST,NET}UNREACH bugfix.
Florian Forster [Sun, 16 Jul 2006 10:25:42 +0000 (12:25 +0200)]
ChangeLog: Added note about the E{HOST,NET}UNREACH bugfix.

17 years agoliboping.c: Catch `EHOSTUNREACH' and `ENETUNREACH'
Florian Forster [Sun, 16 Jul 2006 10:19:42 +0000 (12:19 +0200)]
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 :)

17 years agoBumped version to 0.3.2, updated ChangeLog(s). liboping-0.3.2
Florian Forster [Thu, 13 Jul 2006 14:06:17 +0000 (16:06 +0200)]
Bumped version to 0.3.2, updated ChangeLog(s).

17 years agoRemoved unneccesary comments.
Florian Forster [Wed, 12 Jul 2006 07:31:40 +0000 (09:31 +0200)]
Removed unneccesary comments.

17 years agoFixed the build system to version the generated shared objects and set an `soname...
Florian Forster [Wed, 12 Jul 2006 07:31:26 +0000 (09:31 +0200)]
Fixed the build system to version the generated shared objects and set an `soname' for them.

17 years agooping: Drop root privileges as soon as possible.
Florian Forster [Wed, 12 Jul 2006 06:50:23 +0000 (08:50 +0200)]
oping: Drop root privileges as soon as possible.

17 years agoBumped version to 0.3.1 liboping-0.3.1
Florian Forster [Sun, 9 Jul 2006 22:20:19 +0000 (00:20 +0200)]
Bumped version to 0.3.1

17 years agoconfigure.ac: There's no configure-script in src/.
Florian Forster [Sun, 9 Jul 2006 22:15:43 +0000 (00:15 +0200)]
configure.ac: There's no configure-script in src/.

17 years agoRemove more libltdl.
Florian Forster [Sun, 9 Jul 2006 22:13:25 +0000 (00:13 +0200)]
Remove more libltdl.

17 years agoRemove libltdl.
Florian Forster [Sun, 9 Jul 2006 22:12:24 +0000 (00:12 +0200)]
Remove libltdl.

I have no clue what I was thinking when including this.

17 years agoMakefile.am: Don't include debian/ in the distribution tarball. liboping-0.3.0
Florian Forster [Sun, 9 Jul 2006 17:49:55 +0000 (19:49 +0200)]
Makefile.am: Don't include debian/ in the distribution tarball.

17 years agoBumped version to 0.3.0; Updated ChangeLog.
Florian Forster [Sun, 9 Jul 2006 17:36:37 +0000 (19:36 +0200)]
Bumped version to 0.3.0; Updated ChangeLog.

17 years agoAUTHORS: Document the only author so far ;)
Florian Forster [Sun, 9 Jul 2006 17:33:43 +0000 (19:33 +0200)]
AUTHORS: Document the only author so far ;)

17 years agoMerge branch 'origin'
Florian Forster [Fri, 7 Jul 2006 09:32:48 +0000 (11:32 +0200)]
Merge branch 'origin'

17 years agoUpdated the license information in the .c and .h files: Only allow GPLv2.
Florian Forster [Fri, 7 Jul 2006 09:31:38 +0000 (11:31 +0200)]
Updated the license information in the .c and .h files: Only allow GPLv2.

17 years agooping: Print the error message if ping_send failes.
Florian Forster [Fri, 16 Jun 2006 17:04:52 +0000 (19:04 +0200)]
oping: Print the error message if ping_send failes.

17 years agoUpdate the manpages: Added information about setting the source address.
Florian Forster [Mon, 12 Jun 2006 21:03:05 +0000 (23:03 +0200)]
Update the manpages: Added information about setting the source address.

17 years agoUpdated the oping library to understand the `-I' option (bind to a specified address).
Florian Forster [Mon, 12 Jun 2006 20:48:54 +0000 (22:48 +0200)]
Updated the oping library to understand the `-I' option (bind to a specified address).

17 years agoActually bind to the configured address.
Florian Forster [Mon, 12 Jun 2006 20:48:23 +0000 (22:48 +0200)]
Actually bind to the configured address.

D'oh!

17 years agoReset the address-family to `AF_UNSPEC' before setting the source address.
Florian Forster [Mon, 12 Jun 2006 20:46:08 +0000 (22:46 +0200)]
Reset the address-family to `AF_UNSPEC' before setting the source address.

In >90% of all cases you will pass an IP-address to that option anyway. After
the address has been looked up, set `obj->addrfamily' accordingly.

17 years agoAdded the ability to set the source address in the library.
Florian Forster [Mon, 12 Jun 2006 20:30:13 +0000 (22:30 +0200)]
Added the ability to set the source address in the library.

Use `ping_setopt' and `PING_OPT_SOURCE' to set it. This _might_ fail under *BSD
and/or Mac OS X, I have to test that..

17 years agoMerge branch 'feature'
Florian Forster [Fri, 9 Jun 2006 21:26:19 +0000 (23:26 +0200)]
Merge branch 'feature'

17 years agoBumped version to 0.2.2; Updated ChangeLog liboping-0.2.2
Florian Forster [Mon, 5 Jun 2006 08:04:44 +0000 (10:04 +0200)]
Bumped version to 0.2.2; Updated ChangeLog

17 years agooping: Call `return' rather than `exit' in `main'.
Florian Forster [Sat, 3 Jun 2006 08:36:28 +0000 (10:36 +0200)]
oping: Call `return' rather than `exit' in `main'.

17 years agoUse `AI_CANONNAME' if it's defined.
Florian Forster [Sat, 3 Jun 2006 08:33:47 +0000 (10:33 +0200)]
Use `AI_CANONNAME' if it's defined.

This will follow PTR records. `www.verplant.org' is changed to `verplant.org',
for example. It's not what I intended (I wanted a reverse lookup of
IP-addresses), but still better than what we had originally. I don't know if
I'll leave it like this. Might be though..

17 years agooping: Improved the error message is a destination cannot be resolved.
Florian Forster [Fri, 2 Jun 2006 22:14:16 +0000 (00:14 +0200)]
oping: Improved the error message is a destination cannot be resolved.

Also no further error is printed if the command exits due to no resolvable
hosts: People will notice that condition..

17 years agooping: Exit if no hosts could be added.
Florian Forster [Fri, 2 Jun 2006 17:29:15 +0000 (19:29 +0200)]
oping: Exit if no hosts could be added.

If no hosts could be added (e.g. because resolving the hostnames failed) the
oping application didn't exit but seemed to hang. Actually it was calling
`poll' (or select?) without any file descriptors, and not outputting anything
at all.
This patch makes oping exit if no hosts could be added to the oping library.

17 years agoBumped version to 0.2.1 liboping-0.2.1
Florian Forster [Thu, 1 Jun 2006 20:32:32 +0000 (22:32 +0200)]
Bumped version to 0.2.1

17 years agoUpdated ChangeLog: Added entry about the removal of `bind(2)'.
Florian Forster [Thu, 1 Jun 2006 20:24:35 +0000 (22:24 +0200)]
Updated ChangeLog: Added entry about the removal of `bind(2)'.

17 years agoDon't call bind when opening a socket.
Florian Forster [Thu, 1 Jun 2006 20:17:19 +0000 (22:17 +0200)]
Don't call bind when opening a socket.

The call to bind, thoug working fine under GNU/Linux, seems not to work under
other operating systems. It didn't work under FreeBSD and Mac OS X with the
`bind' call but without.
I think `bind' may only be neccessary if we want to bind to a specific
interface. It might be a good idea to add the possibility later, so I only
commented the code for now.

17 years agoCast `size_t' to `unsigned int'. Needed by Mac OS X.
Florian Forster [Thu, 1 Jun 2006 20:11:57 +0000 (22:11 +0200)]
Cast `size_t' to `unsigned int'. Needed by Mac OS X.

This cast has been missed by the prefious fix because it was in the debugging
code which was disabled then..

17 years agoMerge branch 'debug-flag' into liboping-0.2
Florian Forster [Thu, 1 Jun 2006 19:11:53 +0000 (21:11 +0200)]
Merge branch 'debug-flag' into liboping-0.2

17 years agoAdded `--enable-debug' to the configure script.
Florian Forster [Thu, 1 Jun 2006 19:10:32 +0000 (21:10 +0200)]
Added `--enable-debug' to the configure script.

It's now possible to enable debugging by using the above configure option.

17 years agoAdded a ChangeLog entry about changes in the build system.
Florian Forster [Thu, 1 Jun 2006 18:26:56 +0000 (20:26 +0200)]
Added a ChangeLog entry about changes in the build system.

17 years agoFix the configure-script for FreeBSD.
Florian Forster [Thu, 1 Jun 2006 16:14:17 +0000 (18:14 +0200)]
Fix the configure-script for FreeBSD.

The `netinet/*.h' includes need `sys/types.h' to be included before they are.
This prevented building under FreeBSD as reported by `_oli_'.

17 years agoCast (size_t) to (unsigned int).
Florian Forster [Thu, 1 Jun 2006 07:38:30 +0000 (09:38 +0200)]
Cast (size_t) to (unsigned int).

It's not always automatically an unsigned int on other platforms, e.g. Mac OS X.

17 years agoBumped the version to 0.2.0. Completed the ChangeLog entry. liboping-0.2.0
Florian Forster [Mon, 29 May 2006 08:01:55 +0000 (10:01 +0200)]
Bumped the version to 0.2.0. Completed the ChangeLog entry.

17 years agoReverse the ordering of the hosts.
octo [Fri, 19 May 2006 14:47:06 +0000 (14:47 +0000)]
Reverse the ordering of the hosts.

17 years agoDisplay a line of the following form when starting `oping':
octo [Fri, 19 May 2006 14:40:57 +0000 (14:40 +0000)]
Display a line of the following form when starting `oping':
  PING www.ipv6.org (2001:6b0:1:ea:202:a5ff:fecd:13a6) 56 bytes of data.

17 years agoImproved oping: Save the sequence in an `unsigned int' rather than a `uint16_t' and...
octo [Thu, 18 May 2006 11:42:58 +0000 (11:42 +0000)]
Improved oping: Save the sequence in an `unsigned int' rather than a `uint16_t' and print the received bytes.

17 years agoUpdated changelog: Added the post version-0.1 changes..
octo [Tue, 16 May 2006 19:11:38 +0000 (19:11 +0000)]
Updated changelog: Added the post version-0.1 changes..

17 years agoCorrect the calculation of the standard deviation.
octo [Tue, 16 May 2006 19:10:46 +0000 (19:10 +0000)]
Correct the calculation of the standard deviation.

17 years agoImplemented better handling of the DATA stuff.. Needs to be implemented still.
octo [Mon, 15 May 2006 20:56:32 +0000 (20:56 +0000)]
Implemented better handling of the DATA stuff.. Needs to be implemented still.
But for now data can be assigned to ping_objs, it's inherited by ping_hosts and
can be retrieved by `ping_get_info'.

17 years agoImplemented the possibility to set the buffer being sent. This allows larger/smaller...
octo [Sun, 14 May 2006 21:11:09 +0000 (21:11 +0000)]
Implemented the possibility to set the buffer being sent. This allows larger/smaller packets to be sent.

17 years agoMake iterator_get_info return the sequence as an unsigned int, rather than an uint16_t.
octo [Sun, 14 May 2006 08:01:55 +0000 (08:01 +0000)]
Make iterator_get_info return the sequence as an unsigned int, rather than an uint16_t.

17 years agoImplemented `-h' option.
octo [Fri, 12 May 2006 15:51:27 +0000 (15:51 +0000)]
Implemented `-h' option.
Allow non-root users to get syntax information.
Use correct computation of standard deviation.

17 years agoocto@huhu:~/liboping $ svn merge -r7:9 branches/liboping-0.1 trunk
octo [Fri, 12 May 2006 15:41:11 +0000 (15:41 +0000)]
octo@huhu:~/liboping $ svn merge -r7:9 branches/liboping-0.1 trunk

17 years agoBumped version to 0.1.1 liboping-0.1.1
octo [Fri, 12 May 2006 15:40:45 +0000 (15:40 +0000)]
Bumped version to 0.1.1

17 years agoAdded note about 0.1.1 to ChangeLog
octo [Fri, 12 May 2006 15:40:28 +0000 (15:40 +0000)]
Added note about 0.1.1 to ChangeLog

17 years agoocto@huhu:~/liboping $ svn merge -r2:3 trunk branches/liboping-0.1
octo [Fri, 12 May 2006 15:32:18 +0000 (15:32 +0000)]
octo@huhu:~/liboping $ svn merge -r2:3 trunk branches/liboping-0.1

17 years agoocto@huhu:~/liboping $ svn cp tags/liboping-0.1.0 branches/liboping-0.1
octo [Fri, 12 May 2006 15:31:11 +0000 (15:31 +0000)]
octo@huhu:~/liboping $ svn cp tags/liboping-0.1.0 branches/liboping-0.1

17 years agoOnly display statistics in oping if packets have been received.
octo [Fri, 12 May 2006 14:23:24 +0000 (14:23 +0000)]
Only display statistics in oping if packets have been received.
Also, don't devide by zero.

17 years agoAdded the calculation of `mdev' to `oping'
octo [Thu, 11 May 2006 18:14:24 +0000 (18:14 +0000)]
Added the calculation of `mdev' to `oping'

17 years agoFixed that nasty bug in the `sequence' code: Comparing an int with a short without...
octo [Tue, 9 May 2006 05:34:03 +0000 (05:34 +0000)]
Fixed that nasty bug in the `sequence' code: Comparing an int with a short without casting.. Argh..

17 years agoCopied trunk/ to tags/liboping-0.1.0 liboping-0.1.0
octo [Mon, 8 May 2006 14:23:26 +0000 (14:23 +0000)]
Copied trunk/ to tags/liboping-0.1.0

17 years agoCreated standard subversion directories.
octo [Mon, 8 May 2006 14:16:34 +0000 (14:16 +0000)]
Created standard subversion directories.
Imported everything from the collectd repository.