使能/去使能LLDP(opcode = 0x22)

使能/去使能LLDP

Request Data Structure

Bytes

Name

说明

0 ~ 1

reserved

保留字段

2 ~ 3

opcode

命令字(opcode = 0x22)

4 ~ 7

offset

数据区偏移(offset = 0)

8 ~ 11

length

数据区长度(length = 0)

12

enable

使能/去使能

13

port_id

port口

14 ~ 17

CRC32

CRC校验码(从第一个字节到数据的最后一个字节,即只不含CRC32本身)

Response Data Structure

Bytes

Name

说明

0 ~ 1

error_code

错误码(error_code = 0)

2 ~ 3

opcode

命令字(opcode = 0x22)

4 ~ 7

total_length

数据区总长度(total_length = 0)

8 ~ 11

length

数据区长度(length = 0)

12 ~ 15

CRC32

CRC校验码(从第一个字节到数据的最后一个字节,即只不含CRC32本身)