scapy.contrib.vqp module

class scapy.contrib.vqp.VQP

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.vqp.VQP'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (VQP).const>, <Field (VQP).type>, <Field (VQP).errorcodeaction>, <Field (VQP).unknown>, <Field (VQP).seq>]
payload_guess = [({}, <class 'scapy.contrib.vqp.VQPEntry'>)]
class scapy.contrib.vqp.VQPEntry

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.vqp.VQPEntry'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (VQPEntry).datatype>, <Field (VQPEntry).len>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
payload_guess = [({}, <class 'scapy.contrib.vqp.VQPEntry'>)]
post_build(p, pay)

DEV: called right after the current layer is build.

Parameters:
  • pkt (str) – the current packet (build by self_buil function)
  • pay (str) – the packet payload (build by do_build_payload function)
Returns:

a string of the packet with the payload