2007-10-23 19:04:57 +00:00
|
|
|
diff -up dhcp-3.1.0/client/dhclient.c.usage dhcp-3.1.0/client/dhclient.c
|
|
|
|
--- dhcp-3.1.0/client/dhclient.c.usage 2007-10-22 15:52:06.000000000 -0400
|
|
|
|
+++ dhcp-3.1.0/client/dhclient.c 2007-10-22 15:54:21.000000000 -0400
|
|
|
|
@@ -818,16 +818,25 @@ int main (argc, argv, envp)
|
2007-04-01 20:52:27 +00:00
|
|
|
|
|
|
|
static void usage ()
|
|
|
|
{
|
|
|
|
- log_info ("%s %s", message, DHCP_VERSION);
|
|
|
|
- log_info (copyright);
|
|
|
|
- log_info (arr);
|
|
|
|
- log_info (url);
|
2007-08-16 18:33:06 +00:00
|
|
|
-
|
2007-10-23 19:04:57 +00:00
|
|
|
- log_error ("Usage: dhclient [-1dqrx] [-nw] [-p <port>] %s",
|
2007-08-16 18:33:06 +00:00
|
|
|
- "[-s server]");
|
|
|
|
- log_error (" [-cf config-file] [-lf lease-file]%s",
|
|
|
|
- "[-pf pid-file] [-e VAR=val]");
|
|
|
|
- log_fatal (" [-sf script-file] [interface]");
|
2007-04-01 20:52:27 +00:00
|
|
|
+ printf ("%s %s\n", message, DHCP_VERSION);
|
|
|
|
+ printf (copyright);
|
|
|
|
+ printf ("\n");
|
|
|
|
+ printf (arr);
|
|
|
|
+ printf ("\n");
|
|
|
|
+ printf (url);
|
|
|
|
+ printf ("\n");
|
2007-08-16 18:33:06 +00:00
|
|
|
+
|
2007-04-01 20:52:27 +00:00
|
|
|
+ printf ("Usage: dhclient [-1dqr] [-nw] [-p <port>] %s",
|
|
|
|
+ "[-s server]");
|
|
|
|
+ printf (" [-cf config-file] [-lf lease-file]%s",
|
|
|
|
+ "[-pf pid-file] [-e VAR=val]");
|
|
|
|
+ printf (" [ -I <dhcp-client-identifier> ] [-B]\n");
|
|
|
|
+ printf (" [ -H <host-name> | -F <fqdn.fqdn> ] [ -T <timeout> ]\n");
|
|
|
|
+ printf (" [ -V <vendor-class-identifier> ]\n");
|
|
|
|
+ printf (" [ -R <request option list> ]\n");
|
2007-04-17 14:45:46 +00:00
|
|
|
+ printf (" [-sf script-file] [interface]\n");
|
2007-04-01 20:52:27 +00:00
|
|
|
+
|
|
|
|
+ exit (EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
|
|
|
|
isc_result_t find_class (struct class **c,
|