From: David Schweikert Date: Mon, 16 Jul 2012 16:47:51 +0000 (+0200) Subject: Set default data size to 56 bytes on all architectures (#18) X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16d117a170d85405558ef2447c91e5c6e5397c8;p=fping.git Set default data size to 56 bytes on all architectures (#18) --- diff --git a/ChangeLog b/ChangeLog index fdf4659..abde3e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ UNRELEAESD David Schweikert * Convert man-page source to POD for easier maintenance * Man-page fix: TOS option typo (Thomas Liske) * Man-page fix: inconsistency in regards to numeric arguments (Robert Henney) + * Set default data size to 56 bytes on all architectures (#18) 2012-05-29 David Schweikert * Version 3.2 diff --git a/src/fping.c b/src/fping.c index 2e25620..32510cb 100644 --- a/src/fping.c +++ b/src/fping.c @@ -133,7 +133,7 @@ typedef struct ping_data #define MAX_PING_DATA ( MAX_IP_PACKET - SIZE_IP_HDR - SIZE_ICMP_HDR ) /* sized so as to be like traditional ping */ -#define DEFAULT_PING_DATA_SIZE ( MIN_PING_DATA + 44 ) +#define DEFAULT_PING_DATA_SIZE 56 /* maxima and minima */ #define MAX_COUNT 10000 @@ -2828,7 +2828,7 @@ void usage(int is_error) fprintf(out, "Usage: %s [options] [targets...]\n", prog ); fprintf(out, " -a show targets that are alive\n" ); fprintf(out, " -A show targets by address\n" ); - fprintf(out, " -b n amount of ping data to send, in bytes (default %d)\n", ping_data_size ); + fprintf(out, " -b n amount of ping data to send, in bytes (default %d)\n", DEFAULT_PING_DATA_SIZE); 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" );