]>
Commit | Line | Data |
---|---|---|
a05bc8cf | 1 | --- diag-ether/mii-diag.c.org 2004-02-22 22:16:38.000000000 +0000 |
2 | +++ diag-ether/mii-diag.c 2004-02-22 22:17:58.000000000 +0000 | |
3 | @@ -37,46 +37,46 @@ | |
4 | static const char usage_msg[] = | |
5 | "Usage: %s [--help] [-aDfrRvVw] [-AF <speed+duplex>] [--watch] <interface>.\n"; | |
6 | static const char long_usage_msg[] = | |
7 | -"Usage: %s [-aDfrRvVw] [-AF <speed+duplex>] [--watch] <interface>. | |
8 | - | |
9 | - This program configures and monitors the transceiver management registers | |
10 | - for network interfaces. It uses the Media Independent Interface (MII) | |
11 | - standard with additional Linux-specific controls to communicate with the | |
12 | - underlying device driver. The MII registers control and report network | |
13 | - link settings and errors. Examples are link speed, duplex, capabilities | |
14 | - advertised to the link partner, status LED indications and link error | |
15 | - counters. | |
16 | - | |
17 | - The common usage is | |
18 | - mii-diag eth0 | |
19 | - | |
20 | - The default interface is \"eth0\". | |
21 | - Frequently used options are | |
22 | - -A --advertise <speed|setting> | |
23 | - -F --fixed-speed <speed> | |
24 | - Speed is one of: 100baseT4, 100baseTx, 100baseTx-FD, 100baseTx-HD, | |
25 | - 10baseT, 10baseT-FD, 10baseT-HD | |
26 | - -s --status Return exit status 2 if there is no link beat. | |
27 | - | |
28 | - Less frequently used options are | |
29 | - -a --all-interfaces Show the status all interfaces | |
30 | - (Not recommended with options that change settings.) | |
31 | - -D --debug | |
32 | - -g --read-parameters Get driver-specific parameters. | |
33 | - -G --set-parameters PARMS Set driver-specific parameters. | |
34 | - Parameters are comma separated, missing elements retain existing value. | |
35 | - -M --msg-level LEVEL Set the driver message bit map. | |
36 | - -p --phy ADDR Set the PHY (MII address) to report. | |
37 | - -r --restart Restart the link autonegotiation. | |
38 | - -R --reset Reset the transceiver. | |
39 | - -v --verbose Report each action taken. | |
40 | - -V --version Emit version information. | |
41 | - -w --watch Continuously monitor the transceiver and report changes. | |
42 | - | |
43 | - This command returns success (zero) if the interface information can be | |
44 | - read. If the --status option is passed, a zero return means that the | |
45 | - interface has link beat. | |
46 | -"; | |
47 | +"Usage: %s [-aDfrRvVw] [-AF <speed+duplex>] [--watch] <interface>.\n" | |
48 | +"\n" | |
49 | +" This program configures and monitors the transceiver management registers\n" | |
50 | +" for network interfaces. It uses the Media Independent Interface (MII)\n" | |
51 | +" standard with additional Linux-specific controls to communicate with the\n" | |
52 | +" underlying device driver. The MII registers control and report network\n" | |
53 | +" link settings and errors. Examples are link speed, duplex, capabilities\n" | |
54 | +" advertised to the link partner, status LED indications and link error\n" | |
55 | +" counters.\n" | |
56 | +"\n" | |
57 | +" The common usage is\n" | |
58 | +" mii-diag eth0\n" | |
59 | +"\n" | |
60 | +" The default interface is \"eth0\".\n" | |
61 | +" Frequently used options are\n" | |
62 | +" -A --advertise <speed|setting>\n" | |
63 | +" -F --fixed-speed <speed>\n" | |
64 | +" Speed is one of: 100baseT4, 100baseTx, 100baseTx-FD, 100baseTx-HD,\n" | |
65 | +" 10baseT, 10baseT-FD, 10baseT-HD\n" | |
66 | +" -s --status Return exit status 2 if there is no link beat.\n" | |
67 | +"\n" | |
68 | +" Less frequently used options are\n" | |
69 | +" -a --all-interfaces Show the status all interfaces\n" | |
70 | +" (Not recommended with options that change settings.)\n" | |
71 | +" -D --debug\n" | |
72 | +" -g --read-parameters Get driver-specific parameters.\n" | |
73 | +" -G --set-parameters PARMS Set driver-specific parameters.\n" | |
74 | +" Parameters are comma separated, missing elements retain existing value.\n" | |
75 | +" -M --msg-level LEVEL Set the driver message bit map.\n" | |
76 | +" -p --phy ADDR Set the PHY (MII address) to report.\n" | |
77 | +" -r --restart Restart the link autonegotiation.\n" | |
78 | +" -R --reset Reset the transceiver.\n" | |
79 | +" -v --verbose Report each action taken.\n" | |
80 | +" -V --version Emit version information.\n" | |
81 | +" -w --watch Continuously monitor the transceiver and report changes.\n" | |
82 | +"\n" | |
83 | +" This command returns success (zero) if the interface information can be\n" | |
84 | +" read. If the --status option is passed, a zero return means that the\n" | |
85 | +" interface has link beat.\n" | |
86 | +"\n"; | |
87 | ||
88 | #include <unistd.h> | |
89 | #include <stdlib.h> |