]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Added -D option to mirror radclient
authorAlan T. DeKok <aland@freeradius.org>
Sun, 2 Nov 2014 19:44:32 +0000 (14:44 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 2 Nov 2014 20:35:33 +0000 (15:35 -0500)
src/modules/proto_dhcp/dhcpclient.c

index e886c76734e30ef5e4d60c58528141589e4c7e5a..8904e6172dff2bc1b5affda4d58a776ff233817c 100644 (file)
@@ -72,6 +72,7 @@ static void NEVER_RETURNS usage(void)
 
        fprintf(stderr, "  <command>              One of discover, request, offer, decline, release, inform.\n");
        fprintf(stderr, "  -d <directory>         Set the directory where the dictionaries are stored (defaults to " RADDBDIR ").\n");
+       fprintf(stderr, "  -D <dictdir>           Set main dictionary directory (defaults to " DICTDIR ").\n");
        fprintf(stderr, "  -f <file>              Read packets from file, not stdin.\n");
        fprintf(stderr, "  -t <timeout>           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;