scapy.contrib.ltp

Copyright 2012, The MITRE Corporation:

                          NOTICE
This software/technical data was produced for the U.S. Government
under Prime Contract No. NASA-03001 and JPL Contract No. 1295026
  and is subject to FAR 52.227-14 (6/87) Rights in Data General,
    and Article GP-51, Rights in Data  General, respectively.
   This software is publicly released under MITRE case #12-3054
class scapy.contrib.ltp.LTP

Bases: scapy.packet.Packet

aliastypes
fields_desc
LTP fields

version

BitField (4 bits)

0

flags

BitEnumField (4 bits)

0

SessionOriginator

SDNV2

0

SessionNumber

SDNV2

0

HeaderExtensionCount

BitFieldLenField (4 bits)

None

TrailerExtensionCount

BitFieldLenField (4 bits)

None

HeaderExtensions

PacketListField

[]

DATA_ClientServiceID

SDNV2 (Cond)

0

DATA_PayloadOffset

SDNV2 (Cond)

0

DATA_PayloadLength

SDNV2FieldLenField (Cond)

None

CheckpointSerialNo

SDNV2 (Cond)

0

ReportSerialNo

SDNV2 (Cond)

0

LTP_Payload

PacketListField (Cond)

[]

RA_ReportSerialNo

SDNV2 (Cond)

0

ReportSerialNo

SDNV2 (Cond)

0

ReportCheckpointSerialNo

SDNV2 (Cond)

0

ReportUpperBound

SDNV2 (Cond)

0

ReportLowerBound

SDNV2 (Cond)

0

ReportReceptionClaimCount

SDNV2FieldLenField (Cond)

None

ReportReceptionClaims

PacketListField (Cond)

[]

CancelFromSenderReason

ByteEnumField (Cond)

15

CancelFromReceiverReason

ByteEnumField (Cond)

15

CancelAckToBlockSender

SDNV2 (Cond)

0

CancelAckToBlockReceiver

SDNV2 (Cond)

0

TrailerExtensions

PacketListField

[]

mysummary()
class scapy.contrib.ltp.LTPReceptionClaim

Bases: scapy.packet.Packet

aliastypes
default_payload_class(pay)
fields_desc
LTPReceptionClaim fields

ReceptionClaimOffset

SDNV2

0

ReceptionClaimLength

SDNV2

0

class scapy.contrib.ltp.LTPex

Bases: scapy.packet.Packet

aliastypes
default_payload_class(pay)
fields_desc
LTPex fields

ExTag

ByteEnumField

0

ExLength

SDNV2FieldLenField

None

ExData

StrLenField

b''

scapy.contrib.ltp.ltp_bind_payload(cls, lambd)

Bind payload class to the LTP packets.

Parameters
  • cls – the class to bind

  • lambd – lambda that will be called to check whether or not the cls should be used ex: lambda pkt: …