scapy.contrib.ltp

MITRE公司2012年版权所有:

                          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字段

version

BitField (4位)

0

flags

BitEnumField (4位)

0

SessionOriginator

SDNV2

0

SessionNumber

SDNV2

0

HeaderExtensionCount

BitFieldLenField (4位)

None

TrailerExtensionCount

BitFieldLenField (4位)

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字段

ReceptionClaimOffset

SDNV2

0

ReceptionClaimLength

SDNV2

0

class scapy.contrib.ltp.LTPex

Bases: scapy.packet.Packet

aliastypes
default_payload_class(pay)
fields_desc
LTPex字段

ExTag

ByteEnumField

0

ExLength

SDNV2FieldLenField

None

ExData

StrLenField

b''

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

将有效载荷类绑定到LTP数据包.

Parameters
  • cls –要绑定的类

  • lambd –将调用lambda来检查是否应使用cls,例如:lambda pkt:…