[Client] Print config on stdout (not stderr)
This commit is contained in:
parent
e48724b332
commit
9ca63f0858
|
@ -428,38 +428,38 @@ void check_configuration()
|
||||||
|
|
||||||
void print_configuration()
|
void print_configuration()
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Options:\n"
|
printf("Options:\n"
|
||||||
"\tDaemon: %s\n"
|
"\tDaemon: %s\n"
|
||||||
"\tVerbose: %s\n"
|
"\tVerbose: %s\n"
|
||||||
"\tDestination IP: %s\n"
|
"\tDestination IP: %s\n"
|
||||||
"\tDestination port: %"PRIuFAST16"\n"
|
"\tDestination port: %"PRIuFAST16"\n"
|
||||||
"\tInterface: %s\n"
|
"\tInterface: %s\n"
|
||||||
"\tDelay (ms): %"PRIdFAST32"\n"
|
"\tDelay (ms): %"PRIdFAST32"\n"
|
||||||
"\tNumber of packets: %"PRIuFAST16"\n"
|
"\tNumber of packets: %"PRIuFAST16"\n"
|
||||||
"\tPacket size: %"PRIuFAST16"\n"
|
"\tPacket size: %"PRIuFAST16"\n"
|
||||||
"\tFlood delay (ms): %"PRIdFAST32"\n"
|
"\tFlood delay (ms): %"PRIdFAST32"\n"
|
||||||
"\tNumber of requests: %"PRIuFAST16"\n"
|
"\tNumber of requests: %"PRIuFAST16"\n"
|
||||||
"\tListening port: %"PRIuFAST16"\n"
|
"\tListening port: %"PRIuFAST16"\n"
|
||||||
"\tDirection: %"PRIu8"\n"
|
"\tDirection: %"PRIu8"\n"
|
||||||
"\tX: %f\n"
|
"\tX: %f\n"
|
||||||
"\tY: %f\n"
|
"\tY: %f\n"
|
||||||
"\tZ: %f\n"
|
"\tZ: %f\n"
|
||||||
,
|
,
|
||||||
OWL_BOOL_TO_STRING(options.daemon),
|
OWL_BOOL_TO_STRING(options.daemon),
|
||||||
OWL_BOOL_TO_STRING(options.verbose),
|
OWL_BOOL_TO_STRING(options.verbose),
|
||||||
options.dest_ip,
|
options.dest_ip,
|
||||||
options.dest_port,
|
options.dest_port,
|
||||||
options.iface,
|
options.iface,
|
||||||
options.delay,
|
options.delay,
|
||||||
options.nb_pkt,
|
options.nb_pkt,
|
||||||
options.pkt_size,
|
options.pkt_size,
|
||||||
options.flood_delay,
|
options.flood_delay,
|
||||||
options.nb_requests,
|
options.nb_requests,
|
||||||
options.listening_port,
|
options.listening_port,
|
||||||
options.direction,
|
options.direction,
|
||||||
options.x,
|
options.x,
|
||||||
options.y,
|
options.y,
|
||||||
options.z
|
options.z
|
||||||
) ;
|
) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue