From: Jorge Pereira Date: Wed, 14 Jun 2023 16:15:38 +0000 (-0300) Subject: dhcpclient: Add missing '-r ' help message. (#5058) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18cd5252b4296922006933fdfeb084d42036c9e7;p=thirdparty%2Ffreeradius-server.git dhcpclient: Add missing '-r ' help message. (#5058) * dhcpclient: Add missing '-r ' help message. * dhcpclient: Better message to avoid bad experience Even in debug mode (-x), its impossible to know if the client is blocked or trying something. --- diff --git a/src/bin/dhcpclient.c b/src/bin/dhcpclient.c index 42293bdcf12..81b6bf7f0eb 100644 --- a/src/bin/dhcpclient.c +++ b/src/bin/dhcpclient.c @@ -34,7 +34,7 @@ RCSID("$Id$") /* * Logging macros */ - #undef DEBUG +#undef DEBUG #define DEBUG(fmt, ...) if (fr_debug_lvl > 0) fprintf(stdout, fmt "\n", ## __VA_ARGS__) #define ERROR(fmt, ...) fr_perror("dhcpclient: " fmt, ## __VA_ARGS__) @@ -132,6 +132,7 @@ static NEVER_RETURNS void usage(void) DEBUG(" -D Set main dictionary directory (defaults to " DICTDIR ")."); DEBUG(" -f Read packets from file, not stdin."); DEBUG(" -i Use this interface to send/receive at packet level on a raw socket."); + DEBUG(" -r On timeout, retry sending the packet 'retries' times.\n"); DEBUG(" -t Wait 'timeout' seconds for a reply (may be a floating point number)."); DEBUG(" -v Show program version information."); DEBUG(" -x Debugging mode."); @@ -160,6 +161,7 @@ static int request_init(fr_radius_packet_t **out, fr_pair_list_t *packet_vps, ch return -1; } } else { + DEBUG("Reading packets from stdin\n"); fp = stdin; }