1 |
--- dhcpxd-1.0.3/dhcpclient.cpp~ 2000-01-22 03:20:37.000000000 +0100 |
2 |
+++ dhcpxd-1.0.3/dhcpclient.cpp 2003-07-16 23:36:35.000000000 +0200 |
3 |
@@ -1086,56 +1086,56 @@ int DHCPClient::ProcessCmdLine(char |
4 |
{
|
5 |
|
6 |
#ifndef __WIN32__
|
7 |
- static char help_msg[] = "Usage: dhcpxd -k|--kill [interface] | -l|--renew [interface] | [-abcdehinprtwABCDHIOR] interface
|
8 |
-Parameters:
|
9 |
- -a Always request broadcasted replies.
|
10 |
- -b Always broadcast requests.
|
11 |
- -c Check to see if IP address already in use.
|
12 |
- -d Discover any IP address.
|
13 |
- This simply ignores the cached IP address for
|
14 |
- the initial requesting sequence.
|
15 |
- -e extension Use the specified extension for script execution.
|
16 |
- Default is \"def\".
|
17 |
- -h This help screen.
|
18 |
- -i Initiate inform session.
|
19 |
- Use this to get the information on statically.
|
20 |
- configured IPs.
|
21 |
- -k iface Kill a session.
|
22 |
- -l iface Trigger renew state on interface(s).
|
23 |
- -n Never request broadcasted replies.
|
24 |
- Suggested technique for cable modems.
|
25 |
- However, you might always want this anyways.
|
26 |
- Using this options is STRONGLY recommended.
|
27 |
- -o number Request the option represented by the `number` to
|
28 |
- be sent in responses. Might be needed for the WINS.
|
29 |
- option.
|
30 |
- -p VAR=VALUE Supply the specified parameter(s) to scripts.
|
31 |
- -r number Supply the specified renew time (hours) in requests.
|
32 |
- Default is 24.
|
33 |
- NOTE: This is almost always overridden by the server.
|
34 |
- -t Test DHCP mechanisms on specific interface.
|
35 |
- Useful for determining the operating mode of the
|
36 |
- DHCP server.
|
37 |
- -v Display version information.
|
38 |
- -w Wait for the session to succeed or timeout.
|
39 |
- -A client_id Append the specified client identifier to default.
|
40 |
- -B iface Use the specified base interface for requests.
|
41 |
- Default is the specified target interface.
|
42 |
- -C client_id Use the specified client identifier.
|
43 |
- Default is the hardware MAC address.
|
44 |
- -D Delete the cache before starting session.
|
45 |
- -H hostname Supply the specified host name in requests.
|
46 |
- -I string Supply the specified class identifier in requests.
|
47 |
- -N Upon receiving NACK force into reselect.
|
48 |
- -O num string Supply the specified option in requests.
|
49 |
- Usage: -O 89 JerryWalker
|
50 |
- -R Do not release the IP address.
|
51 |
- This is useful for keeping the same IP address.
|
52 |
- If this option is specified more than once, the
|
53 |
- client will renew the address before shutting down.
|
54 |
- -T num Set timeout value in seconds.
|
55 |
- -W Do not wait when collecting DHCPOFFER responses.
|
56 |
- Useful for making the protocol \"speedy\".
|
57 |
+ static char help_msg[] = "Usage: dhcpxd -k|--kill [interface] | -l|--renew [interface] | [-abcdehinprtwABCDHIOR] interface\n\
|
58 |
+Parameters:\n\
|
59 |
+ -a Always request broadcasted replies.\n\
|
60 |
+ -b Always broadcast requests.\n\
|
61 |
+ -c Check to see if IP address already in use.\n\
|
62 |
+ -d Discover any IP address.\n\
|
63 |
+ This simply ignores the cached IP address for\n\
|
64 |
+ the initial requesting sequence.\n\
|
65 |
+ -e extension Use the specified extension for script execution.\n\
|
66 |
+ Default is \"def\".\n\
|
67 |
+ -h This help screen.\n\
|
68 |
+ -i Initiate inform session.\n\
|
69 |
+ Use this to get the information on statically.\n\
|
70 |
+ configured IPs.\n\
|
71 |
+ -k iface Kill a session.\n\
|
72 |
+ -l iface Trigger renew state on interface(s).\n\
|
73 |
+ -n Never request broadcasted replies.\n\
|
74 |
+ Suggested technique for cable modems.\n\
|
75 |
+ However, you might always want this anyways.\n\
|
76 |
+ Using this options is STRONGLY recommended.\n\
|
77 |
+ -o number Request the option represented by the `number` to\n\
|
78 |
+ be sent in responses. Might be needed for the WINS.\n\
|
79 |
+ option.\n\
|
80 |
+ -p VAR=VALUE Supply the specified parameter(s) to scripts.\n\
|
81 |
+ -r number Supply the specified renew time (hours) in requests.\n\
|
82 |
+ Default is 24.\n\
|
83 |
+ NOTE: This is almost always overridden by the server.\n\
|
84 |
+ -t Test DHCP mechanisms on specific interface.\n\
|
85 |
+ Useful for determining the operating mode of the\n\
|
86 |
+ DHCP server.\n\
|
87 |
+ -v Display version information.\n\
|
88 |
+ -w Wait for the session to succeed or timeout.\n\
|
89 |
+ -A client_id Append the specified client identifier to default.\n\
|
90 |
+ -B iface Use the specified base interface for requests.\n\
|
91 |
+ Default is the specified target interface.\n\
|
92 |
+ -C client_id Use the specified client identifier.\n\
|
93 |
+ Default is the hardware MAC address.\n\
|
94 |
+ -D Delete the cache before starting session.\n\
|
95 |
+ -H hostname Supply the specified host name in requests.\n\
|
96 |
+ -I string Supply the specified class identifier in requests.\n\
|
97 |
+ -N Upon receiving NACK force into reselect.\n\
|
98 |
+ -O num string Supply the specified option in requests.\n\
|
99 |
+ Usage: -O 89 JerryWalker\n\
|
100 |
+ -R Do not release the IP address.\n\
|
101 |
+ This is useful for keeping the same IP address.\n\
|
102 |
+ If this option is specified more than once, the\n\
|
103 |
+ client will renew the address before shutting down.\n\
|
104 |
+ -T num Set timeout value in seconds.\n\
|
105 |
+ -W Do not wait when collecting DHCPOFFER responses.\n\
|
106 |
+ Useful for making the protocol \"speedy\".\n\
|
107 |
";
|
108 |
#else
|
109 |
static char *help_msg = "";
|