scapy.contrib.lacp
- class scapy.contrib.lacp.LACP(_pkt, /, *, version=1, actor_type=1, actor_length=20, actor_system_priority=0, actor_system=None, actor_key=0, actor_port_priority=0, actor_port_number=0, actor_state=0, actor_reserved=b'', partner_type=2, partner_length=20, partner_system_priority=0, partner_system=None, partner_key=0, partner_port_priority=0, partner_port_number=0, partner_state=0, partner_reserved=b'', collector_type=3, collector_length=16, collector_max_delay=0, collector_reserved=b'', terminator_type=0, terminator_length=0, reserved=b'')[源代码]
基类:
Packet- aliastypes
- deprecated_fields: Dict[str, Tuple[str, str]] = {'actor_port_numer': ('actor_port_number', '2.4.4'), 'colletctor_reserved': ('collector_reserved', '2.4.4'), 'partner_port_numer': ('partner_port_number', '2.4.4')}
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VERSION | ACTOR TYPE | ACTOR LENGTH |ACTOR SYSTEM PR| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ACTOR SYSTEM | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | ACTOR KEY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ACTOR PORT PRIORITY |ACTOR PORT NUMB| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ACTOR STATE | ACTOR RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PARTNER TYPE | PARTNER LENGTH|PARTNER SYSTEM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PARTNER SYSTEM | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | | PARTNER KEY | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PARTNER PORT PRIORITY |PARTNER PORT NU| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PARTNER STATE | PARTNER RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | COLLECTOR TYPE|COLLECTOR LENGT|COLLECTOR MAX D| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | COLLECTOR RESERVED | +-+-+-+-+-+-+-+-+ + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |TERMINATOR TYPE|TERMINATOR LENG| RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. LACPLACP fields version
1actor_type
1actor_length
20actor_system_priority
0actor_system
Noneactor_key
0actor_port_priority
0actor_port_number
0actor_state
0actor_reserved
b''partner_type
2partner_length
20partner_system_priority
0partner_system
Nonepartner_key
0partner_port_priority
0partner_port_number
0partner_state
0partner_reserved
b''collector_type
3collector_length
16collector_max_delay
0collector_reserved
b''terminator_type
0terminator_length
0reserved
b''
- class scapy.contrib.lacp.MarkerProtocol(_pkt, /, *, version=1, marker_type=1, marker_length=16, requester_port=0, requester_system=None, requester_transaction_id=0, marker_reserved=b'', terminator_type=0, terminator_length=0, reserved=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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VERSION | MARKER TYPE | MARKER LENGTH | REQUESTER PORT| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | REQUESTER SYSTEM | +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | |REQUESTER TRANS| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |MARKER RESERVED| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |TERMINATOR TYPE|TERMINATOR LENG| RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. MarkerProtocolMarkerProtocol fields version
1marker_type
1marker_length
16requester_port
0requester_system
Nonerequester_transaction_id
0marker_reserved
b''terminator_type
0terminator_length
0reserved
0