liboping.git
18 years agoconfigure.ac: Don't run `configure' in src/.
Florian Forster [Sun, 16 Jul 2006 10:27:22 +0000 (12:27 +0200)]
configure.ac: Don't run `configure' in src/.

18 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.

18 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 :)

18 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

18 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'.

18 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..

18 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.

18 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

18 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)'.

18 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.

18 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..

18 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

18 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.

18 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.

18 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_'.

18 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.

18 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.

18 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.

18 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.

18 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.

18 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..

18 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.

18 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'.

18 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.

18 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.

18 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.

18 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

18 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

18 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

18 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

18 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

18 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.

18 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'

18 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..

18 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

18 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.