scapy.contrib.rsvp module

class scapy.contrib.rsvp.RSVP

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (RSVP).Version>, <Field (RSVP).Flags>, <Field (RSVP).Class>, <Field (RSVP).chksum>, <Field (RSVP).TTL>, <Field (RSVP).dataofs>, <Field (RSVP).Length>]
payload_guess = [({}, <class 'scapy.contrib.rsvp.RSVP_Object'>)]
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

class scapy.contrib.rsvp.RSVP_Data

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP_Data'>, <class 'scapy.packet.Packet'>]
default_payload_class(payload)

DEV: Returns the default payload class if nothing has been found by the guess_payload_class() method.

Parameters:payload (str) – the layer’s payload
Returns:the default payload class define inside the configuration file
fields_desc = [<Field (RSVP_Data).Data>]
class scapy.contrib.rsvp.RSVP_HOP

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP_HOP'>, <class 'scapy.packet.Packet'>]
default_payload_class(payload)

DEV: Returns the default payload class if nothing has been found by the guess_payload_class() method.

Parameters:payload (str) – the layer’s payload
Returns:the default payload class define inside the configuration file
fields_desc = [<Field (RSVP_HOP).neighbor>, <Field (RSVP_HOP).inface>]
class scapy.contrib.rsvp.RSVP_LabelReq

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP_LabelReq'>, <class 'scapy.packet.Packet'>]
default_payload_class(payload)

DEV: Returns the default payload class if nothing has been found by the guess_payload_class() method.

Parameters:payload (str) – the layer’s payload
Returns:the default payload class define inside the configuration file
fields_desc = [<Field (RSVP_LabelReq).reserve>, <Field (RSVP_LabelReq).L3PID>]
class scapy.contrib.rsvp.RSVP_Object

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP_Object'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (RSVP_Object).Length>, <Field (RSVP_Object).Class>, <Field (RSVP_Object).C-Type>]
guess_payload_class(payload)

DEV: Guesses the next payload class from layer bonds. Can be overloaded to use a different mechanism.

Parameters:payload (str) – the layer’s payload
Returns:the payload class
class scapy.contrib.rsvp.RSVP_SenderTSPEC

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP_SenderTSPEC'>, <class 'scapy.packet.Packet'>]
default_payload_class(payload)

DEV: Returns the default payload class if nothing has been found by the guess_payload_class() method.

Parameters:payload (str) – the layer’s payload
Returns:the default payload class define inside the configuration file
fields_desc = [<Field (RSVP_SenderTSPEC).Msg_Format>, <Field (RSVP_SenderTSPEC).reserve>, <Field (RSVP_SenderTSPEC).Data_Length>, <Field (RSVP_SenderTSPEC).Srv_hdr>, <Field (RSVP_SenderTSPEC).reserve2>, <Field (RSVP_SenderTSPEC).Srv_Length>, <Field (RSVP_SenderTSPEC).Tokens>]
class scapy.contrib.rsvp.RSVP_SessionAttrb

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP_SessionAttrb'>, <class 'scapy.packet.Packet'>]
default_payload_class(payload)

DEV: Returns the default payload class if nothing has been found by the guess_payload_class() method.

Parameters:payload (str) – the layer’s payload
Returns:the default payload class define inside the configuration file
fields_desc = [<Field (RSVP_SessionAttrb).Setup_priority>, <Field (RSVP_SessionAttrb).Hold_priority>, <Field (RSVP_SessionAttrb).flags>, <Field (RSVP_SessionAttrb).Name_length>, <Field (RSVP_SessionAttrb).Name>]
class scapy.contrib.rsvp.RSVP_Time

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.rsvp.RSVP_Time'>, <class 'scapy.packet.Packet'>]
default_payload_class(payload)

DEV: Returns the default payload class if nothing has been found by the guess_payload_class() method.

Parameters:payload (str) – the layer’s payload
Returns:the default payload class define inside the configuration file
fields_desc = [<Field (RSVP_Time).refresh>]