scapy.contrib.nsh

class scapy.contrib.nsh.Metadata

Bases: scapy.packet.Packet

aliastypes
fields_desc
Metadata fields

value

XIntField

0

class scapy.contrib.nsh.NSH

Bases: scapy.packet.Packet

Network Service Header. NSH MD-type 1 if there is no ContextHeaders

aliastypes
fields_desc
NSH fields

Ver

BitField (2 bits)

0

OAM

BitField (1 bit)

0

Critical

BitField (1 bit)

0

Reserved

BitField (6 bits)

0

Len

BitFieldLenField (6 bits)

None

MDType

ByteEnumField

1

NextProto

ByteEnumField

3

NSP

X3BytesField

0

NSI

ByteField

1

NPC

XIntField (Cond)

0

NSC

XIntField (Cond)

0

SPC

XIntField (Cond)

0

SSC

XIntField (Cond)

0

ContextHeaders

PacketListField (Cond)

[]

mysummary()
payload_guess

Possible sublayers: MPLS, NSH, IP, IPv6, Ether

class scapy.contrib.nsh.NSHTLV

Bases: scapy.packet.Packet

NSH MD-type 2 - Variable Length Context Headers

aliastypes
fields_desc
NSHTLV fields

Class

ShortField

0

Critical

BitField (1 bit)

0

Type

BitField (7 bits)

0

Reserved

BitField (3 bits)

0

Len

BitField (5 bits)

0

Metadata

PacketListField

[]