X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdiag-ether.git;a=blobdiff_plain;f=diag-ether-ns820-diag.patch;fp=diag-ether-ns820-diag.patch;h=6d3e6dd2a433e82f100d803b275f9612c1cdbd31;hp=0000000000000000000000000000000000000000;hb=a05bc8cf9c93ac0ea708f328cf54610cd686177c;hpb=d4ef8230d1c3c62a1c8c4294de7c607a37605f87 diff --git a/diag-ether-ns820-diag.patch b/diag-ether-ns820-diag.patch new file mode 100644 index 0000000..6d3e6dd --- /dev/null +++ b/diag-ether-ns820-diag.patch @@ -0,0 +1,80 @@ +--- diag-ether/ns820-diag.c.org 2002-12-02 00:00:00.000000000 +0000 ++++ diag-ether/ns820-diag.c 2004-02-22 21:46:46.000000000 +0000 +@@ -36,37 +36,37 @@ + " For details and other options see http://www.scyld.com/diag/index.html\n"; + + static const char long_usage_msg[] = +-"Usage: %s [-aDfrRvVw] [-AF ] [-#] +- +- Show the internal state of a network adapter. +- +- The common usage is +- ns820-diag -aem +- +- Frequently used options are +- -a --show_all_registers Print all registers. +- -e --show-eeprom Dump EEPROM contents, \"-ee\" shows the details. +- -m --show_mii Print the MII transceiver state +- Using -mm monitors the link. +- -f --force Perform operation, even on a running NIC. +- +- To operate on a single NIC, or one that hasn't been automatically found: +- -# --card_num INDEX Operate on the specified card index. +- -p --port-base IOADDR Assume an adapter at the specified I/O address. +- -t --chip-type TYPE Specify adapter type with '-p', use '-1' to list. +- +- To change the persistent EEPROM settings +- -G --parameters PARMS Set adapter-specific parameters. +- -H --new-hwaddr 01:23:45:67:ab:cd +- Set a new hardware station address. Typically diabled, +- -w --write-EEPROM Actually write the new settings into the EEPROM. +- +- -D --debug +- -v --verbose Report each action taken. +- -V --version Emit version information. +- +- -A --advertise (See the mii-diag manual page.) +-"; ++"Usage: %s [-aDfrRvVw] [-AF ] [-#]\n" ++"\n" ++" Show the internal state of a network adapter.\n" ++"\n" ++" The common usage is\n" ++" ns820-diag -aem\n" ++"\n" ++" Frequently used options are\n" ++" -a --show_all_registers Print all registers.\n" ++" -e --show-eeprom Dump EEPROM contents, \"-ee\" shows the details.\n" ++" -m --show_mii Print the MII transceiver state\n" ++" Using -mm monitors the link.\n" ++" -f --force Perform operation, even on a running NIC.\n" ++"\n" ++" To operate on a single NIC, or one that hasn't been automatically found:\n" ++" -# --card_num INDEX Operate on the specified card index.\n" ++" -p --port-base IOADDR Assume an adapter at the specified I/O address.\n" ++" -t --chip-type TYPE Specify adapter type with '-p', use '-1' to list.\n" ++"\n" ++" To change the persistent EEPROM settings\n" ++" -G --parameters PARMS Set adapter-specific parameters.\n" ++" -H --new-hwaddr 01:23:45:67:ab:cd\n" ++" Set a new hardware station address. Typically diabled, \n" ++" -w --write-EEPROM Actually write the new settings into the EEPROM.\n" ++"\n" ++" -D --debug\n" ++" -v --verbose Report each action taken.\n" ++" -V --version Emit version information.\n" ++"\n" ++" -A --advertise (See the mii-diag manual page.)\n" ++"\n"; + + #if ! defined(__OPTIMIZE__) + #warning You must compile this program with the correct options! +@@ -84,7 +84,7 @@ + + /* The following are required only with unaligned field accesses. */ + #include +-#include ++//#include + + #if defined(__linux__) && __GNU_LIBRARY__ == 1 + #include /* Newer libraries use instead. */