[Client] Fix usage printing

Print default values for delay and number of packets.
This commit is contained in:
Matteo Cypriani 2010-07-29 10:56:50 +02:00
parent f8f6e51dd6
commit ec566286b4
1 changed files with 9 additions and 2 deletions

View File

@ -422,8 +422,11 @@ void print_usage()
"\t-d dest_ip\tDestination IP address of the localisation request.\n"
"\t-p dest_port\tDestination port of the localisation request"
" (default: %d).\n"
"\t-t delay\tTime between each packet transmission.\n"
"\t-n nb_packets\tNumber of packet transmitted for the request.\n"
"\t-t delay\tTime between each packet transmission (default: %d"
" µs for a normal request, %d µs for a calibration request).\n"
"\t-n nb_packets\tNumber of packet transmitted for the request"
" (default: %d for a normal request, %d for a calibration"
" request).\n"
"\t-i iface\tName of the network interface used to transmit the"
" request (e.g. \"eth2\"). If this option is absent, interface"
" is selected automatically. You must be root to use this"
@ -435,6 +438,10 @@ void print_usage()
program_name,
program_name,
LOC_REQUEST_DEFAULT_PORT,
DEFAULT_DELAY_NORMAL,
DEFAULT_DELAY_CALIB,
DEFAULT_NBPKT_NORMAL,
DEFAULT_NBPKT_CALIB,
MOBILE_DEFAULT_PORT
) ;
}