82186fd6db
- first ISC release to incorporate DHCPv6 protocol support - source tree now uses GNU autoconf/automake - Removed the libdhcp4client-static package
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
diff -up dhcp-4.0.0/client/dhclient.c.usage dhcp-4.0.0/client/dhclient.c
|
|
--- dhcp-4.0.0/client/dhclient.c.usage 2007-12-31 18:05:29.000000000 -1000
|
|
+++ dhcp-4.0.0/client/dhclient.c 2007-12-31 18:05:43.000000000 -1000
|
|
@@ -893,21 +893,30 @@ main(int argc, char **argv) {
|
|
|
|
static void usage ()
|
|
{
|
|
- log_info ("%s %s", message, PACKAGE_VERSION);
|
|
- log_info (copyright);
|
|
- log_info (arr);
|
|
- log_info (url);
|
|
+ printf ("%s %s", message, PACKAGE_VERSION);
|
|
+ printf (copyright);
|
|
+ printf ("\n");
|
|
+ printf (arr);
|
|
+ printf ("\n");
|
|
+ printf (url);
|
|
+ printf ("\n");
|
|
|
|
- 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");
|
|
+ printf (" [-cf config-file] [-lf lease-file]%s",
|
|
+ "[-pf pid-file] [-e VAR=val]\n");
|
|
+ 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,
|