scapy.layers.rip module

RIP (Routing Information Protocol).

class scapy.layers.rip.RIP

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.layers.rip.RIP'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (RIP).cmd>, <Field (RIP).version>, <Field (RIP).null>]
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
payload_guess = [({}, <class 'scapy.layers.rip.RIPEntry'>)]
class scapy.layers.rip.RIPAuth

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.layers.rip.RIPAuth'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (RIPAuth).AF>, <Field (RIPAuth).authtype>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>, <scapy.fields.ConditionalField object>]
payload_guess = [({}, <class 'scapy.layers.rip.RIPEntry'>)]
pre_dissect(s)

DEV: is called right before the current layer is dissected

class scapy.layers.rip.RIPEntry

Bases: scapy.layers.rip.RIP

aliastypes = [<class 'scapy.layers.rip.RIPEntry'>, <class 'scapy.layers.rip.RIP'>, <class 'scapy.packet.Packet'>]
fields_desc = [<Field (RIPEntry).AF>, <Field (RIPEntry).RouteTag>, <Field (RIPEntry).addr>, <Field (RIPEntry).mask>, <Field (RIPEntry).nextHop>, <Field (RIPEntry).metric>]
payload_guess = [({}, <class 'scapy.layers.rip.RIPEntry'>), ({}, <class 'scapy.layers.rip.RIPEntry'>)]