Hello community, here is the log from the commit of package fping for openSUSE:Factory checked in at 2013-08-19 10:50:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fping (Old) and /work/SRC/openSUSE:Factory/.fping.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fping" Changes: -------- --- /work/SRC/openSUSE:Factory/fping/fping.changes 2013-01-31 14:46:39.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.fping.new/fping.changes 2013-08-19 10:50:30.000000000 +0200 @@ -1,0 +2,12 @@ +Sun Aug 18 22:00:36 UTC 2013 - [email protected] + +- Update to version 3.5: + * Fix sprint_tm buffer size crash. + * Addded -D flag to print timestamps. + * Fix fping6 build on OS X 10.8. + * Fix compatibility issue with FreeBSD (#39). + * Fping.spec: fix setuid permissions and provides fping6. + * Re-create configure script with autoconf 2.69 for aarch64 + support (#45). + +------------------------------------------------------------------- Old: ---- fping-3.4.tar.gz New: ---- fping-3.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fping.spec ++++++ --- /var/tmp/diff_new_pack.5SIAZd/_old 2013-08-19 10:50:31.000000000 +0200 +++ /var/tmp/diff_new_pack.5SIAZd/_new 2013-08-19 10:50:31.000000000 +0200 @@ -18,7 +18,7 @@ Name: fping Url: http://www.fping.org -Version: 3.4 +Version: 3.5 Release: 0 Summary: A program to ping multiple hosts License: MIT ++++++ fping-3.4.tar.gz -> fping-3.5.tar.gz ++++++ ++++ 3919 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/ChangeLog new/fping-3.5/ChangeLog --- old/fping-3.4/ChangeLog 2012-09-04 09:31:40.000000000 +0200 +++ new/fping-3.5/ChangeLog 2013-05-22 08:56:36.000000000 +0200 @@ -1,3 +1,12 @@ +2013-05-22 David Schweikert <[email protected]> + * Version 3.5 + * Fix sprint_tm buffer size crash (reported by Japheth Cleaver) + * Addded -D flag to print timestamps (Toke Høiland-Jørgensen) + * Fix fping6 build on OS X 10.8 (unknown contributor) + * Fix compatibility issue with FreeBSD (Alexandre Raynaud, Jason Harris, #39) + * Fping.spec: fix setuid permissions and provides fping6 (Marcus Vinicius Ferreira) + * Re-create configure script with autoconf 2.69 for aarch64 support (Chuck Anderson, #45) + 2012-09-04 David Schweikert <[email protected]> * Version 3.4 * Revert "Output statistics to stdout instead of stderr", because it breaks diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/configure.ac new/fping-3.5/configure.ac --- old/fping-3.4/configure.ac 2012-09-04 09:32:00.000000000 +0200 +++ new/fping-3.5/configure.ac 2013-05-22 08:48:44.000000000 +0200 @@ -3,7 +3,7 @@ dnl Minimum Autoconf version required. AC_PREREQ(2.59) -AC_INIT([fping],[3.4]) +AC_INIT([fping],[3.5]) dnl make ipv4 and ipv6 options AC_ARG_ENABLE([ipv4], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/doc/Makefile.am new/fping-3.5/doc/Makefile.am --- old/fping-3.4/doc/Makefile.am 2012-07-20 00:37:44.000000000 +0200 +++ new/fping-3.5/doc/Makefile.am 2013-02-17 22:59:18.000000000 +0100 @@ -8,10 +8,10 @@ man_MANS += fping6.8 endif -EXTRA_DIST = $(man_MANS) fping.pod README.1992 +EXTRA_DIST = fping.8 fping6.8 fping.pod README.1992 fping.8: fping.pod - pod2man -c "" -s 8 -r "fping $(VERSION)" $< >$@ + pod2man -c "" -s 8 -r "fping" $< >$@ fping6.8: fping.pod - pod2man -c "" -s 8 -r "fping $(VERSION)" -n fping6 $< >$@ + pod2man -c "" -s 8 -r "fping" -n fping6 $< >$@ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/doc/fping.8 new/fping-3.5/doc/fping.8 --- old/fping-3.4/doc/fping.8 2012-08-12 21:13:57.000000000 +0200 +++ new/fping-3.5/doc/fping.8 2013-05-22 08:49:13.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07) +.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "FPING 8" -.TH FPING 8 "2012-07-20" "fping 3.3-rc1" "" +.TH FPING 8 "2013-05-21" "fping" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -197,6 +197,10 @@ .IX Item "-d" Use \s-1DNS\s0 to lookup address of return ping packet. This allows you to give fping a list of \s-1IP\s0 addresses as input and print hostnames in the output. +.IP "\fB\-D\fR" 5 +.IX Item "-D" +Add Unix timestamps in front of output lines generated with in looping or counting +modes (\fB\-l\fR, \fB\-c\fR, or \fB\-C\fR). .IP "\fB\-e\fR" 5 .IX Item "-e" Show elapsed (round-trip) time of packets. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/doc/fping.pod new/fping-3.5/doc/fping.pod --- old/fping-3.4/doc/fping.pod 2012-07-20 00:37:44.000000000 +0200 +++ new/fping-3.5/doc/fping.pod 2013-05-21 21:47:16.000000000 +0200 @@ -77,6 +77,11 @@ Use DNS to lookup address of return ping packet. This allows you to give fping a list of IP addresses as input and print hostnames in the output. +=item B<-D> + +Add Unix timestamps in front of output lines generated with in looping or counting +modes (B<-l>, B<-c>, or B<-C>). + =item B<-e> Show elapsed (round-trip) time of packets. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/doc/fping6.8 new/fping-3.5/doc/fping6.8 --- old/fping-3.4/doc/fping6.8 2012-08-12 21:14:19.000000000 +0200 +++ new/fping-3.5/doc/fping6.8 2013-05-22 08:49:13.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07) +.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "fping6 8" -.TH fping6 8 "2012-07-20" "fping 3.3-rc1" "" +.TH fping6 8 "2013-05-21" "fping" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -197,6 +197,10 @@ .IX Item "-d" Use \s-1DNS\s0 to lookup address of return ping packet. This allows you to give fping a list of \s-1IP\s0 addresses as input and print hostnames in the output. +.IP "\fB\-D\fR" 5 +.IX Item "-D" +Add Unix timestamps in front of output lines generated with in looping or counting +modes (\fB\-l\fR, \fB\-c\fR, or \fB\-C\fR). .IP "\fB\-e\fR" 5 .IX Item "-e" Show elapsed (round-trip) time of packets. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/missing new/fping-3.5/missing --- old/fping-3.4/missing 2012-08-12 21:13:49.000000000 +0200 +++ new/fping-3.5/missing 2013-05-22 08:48:50.000000000 +0200 @@ -1,10 +1,10 @@ #! /bin/sh # Common stub for a few missing GNU programs while installing. -scriptversion=2009-04-28.21; # UTC +scriptversion=2012-01-06.13; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, -# 2008, 2009 Free Software Foundation, Inc. +# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <[email protected]>, 1996. # This program is free software; you can redistribute it and/or modify @@ -84,7 +84,6 @@ help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and @@ -122,15 +121,6 @@ # Not GNU programs, they don't have --version. ;; - tar*) - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - exit 1 - fi - ;; - *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. @@ -226,7 +216,7 @@ \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then - eval LASTARG="\${$#}" + eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` @@ -256,7 +246,7 @@ \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then - eval LASTARG="\${$#}" + eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` @@ -318,41 +308,6 @@ touch $file ;; - tar*) - shift - - # We have already tried tar in the generic part. - # Look for gnutar/gtar before invocation to avoid ugly error - # messages. - if (gnutar --version > /dev/null 2>&1); then - gnutar "$@" && exit 0 - fi - if (gtar --version > /dev/null 2>&1); then - gtar "$@" && exit 0 - fi - firstarg="$1" - if shift; then - case $firstarg in - *o*) - firstarg=`echo "$firstarg" | sed s/o//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - case $firstarg in - *h*) - firstarg=`echo "$firstarg" | sed s/h//` - tar "$firstarg" "$@" && exit 0 - ;; - esac - fi - - echo 1>&2 "\ -WARNING: I can't seem to be able to run \`tar' with the given arguments. - You may want to install GNU tar or Free paxutils, or check the - command line arguments." - exit 1 - ;; - *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/fping-3.4/src/fping.c new/fping-3.5/src/fping.c --- old/fping-3.4/src/fping.c 2012-09-04 09:27:51.000000000 +0200 +++ new/fping-3.5/src/fping.c 2013-05-21 21:56:29.000000000 +0200 @@ -54,6 +54,7 @@ #include <getopt.h> #include <stdarg.h> +#define __APPLE_USE_RFC_3542 1 #include <netinet/in.h> #include "config.h" @@ -313,6 +314,7 @@ int elapsed_flag, version_flag, count_flag, loop_flag; int per_recv_flag, report_all_rtts_flag, name_flag, addr_flag, backoff_flag; int multif_flag; +int timestamp_flag = 0; #if defined( DEBUG ) || defined( _DEBUG ) int randomly_lose_flag, sent_times_flag, trace_flag, print_per_system_flag; int lose_factor; @@ -491,7 +493,7 @@ /* get command line options */ - while( ( c = getopt( argc, argv, "gedhlmnqusaAvz:t:H:i:p:f:r:c:b:C:Q:B:S:I:T:O:" ) ) != EOF ) + while( ( c = getopt( argc, argv, "gedhlmnqusaAvDz:t:H:i:p:f:r:c:b:C:Q:B:S:I:T:O:" ) ) != EOF ) { switch( c ) { @@ -582,6 +584,10 @@ stats_flag = 1; break; + case 'D': + timestamp_flag = 1; + break; + case 'l': loop_flag = 1; backoff_flag = 0; @@ -683,7 +689,7 @@ /* validate various option settings */ - if (ttl < 0 || ttl > 255) { + if (ttl > 255) { fprintf(stderr, "ping: ttl %u out of range\n", ttl); usage(1); } @@ -1142,7 +1148,7 @@ ev_enqueue(h); } /* Count mode: schedule timeout after last ping */ - else if(count_flag && count_flag && h->num_sent >= count) { + else if(count_flag && h->num_sent >= count) { h->ev_type = EV_TYPE_TIMEOUT; h->ev_time.tv_sec = last_send_time.tv_sec; h->ev_time.tv_usec = last_send_time.tv_usec; @@ -1573,7 +1579,12 @@ ( struct sockaddr* )&h->saddr, sizeof( FPING_SOCKADDR ) ); if( n < 0 || n != ping_pkt_size ) - { + if( + (n < 0 || n != ping_pkt_size) +#if defined( EHOSTDOWN ) + && errno != EHOSTDOWN +#endif + ) { if( verbose_flag || unreachable_flag ) { printf( "%s", h->host ); @@ -1822,6 +1833,11 @@ if( per_recv_flag ) { + if(timestamp_flag) { + printf("[%lu.%06lu] ", + (unsigned long)current_time.tv_sec, + (unsigned long)current_time.tv_usec); + } avg = h->total_time / h->num_recv; printf( "%s%s : [%d], %d bytes, %s ms", h->host, h->pad, this_count, result, sprint_tm( this_reply ) ); @@ -2534,36 +2550,32 @@ { static char buf[10]; - /* <= 0.99 ms */ - if( t < 100 ) - { + if( t < 0 ) { + /* negative (unexpected) */ + sprintf( buf, "%.2g", (double) t / 100 ); + } + else if( t < 100 ) { + /* <= 0.99 ms */ sprintf( buf, "0.%02d", t ); - return( buf ); - - }/* IF */ - - /* 1.00 - 9.99 ms */ - if( t < 1000 ) - { + } + else if( t < 1000 ) { + /* 1.00 - 9.99 ms */ sprintf( buf, "%d.%02d", t / 100, t % 100 ); - return( buf ); - - }/* IF */ - - /* 10.0 - 99.9 ms */ - if( t < 10000 ) - { + } + else if( t < 10000 ) { + /* 10.0 - 99.9 ms */ sprintf( buf, "%d.%d", t / 100, ( t % 100 ) / 10 ); - return( buf ); - - }/* IF */ - - /* >= 100 ms */ - sprintf( buf, "%d", t / 100 ); - return( buf ); - -} /* sprint_tm() */ + } + else if( t < 100000000 ) { + /* 100 - 1'000'000 ms */ + sprintf( buf, "%d", t / 100 ); + } + else { + sprintf( buf, "%.2e", (double) (t / 100) ); + } + return( buf ); +} /************************************************************ @@ -2809,6 +2821,7 @@ fprintf(out, " -B f set exponential backoff factor to f\n" ); fprintf(out, " -c n count of pings to send to each target (default %d)\n", count ); fprintf(out, " -C n same as -c, report results in verbose format\n" ); + fprintf(out, " -D print timestamp before each output line\n" ); fprintf(out, " -e show elapsed time on return packets\n" ); fprintf(out, " -f file read list of targets from a file ( - means stdin) (only if no -g specified)\n" ); fprintf(out, " -g generate target list (only if no -f specified)\n" ); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
