scapy.contrib.homeplugsg

class scapy.contrib.homeplugsg.VS_UART_CMD_CNF(_pkt, /, *, reserved=b'\x00', UDataLen=None, UData=b'UartCommand\x00')[源代码]

基类:Packet

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            RESERVED                           |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |            UDATALEN           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             UDATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. VS_UART_CMD_CNF                       
VS_UART_CMD_CNF fields

reserved

StrFixedLenField

b'\x00'

UDataLen

FieldLenField

None

UData

StrLenField

b'UartCommand\x00'

class scapy.contrib.homeplugsg.VS_UART_CMD_REQ(_pkt, /, *, UDataLen=None, UData=b'UartCommand\x00')[源代码]

基类:Packet

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            UDATALEN           |             UDATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. VS_UART_CMD_REQ                       
VS_UART_CMD_REQ fields

UDataLen

FieldLenField

None

UData

StrLenField

b'UartCommand\x00'