2008-01-13 21:02:47 +00:00
|
|
|
diff -up dhcp-4.0.0/client/dhclient.c.usage dhcp-4.0.0/client/dhclient.c
|
2008-02-14 02:38:19 +00:00
|
|
|
--- dhcp-4.0.0/client/dhclient.c.usage 2008-02-13 16:20:30.000000000 -1000
|
|
|
|
+++ dhcp-4.0.0/client/dhclient.c 2008-02-13 16:21:05.000000000 -1000
|
|
|
|
@@ -882,21 +882,30 @@ main(int argc, char **argv) {
|
2008-01-11 00:16:44 +00:00
|
|
|
|
|
|
|
static void usage ()
|
|
|
|
{
|
2008-01-13 21:02:47 +00:00
|
|
|
- log_info ("%s %s", message, PACKAGE_VERSION);
|
2008-01-11 00:16:44 +00:00
|
|
|
- log_info (copyright);
|
|
|
|
- log_info (arr);
|
|
|
|
- log_info (url);
|
2008-02-14 02:38:19 +00:00
|
|
|
+ printf ("%s %s\n", message, PACKAGE_VERSION);
|
2008-01-11 00:16:44 +00:00
|
|
|
+ printf (copyright);
|
|
|
|
+ printf ("\n");
|
|
|
|
+ printf (arr);
|
|
|
|
+ printf ("\n");
|
|
|
|
+ printf (url);
|
|
|
|
+ printf ("\n");
|
2008-01-13 21:02:47 +00:00
|
|
|
|
|
|
|
- log_error ("Usage: dhclient %s %s",
|
|
|
|
+ printf ("Usage: dhclient %s %s",
|
|
|
|
#ifdef DHCPv6
|
|
|
|
"[-4|-6] [-1dvrx] [-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]");
|
|
|
|
+ "[-s server]\n");
|
2008-01-11 00:16:44 +00:00
|
|
|
+ printf (" [-cf config-file] [-lf lease-file]%s",
|
2008-01-13 21:02:47 +00:00
|
|
|
+ "[-pf pid-file] [-e VAR=val]\n");
|
2008-01-11 00:16:44 +00:00
|
|
|
+ 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");
|
|
|
|
+ printf (" [-sf script-file] [interface]\n");
|
|
|
|
+
|
|
|
|
+ exit (EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
|
|
|
|
isc_result_t find_class (struct class **c,
|