Skip to content

Commit 5c32a69

Browse files
committed
fix(docs): update documentation for configuration key names
1 parent e4c84d1 commit 5c32a69

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,20 @@ Use "netadm [command] --help" for more information about a command.
6060

6161
## Configuration Items 🔧
6262

63-
| ID | Name | Example |
63+
| ID | NAME | EXAMPLE |
6464
| ------ | -------------------- | --------------------------------- |
6565
| 0x0001 | model | GS308E |
6666
| 0x0003 | name | switch-0 |
6767
| 0x0004 | mac | 33:0b:c9:5e:51:3a |
6868
| 0x0006 | ip | 192.168.0.253 |
6969
| 0x0007 | netmask | 255.255.255.0 |
7070
| 0x0008 | gateway | 192.168.0.254 |
71+
| 0x000A | password | password |
7172
| 0x000B | dhcp | false |
7273
| 0x000D | firmware | 1.00.10 |
73-
| 0x0014 | passwordencryption | false |
74+
| 0x0014 | passwordencryption | Hash64 |
75+
| 0x0017 | passwordnonce | [1 2 3 4] |
76+
| 0x001A | passwordhash | [1 2 3 4] |
7477
| 0x0C00 | portspeeds | [1:1G 2:Down] |
7578
| 0x1000 | portmetrics | [1:64/32/0] |
7679
| 0x1C00 | cabletestresult | [0 0 0 0 0 119 30 183 118] |

pkg/nsdp/record.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ var (
379379
// RecordFirmware contains the device's firmware version.
380380
RecordFirmware = NewRecordType(0x000D, "Firmware", "1.00.10")
381381
// RecordPasswordEncryption specifies which encryption methods the switch supports.
382-
RecordPasswordEncryption = NewRecordType(0x0014, "PasswordEncryption", EncryptionModeNone)
382+
RecordPasswordEncryption = NewRecordType(0x0014, "PasswordEncryption", EncryptionModeHash64)
383383
// RecordPasswordNonce contains the device's encryption nonce.
384384
RecordPasswordNonce = NewRecordType(0x0017, "PasswordNonce", []byte{0x01, 0x02, 0x03, 0x04})
385385
// RecordPasswordHash specifies a hashed password for authentication.

0 commit comments

Comments
 (0)