scapy.contrib.icmp_extensions

class scapy.contrib.icmp_extensions.ICMPExtensionHeader

Bases: scapy.packet.Packet

aliastypes
fields_desc
ICMPExtensionHeader fields

version

BitField (4 bits)

2

reserved

BitField (12 bits)

0

chksum

BitField (16 bits)

None

guess_payload_class(payload)
payload_guess

Possible sublayers: ICMPExtensionInterfaceInformation, ICMPExtensionMPLS

post_build(p, pay)
class scapy.contrib.icmp_extensions.ICMPExtensionInterfaceInformation

Bases: scapy.contrib.icmp_extensions.ICMPExtensionObject

aliastypes
fields_desc
ICMPExtensionInterfaceInformation fields

len

ShortField

None

classnum

ByteField

2

interface_role

BitField (2 bits)

0

reserved

BitField (2 bits)

0

has_ifindex

BitField (1 bit)

0

has_ipaddr

BitField (1 bit)

0

has_ifname

BitField (1 bit)

0

has_mtu

BitField (1 bit)

0

ifindex

IntField (Cond)

None

afi

ShortField (Cond)

None

reserved2

ShortField (Cond)

0

ip4

IPField (Cond)

None

ip6

IP6Field (Cond)

None

ifname_len

FieldLenField (Cond)

None

ifname

StrLenField (Cond)

None

mtu

IntField (Cond)

None

self_build(field_pos_list=None)
class scapy.contrib.icmp_extensions.ICMPExtensionMPLS

Bases: scapy.contrib.icmp_extensions.ICMPExtensionObject

aliastypes
fields_desc
ICMPExtensionMPLS fields

len

ShortField

None

classnum

ByteField

1

classtype

ByteField

1

stack

PacketListField

[]

class scapy.contrib.icmp_extensions.ICMPExtensionObject

Bases: scapy.packet.Packet

aliastypes
fields_desc
ICMPExtensionObject fields

len

ShortField

None

classnum

ByteField

0

classtype

ByteField

0

post_build(p, pay)
scapy.contrib.icmp_extensions.ICMPExtension_post_dissection(self, pkt)