scapy.layers.ir
IrDA infrared data communication.
- class scapy.layers.ir.IrLAPCommand(_pkt, /, *, Control=0, Format_identifier=0, Source_address=0, Destination_address=4294967295, Discovery_flags=1, Slot_number=255, Version=0)[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CONTROL |FORMAT IDENTIFI| SOURCE ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | DESTINATION ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |DISCOVERY FLAGS| SLOT NUMBER | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VERSION | +-+-+-+-+-+-+-+-+ Fig. IrLAPCommandIrLAPCommand fields Control
0Format_identifier
0Source_address
0Destination_address
4294967295Discovery_flags
1Slot_number
255Version
0
- class scapy.layers.ir.IrLAPHead(_pkt, /, *, Address=127, Type=1)[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ADDRESS |T| +-+-+-+-+-+-+-+-+ Fig. IrLAPHeadIrLAPHead fields Address
XBitField(7 bits)127Type
1
- payload_guess
Possible sublayers:
IrLAPCommand
- class scapy.layers.ir.IrLMP(_pkt, /, *, Service_hints=0, Character_set=0, Device_name=b'')[源代码]
基类:
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SERVICE HINTS | CHARACTER SET | DEVICE NAME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. IrLMPIrLMP fields Service_hints
0Character_set
0Device_name
b''