1
0
mirror of https://frontier.innolan.net/rainlance/amiga-fping.git synced 2025-11-24 01:55:12 +00:00

Set default data size to 56 bytes on all architectures (#18)

This commit is contained in:
David Schweikert
2012-07-16 18:47:51 +02:00
parent 0e3e404a3d
commit b16d117a17
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ UNRELEAESD David Schweikert <david@schweikert.ch>
* 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 <david@schweikert.ch>
* Version 3.2

View File

@ -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" );