diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/fping/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/fping/files')
-rw-r--r-- | net-analyzer/fping/files/fping-2.4_beta2_p161-err.h.patch | 10 | ||||
-rw-r--r-- | net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch | 47 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-analyzer/fping/files/fping-2.4_beta2_p161-err.h.patch b/net-analyzer/fping/files/fping-2.4_beta2_p161-err.h.patch new file mode 100644 index 000000000000..38946ac38524 --- /dev/null +++ b/net-analyzer/fping/files/fping-2.4_beta2_p161-err.h.patch @@ -0,0 +1,10 @@ +--- a/fping.c ++++ b/fping.c +@@ -106,6 +106,7 @@ + + #include <arpa/inet.h> + #include <netdb.h> ++#include <err.h> /* err() warnx() */ + + /* RS6000 has sys/select.h */ + #ifdef HAVE_SYS_SELECT_H diff --git a/net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch b/net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch new file mode 100644 index 000000000000..a101fd4ae0e1 --- /dev/null +++ b/net-analyzer/fping/files/fping-2.4_beta2_p161-min-time.patch @@ -0,0 +1,47 @@ +--- a/fping.c ++++ b/fping.c +@@ -25,6 +25,7 @@ + * Original author: Roland Schemers <schemers@stanford.edu> + * IPv6 Support: Jeroen Massar <jeroen@unfix.org / jeroen@ipng.nl> + * Bugfixes, byte order & senseful seq.-numbers: Stephan Fuhrmann (stephan.fuhrmann AT 1und1.de) ++ * Fixes: min_reply_i in splits and compiler warning. Alex Ghoth (alex AT ghoth.net) + * + * + * RCS header information no longer used. It has been moved to the +@@ -743,7 +744,7 @@ + + if( ( ping_data_size > MAX_PING_DATA ) || ( ping_data_size < MIN_PING_DATA ) ) + { +- fprintf( stderr, "%s: data size %u not valid, must be between %u and %u\n", ++ fprintf( stderr, "%s: data size %u not valid, must be between %lu and %u\n", + prog, ping_data_size, MIN_PING_DATA, MAX_PING_DATA ); + usage(); + +@@ -1112,7 +1113,7 @@ + ht = timeval_diff( ¤t_time, &cursor->last_send_time ); + + if( report_interval && ( loop_flag || count_flag ) && +- ( timeval_diff ( ¤t_time, &last_report_time ) > report_interval ) ) ++ ( timeval_diff ( ¤t_time, &last_report_time ) >= report_interval ) ) + { + print_per_system_splits(); + gettimeofday( ¤t_time, &tz ); +@@ -1487,8 +1488,8 @@ + }/* IF */ + + fprintf( stderr, "\n" ); +- h->num_sent_i = h->num_recv_i = h->max_reply_i = +- h->min_reply_i = h->total_time_i = 0; ++ h->num_sent_i = h->num_recv_i = h->max_reply_i = h->total_time_i = 0; ++ h->min_reply_i = 10000000; + + }/* FOR */ + +@@ -2377,6 +2378,7 @@ + p->timeout = timeout; + p->running = 1; + p->min_reply = 10000000; ++ p->min_reply_i = 10000000; + + if( strlen( p->host ) > max_hostname_len ) + max_hostname_len = strlen( p->host ); |