From: Alan T. DeKok Date: Sun, 2 Nov 2014 19:44:32 +0000 (-0500) Subject: Added -D option to mirror radclient X-Git-Tag: branch_3_1_x~4800 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64f77a8b05daf60a8e39c9fcdc19ec440c0cfa01;p=thirdparty%2Ffreeradius-server.git Added -D option to mirror radclient --- diff --git a/src/modules/proto_dhcp/dhcpclient.c b/src/modules/proto_dhcp/dhcpclient.c index e886c76734e..8904e6172df 100644 --- a/src/modules/proto_dhcp/dhcpclient.c +++ b/src/modules/proto_dhcp/dhcpclient.c @@ -72,6 +72,7 @@ static void NEVER_RETURNS usage(void) fprintf(stderr, " One of discover, request, offer, decline, release, inform.\n"); fprintf(stderr, " -d Set the directory where the dictionaries are stored (defaults to " RADDBDIR ").\n"); + fprintf(stderr, " -D Set main dictionary directory (defaults to " DICTDIR ").\n"); fprintf(stderr, " -f Read packets from file, not stdin.\n"); fprintf(stderr, " -t Wait 'timeout' seconds for a reply (may be a floating point number).\n"); fprintf(stderr, " -v Show program version information.\n"); @@ -269,7 +270,11 @@ int main(int argc, char **argv) fr_debug_flag = 0; - while ((c = getopt(argc, argv, "d:f:hr:t:vx")) != EOF) switch(c) { + while ((c = getopt(argc, argv, "d:D:f:hr:t:vx")) != EOF) switch(c) { + case 'D': + dict_dir = optarg; + break; + case 'd': radius_dir = optarg; break;