scapy.contrib.pnio

class scapy.contrib.pnio.PNIORealTimeCyclicDefaultRawData

Bases: scapy.packet.Packet

aliastypes
fields_desc
PNIORealTimeCyclicDefaultRawData字段

data

StrField

b''

guess_payload_class(payload)
class scapy.contrib.pnio.PNIORealTimeCyclicPDU

Bases: scapy.packet.Packet

PROFINET循环实时

aliastypes
static build_fixed_len_raw_type(length)
fields_desc
PNIORealTimeCyclicPDU字段

data

PacketListField

[]

padding

StrFixedLenField

b''

cycleCounter

ShortField

0

dataStatus

FlagsField (8位)

<Flag 53 (primary+validData+run+no_problem)>

transferStatus

ByteField

0

static get_layout_from_config(ether_src, ether_dst, frame_id)
get_padding_length()
next_cls_cb(_lst, _p, _remain)
pre_dissect(s)
class scapy.contrib.pnio.PNIORealTime_IOxS

Bases: scapy.packet.Packet

用于PROFINET实时有效负载的IOCS和IOPS数据包

aliastypes
fields_desc
PNIORealTime_IOxS字段

dataState

BitEnumField (1位)

1

instance

BitEnumField (2位)

0

reserved

XBitField (4位)

0

extension

BitField (1位)

0

classmethod get_len()
guess_payload_class(p)
classmethod is_extension_set(_pkt, _lst, p, _remain)
class scapy.contrib.pnio.PROFIsafe

Bases: scapy.packet.Packet

aliastypes
static build_PROFIsafe_class(cls, data_length)
default_fields
direction
explicit
fields
fieldtype
get_data_length()

必须在子类中重写以返回正确的值

get_mandatory_fields_len()
static get_max_data_length()
guess_payload_class(p)
name
original
overload_fields
overloaded_fields
packetfields
payload
post_transforms
raw_packet_cache
raw_packet_cache_fields
sent_time
sniffed_on
time
underlayer
wirelen
class scapy.contrib.pnio.PROFIsafeCRCSeed

Bases: scapy.packet.Packet

aliastypes
default_fields
direction
explicit
fields
fieldtype
get_data_length()

必须在子类中重写以返回正确的值

get_mandatory_fields_len()
static get_max_data_length()
guess_payload_class(p)
name
original
overload_fields
overloaded_fields
packetfields
payload
post_transforms
raw_packet_cache
raw_packet_cache_fields
sent_time
sniffed_on
time
underlayer
wirelen
class scapy.contrib.pnio.PROFIsafeControl

Bases: scapy.contrib.pnio.PROFIsafe

aliastypes
fields_desc
PROFIsafeControl字段

data

StrFixedLenField

b''

control

FlagsField (8位)

<Flag 0 ()>

crc

X3BytesField

0

class scapy.contrib.pnio.PROFIsafeControlCRCSeed

Bases: scapy.contrib.pnio.PROFIsafeCRCSeed

aliastypes
fields_desc
PROFIsafeControlCRCSeed字段

data

StrFixedLenField

b''

control

FlagsField (8位)

<Flag 0 ()>

crc

XIntField

0

class scapy.contrib.pnio.PROFIsafeStatus

Bases: scapy.contrib.pnio.PROFIsafe

aliastypes
fields_desc
PROFIsafeStatus字段

data

StrFixedLenField

b''

status

FlagsField (8位)

<Flag 0 ()>

crc

X3BytesField

0

class scapy.contrib.pnio.PROFIsafeStatusCRCSeed

Bases: scapy.contrib.pnio.PROFIsafeCRCSeed

aliastypes
fields_desc
PROFIsafeStatusCRCSeed字段

data

StrFixedLenField

b''

status

FlagsField (8位)

<Flag 0 ()>

crc

XIntField

0

class scapy.contrib.pnio.ProfinetIO

Bases: scapy.packet.Packet

基本的PROFINET IO调度程序

aliastypes
fields_desc
ProfinetIO字段

frameID

XShortEnumField

0

guess_payload_class(payload)
scapy.contrib.pnio.i2s_frameid(x)

获取pnio帧ID的表示形式名称

Parameters

x – PNIO_FRAME_IDS字典的键

Returns

str

scapy.contrib.pnio.s2i_frameid(x)

从表示形式名称获取pnio帧ID

在PNIO_FRAME_IDS字典中执行反向查找

Parameters

x – PNIO_FRAME_IDS字典值

Returns

integer