scapy.contrib.ldp

class scapy.contrib.ldp.AddressTLVField(name, default, fmt='H', remain=0)

Bases: scapy.fields.StrField

getfield(pkt, s)
i2m(pkt, x)
islist = 1
m2i(pkt, x)
size(s)

Get the size of this field

class scapy.contrib.ldp.CommonHelloTLVField(name, default, fmt='H', remain=0)

Bases: scapy.fields.StrField

getfield(pkt, s)
i2m(pkt, x)
islist = 1
m2i(pkt, x)
class scapy.contrib.ldp.CommonSessionTLVField(name, default, fmt='H', remain=0)

Bases: scapy.fields.StrField

getfield(pkt, s)
i2m(pkt, x)
islist = 1
m2i(pkt, x)
class scapy.contrib.ldp.FecTLVField(name, default, fmt='H', remain=0)

Bases: scapy.fields.StrField

getfield(pkt, s)
i2m(pkt, x)
islist = 1
m2i(pkt, x)
size(s)

Get the size of this field

class scapy.contrib.ldp.LDP

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDP fields

version

ShortField

1

len

ShortField

None

id

IPField

'127.0.0.1'

space

ShortField

0

post_build(p, pay)
class scapy.contrib.ldp.LDPAddress

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPAddress fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

768

len

ShortField

None

id

IntField

0

address

AddressTLVField

None

class scapy.contrib.ldp.LDPAddressWM

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPAddressWM fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

769

len

ShortField

None

id

IntField

0

address

AddressTLVField

None

class scapy.contrib.ldp.LDPHello

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPHello fields

u

BitField (1 bit)

0

type

BitField (15 bits)

256

len

ShortField

None

id

IntField

0

params

CommonHelloTLVField

[180, 0, 0]

class scapy.contrib.ldp.LDPInit

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPInit fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

512

len

ShortField

None

id

IntField

0

params

CommonSessionTLVField

None

class scapy.contrib.ldp.LDPKeepAlive

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPKeepAlive fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

513

len

ShortField

None

id

IntField

0

class scapy.contrib.ldp.LDPLabelARM

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPLabelARM fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

1028

len

ShortField

None

id

IntField

0

fec

FecTLVField

None

labelRMid

IntField

0

class scapy.contrib.ldp.LDPLabelMM

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPLabelMM fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

1024

len

ShortField

None

id

IntField

0

fec

FecTLVField

None

label

LabelTLVField

0

class scapy.contrib.ldp.LDPLabelRelM

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPLabelRelM fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

1027

len

ShortField

None

id

IntField

0

fec

FecTLVField

None

label

LabelTLVField

0

class scapy.contrib.ldp.LDPLabelReqM

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPLabelReqM fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

1025

len

ShortField

None

id

IntField

0

fec

FecTLVField

None

class scapy.contrib.ldp.LDPLabelWM

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPLabelWM fields

u

BitField (1 bit)

0

type

XBitField (15 bits)

1026

len

ShortField

None

id

IntField

0

fec

FecTLVField

None

label

LabelTLVField

0

class scapy.contrib.ldp.LDPNotification

Bases: scapy.contrib.ldp._LDP_Packet

aliastypes
fields_desc
LDPNotification fields

u

BitField (1 bit)

0

type

BitField (15 bits)

1

len

ShortField

None

id

IntField

0

status

StatusTLVField

(0, 0, 0, 0, 0)

class scapy.contrib.ldp.LabelTLVField(name, default, fmt='H', remain=0)

Bases: scapy.fields.StrField

getfield(pkt, s)
i2m(pkt, x)
m2i(pkt, x)
size(s)

Get the size of this field

class scapy.contrib.ldp.StatusTLVField(name, default, fmt='H', remain=0)

Bases: scapy.fields.StrField

getfield(pkt, s)
i2m(pkt, x)
islist = 1
m2i(pkt, x)