dhcp-4.1.1 usage

Chris Verges chrisv at cyberswitching.com
Wed Mar 3 00:16:46 UTC 2010


Hi all,

Minor point, but I think that in dhclient.c, the usage() function might
be missing a few options:

static void usage()
{
        log_info("%s %s", message, PACKAGE_VERSION);
        log_info(copyright);
        log_info(arr);
        log_info(url);

        log_error("Usage: dhclient %s %s",
#ifdef DHCPv6
                  "[-4|-6] [-SNTP1dvrx] [-nw] [-p <port>]",
#else /* DHCPv6 */
                  "[-1dvrx] [-nw] [-p <port>]",
#endif /* DHCPv6 */
                  "[-s server]");
        log_error("                [-cf config-file] [-lf
lease-file]%s",
                  "[-pf pid-file] [-e VAR=val]");
        log_fatal("                [-sf script-file] [interface]");
}

Specifically, the following flags: -q, -g, -n, -w, and --version.  When
looking at the main() routine, these flags are checked but not printed
in the usage information.  Just a bug, or something more intentional?

Thanks,
Chris



More information about the dhcp-users mailing list