[liboping-changes] octo's ping library: Changes to 'master'

Florian Forster octo at verplant.org
Fri Jul 17 15:03:27 CEST 2009


 .gitignore               |   35 +++++++++++++
 ChangeLog                |   14 +++++
 bindings/perl/README     |    2 
 configure.ac             |    8 +--
 src/liboping.c           |  125 ++++++++++++++++++++++++++++++++++++++++-------
 src/mans/oping.pod       |   11 +++-
 src/mans/ping_setopt.pod |   11 +++-
 src/oping.c              |   57 ++++++++++++++++-----
 src/oping.h              |    1 
 9 files changed, 224 insertions(+), 40 deletions(-)

New commits:
commit 157d6af31291cd39f304e0d9d7e50f8a7910316c
Author: Florian Forster <sifnfors at stud.informatik.uni-erlangen.de>
Date:   Fri Jul 17 14:59:15 2009 +0200

    Bumped version to 1.3.0; Updated ChangeLog.

commit 38bd1cff27396660917ba42cafa79ea4577b7fa3
Merge: db767e93a313902cfbdfd33a6f9b3e4054bcf1f0 9ae85a09d919777c9be52e55b23c08bf2c8c1d0e
Author: Florian Forster <sifnfors at stud.informatik.uni-erlangen.de>
Date:   Fri Jul 17 14:53:04 2009 +0200

    Merge branch 'liboping-1.2'

commit db767e93a313902cfbdfd33a6f9b3e4054bcf1f0
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri Jul 17 14:14:18 2009 +0200

    src/oping.c: Added -D <interface name> command line option.
    
    This option sets the outgoing network device to use.
    
    I decided not to reuse the -I command line option for that purpose (which is
    what GNU ping is doing), for the following reasons:
    
     * In theory, an interface name could be confused with a host name.
     * Imho, it's better to specify things explicitly.
     * This approach is more flexible.

commit 6f3b7d94ab32cd6fc94398ebd326055ad36d88f2
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri Jul 17 14:05:17 2009 +0200

    Added support for PING_OPT_DEVICE.
    
    This option may be used to set the outgoing network device to be used. The
    value passed must be a char-pointer to a null-terminated string specifying an
    interface name (e.g. eth0).
    
    Please note that this might not be supported by all operating systems. In that
    case, ping_setopt() sets the error to "operation not supported".

commit 9ae85a09d919777c9be52e55b23c08bf2c8c1d0e
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri Jul 17 14:41:12 2009 +0200

    src/liboping.c: Catch NULL pointers passed to public functions.
    
    Libraries should not segfault - ever - no matter what a user is doing and how
    stupid that might be.

commit 50aa4bdd8d3fa7a7e2737622a7238d2e5e82d0da
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri Jul 17 14:20:01 2009 +0200

    Added .gitignore.

commit 30ee957b4843140d0d3bae39859d5624824b8feb
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri Jul 17 10:05:38 2009 +0200

    src/liboping.c: Let ping_setopt() return -1 if 'value' is NULL.
    
    The manpage states that 'value' must not be NULL. Anyway, imho, it's still
    better to avoid segfaults inside a library.

commit 3ed22ab6a9f4a6fb78513ca7706dc58d7bf95912
Author: Florian Forster <sifnfors at stud.informatik.uni-erlangen.de>
Date:   Fri Jul 17 14:32:56 2009 +0200

    src/liboping.c: Fix some format strings.

commit 288bac33067ea6c88e2399a8b5ddae051aaaa547
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri Jul 17 09:41:58 2009 +0200

    src/liboping.c: Fixed the handling of multiple hosts.
    
    ping_receive_all() used to always pass the first host object to
    ping_receive_one() which used that host object to determine the expected
    address family. Thus, when pinging v4 and v6 hosts in parallel, some of them
    would have never been considered but assumed to be timed out.
    
    While at it, the code has been clarified in regard to matching an ECHO_REPLY
    with the appropriate host object.

commit 2af6e8235f7843a86f6ec519655617f8b114a935
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri Jul 17 09:39:35 2009 +0200

    src/liboping.c: Do not reset recv_ttl in ping_receive_one().
    
    Instead, reset the value of all host object in ping_receive_all().
    
    ping_receive_one() does not necessarily get a pointer to the host object for
    which we receive a reply, since ICMP messages may be received on _any_ raw
    socket.

commit 115b04b76bb1d127c1de9cdacce717cfc0528b16
Author: Sebastian Harl <sh at tokkee.org>
Date:   Sat Jun 6 21:25:38 2009 +0200

    Minor documentation fixes.

commit a121dac2b7d1c3a47d461179c8b2f59b0a7e4f18
Author: Sebastian Harl <sh at tokkee.org>
Date:   Sat Jun 6 21:21:28 2009 +0200

    src/oping.c: Exit successfully when using the -h option.

commit af263d752aaee96ea408991c8c137f45ae987b55
Author: Sebastian Harl <sh at tokkee.org>
Date:   Sat Jun 6 21:18:23 2009 +0200

    src/oping.c: Improved the help output.
    
    A short description has been added for each option. Also, print the program
    version and author.

commit 73a764bcb1c2d802b0a457fa8280edf48e03953a
Author: Sebastian Harl <sh at tokkee.org>
Date:   Sat Jun 6 21:09:33 2009 +0200

    src/oping.c: Improved and unified error messages when parsing CL options.




More information about the liboping-changes mailing list