scapy.contrib.openflow3

class scapy.contrib.openflow3.MatchField(name)

Bases: scapy.fields.PacketField

getfield(pkt, s)
class scapy.contrib.openflow3.OFPAT

Bases: scapy.contrib.openflow._ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OFPATCopyTTLIn

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATCopyTTLIn字段

type

ShortEnumField

12

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATCopyTTLInID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATCopyTTLInID fields

type

ShortEnumField

12

len

ShortField

4

class scapy.contrib.openflow3.OFPATCopyTTLOut

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATCopyTTLOut字段

type

ShortEnumField

11

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATCopyTTLOutID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATCopyTTLOutID字段

type

ShortEnumField

11

len

ShortField

4

class scapy.contrib.openflow3.OFPATDecMPLSTTL

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATDecMPLSTTL字段

type

ShortEnumField

16

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATDecMPLSTTLID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATDecMPLSTTLID字段

type

ShortEnumField

16

len

ShortField

4

class scapy.contrib.openflow3.OFPATDecNwTTL

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATDecNwTTL字段

type

ShortEnumField

24

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATDecNwTTLID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATDecNwTTLID字段

type

ShortEnumField

24

len

ShortField

4

class scapy.contrib.openflow3.OFPATExperimenter

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPAT实验者字段

type

ShortEnumField

65535

len

ShortField

8

experimenter

IntField

0

class scapy.contrib.openflow3.OFPATExperimenterID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATExperimenterID字段

type

ShortEnumField

65535

len

ShortField

None

class scapy.contrib.openflow3.OFPATGroup

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATGroup字段

type

ShortEnumField

22

len

ShortField

8

group_id

IntEnumField

0

class scapy.contrib.openflow3.OFPATGroupID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATGroupID字段

type

ShortEnumField

22

len

ShortField

4

class scapy.contrib.openflow3.OFPATID

Bases: scapy.contrib.openflow._ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OFPATOutput

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPAT输出字段

type

ShortEnumField

0

len

ShortField

16

port

IntEnumField

0

max_len

ShortEnumField

65535

pad

XBitField (48位)

0

class scapy.contrib.openflow3.OFPATOutputID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATOutputID字段

type

ShortEnumField

0

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopMPLS

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPopMPLS字段

type

ShortEnumField

20

len

ShortField

8

ethertype

ShortField

34887

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPopMPLSID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPopMPLSID字段

type

ShortEnumField

20

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopPBB

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPopPBB字段

type

ShortEnumField

27

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATPopPBBID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPopPBBID字段

type

ShortEnumField

27

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopVLAN

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPopVLAN字段

type

ShortEnumField

18

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATPopVLANID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPopVLANID字段

type

ShortEnumField

18

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushMPLS

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPushMPLS字段

type

ShortEnumField

19

len

ShortField

8

ethertype

ShortField

34887

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPushMPLSID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPushMPLSID字段

type

ShortEnumField

19

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushPBB

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPushPBB字段

type

ShortEnumField

26

len

ShortField

8

ethertype

ShortField

35047

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPushPBBID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPushPBBID字段

type

ShortEnumField

26

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushVLAN

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPushVLAN字段

type

ShortEnumField

17

len

ShortField

8

ethertype

ShortField

33024

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPushVLANID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPushVLANID字段

type

ShortEnumField

17

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetDlDst

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetDlDst字段

type

ShortEnumField

5

len

ShortField

16

dl_addr

MACField

'0'

pad

XBitField (48位)

0

class scapy.contrib.openflow3.OFPATSetDlDstID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetDlDstID字段

type

ShortEnumField

5

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetDlSrc

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetDlSrc字段

type

ShortEnumField

4

len

ShortField

16

dl_addr

MACField

'0'

pad

XBitField (48位)

0

class scapy.contrib.openflow3.OFPATSetDlSrcID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetDlSrcID字段

type

ShortEnumField

4

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetField

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
extract_padding(s)
fields_desc
OFPATSetField字段

type

ShortEnumField

25

len

ShortField

None

field

OXMPacketListField

[]

post_build(p, pay)
class scapy.contrib.openflow3.OFPATSetFieldID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetFieldID字段

type

ShortEnumField

25

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSLabel

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetMPLSLabel字段

type

ShortEnumField

13

len

ShortField

8

mpls_label

IntField

0

class scapy.contrib.openflow3.OFPATSetMPLSLabelID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetMPLSLabelID字段

type

ShortEnumField

13

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSTC

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetMPLSTC字段

type

ShortEnumField

14

len

ShortField

8

mpls_tc

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetMPLSTCID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetMPLSTCID字段

type

ShortEnumField

14

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSTTL

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetMPLSTTL fields

type

ShortEnumField

15

len

ShortField

8

mpls_ttl

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetMPLSTTLID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetMPLSTTLID字段

type

ShortEnumField

15

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwDst

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwDst字段

type

ShortEnumField

7

len

ShortField

8

nw_addr

IPField

'0'

class scapy.contrib.openflow3.OFPATSetNwDstID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetNwDstID字段

type

ShortEnumField

7

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwSrc

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwSrc字段

type

ShortEnumField

6

len

ShortField

8

nw_addr

IPField

'0'

class scapy.contrib.openflow3.OFPATSetNwSrcID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetNwSrcID字段

type

ShortEnumField

6

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwTTL

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwTTL字段

type

ShortEnumField

23

len

ShortField

8

nw_ttl

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetNwTTLID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetNwTTLID字段

type

ShortEnumField

23

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwToS

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwToS字段

type

ShortEnumField

8

len

ShortField

8

nw_tos

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetNwToSID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetNwToSID字段

type

ShortEnumField

8

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetQueue

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetQueue字段

type

ShortEnumField

21

len

ShortField

8

queue_id

IntEnumField

0

class scapy.contrib.openflow3.OFPATSetQueueID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetQueueID字段

type

ShortEnumField

21

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetTpDst

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetTpDst字段

type

ShortEnumField

10

len

ShortField

8

tp_port

ShortField

0

pad

XShortField

0

class scapy.contrib.openflow3.OFPATSetTpDstID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetTpDstID字段

type

ShortEnumField

10

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetTpSrc

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetTpSrc字段

type

ShortEnumField

9

len

ShortField

8

tp_port

ShortField

0

pad

XShortField

0

class scapy.contrib.openflow3.OFPATSetTpSrcID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetTpSrcID字段

type

ShortEnumField

9

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetVLANPCP

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetVLANPCP字段

type

ShortEnumField

2

len

ShortField

8

vlan_pcp

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetVLANPCPID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetVLANPCPID字段

type

ShortEnumField

2

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetVLANVID

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetVLANVID字段

type

ShortEnumField

1

len

ShortField

8

vlan_vid

ShortField

0

pad

XShortField

0

class scapy.contrib.openflow3.OFPATSetVLANVIDID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetVLANVIDID字段

type

ShortEnumField

1

len

ShortField

4

class scapy.contrib.openflow3.OFPATStripVLAN

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATStripVLAN字段

type

ShortEnumField

3

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATStripVLANID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATStripVLANID字段

type

ShortEnumField

3

len

ShortField

4

class scapy.contrib.openflow3.OFPBucket

Bases: scapy.contrib.openflow._ofp_header_item

aliastypes
extract_padding(s)
fields_desc
OFP桶字段

len

ShortField

None

weight

ShortField

0

watch_port

IntEnumField

0

watch_group

IntEnumField

0

pad

XIntField

0

actions

PacketListField

[]

class scapy.contrib.openflow3.OFPBucketStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPBucketStats字段

packet_count

LongField

0

byte_count

LongField

0

class scapy.contrib.openflow3.OFPETBadAction

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETBadAction字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

2

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETBadInstruction

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETBad指令域

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

3

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETBadMatch

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETBadMatch字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

4

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETBadRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETBadRequest字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

1

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETExperimenter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPET实验者领域

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

65535

exp_type

ShortField

None

experimenter

IntField

None

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETFlowModFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETFlowMod失败字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

5

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETGroupModFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETGroupMod失败的字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

6

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETHelloFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETHello失败的字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

0

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETMeterModFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETMeterMod失败的字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

12

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETPortModFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETPortMod失败的字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

7

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETQueueOpFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETQueueOpFailed栏位

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

9

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETRoleRequestFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETRoleRequest失败的字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

11

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETSwitchConfigFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETSwitchConfigFailed字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

10

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETTableFeaturesFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPET表功能失败的字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

13

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPETTableModFailed

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETTableMod失败的字段

version

ByteEnumField

4

type

ByteEnumField

1

len

ShortField

None

xid

IntField

0

errtype

ShortEnumField

8

errcode

ShortEnumField

0

data

OFPacketField

b''

class scapy.contrib.openflow3.OFPFlowStats

Bases: scapy.contrib.openflow._ofp_header_item

aliastypes
extract_padding(s)
fields_desc
OFPFlowStats字段

len

ShortField

None

table_id

ByteEnumField

0

pad1

XByteField

0

duration_sec

IntField

0

duration_nsec

IntField

0

priority

ShortField

0

idle_timeout

ShortField

0

hard_timeout

ShortField

0

flags

FlagsField (16位)

<Flag 0 ()>

pad2

IntField

0

cookie

LongField

0

packet_count

LongField

0

byte_count

LongField

0

match

MatchField

<OFPMatch  |>

instructions

PacketListField

[]

class scapy.contrib.openflow3.OFPGroupDesc

Bases: scapy.contrib.openflow._ofp_header_item

aliastypes
extract_padding(s)
fields_desc
OFPGroupDesc栏位

len

ShortField

None

type

ByteEnumField

0

pad

XByteField

0

group_id

IntEnumField

0

buckets

PacketListField

[]

class scapy.contrib.openflow3.OFPGroupStats

Bases: scapy.contrib.openflow._ofp_header_item

aliastypes
extract_padding(s)
fields_desc
OFPGroupStats fields

len

ShortField

None

pad1

XShortField

0

group_id

IntEnumField

0

ref_count

IntField

0

pad2

IntField

0

packet_count

LongField

0

byte_count

LongField

0

duration_sec

IntField

0

duration_nsec

IntField

0

bucket_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPHET

Bases: scapy.contrib.openflow._ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OFPHETVersionBitmap

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPHETVersionBitmap字段

type

ShortEnumField

1

len

ShortField

8

bitmap

FlagsField (32位)

<Flag 0 ()>

class scapy.contrib.openflow3.OFPIT

Bases: scapy.contrib.openflow._ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OFPITApplyActions

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITApplyActions字段

type

ShortEnumField

4

len

ShortField

None

pad

XIntField

0

actions

PacketListField

[]

class scapy.contrib.openflow3.OFPITApplyActionsID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITApplyActionsID字段

type

ShortEnumField

4

len

ShortField

4

class scapy.contrib.openflow3.OFPITClearActions

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITClearActions字段

type

ShortEnumField

5

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPITClearActionsID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITClearActionsID字段

type

ShortEnumField

5

len

ShortField

4

class scapy.contrib.openflow3.OFPITExperimenter

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPIT实验者字段

type

ShortEnumField

65535

len

ShortField

None

experimenter

IntField

0

class scapy.contrib.openflow3.OFPITExperimenterID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITExperimenterID字段

type

ShortEnumField

65535

len

ShortField

None

class scapy.contrib.openflow3.OFPITGotoTable

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITGotoTable字段

type

ShortEnumField

1

len

ShortField

8

table_id

ByteEnumField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPITGotoTableID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITGotoTableID字段

type

ShortEnumField

1

len

ShortField

4

class scapy.contrib.openflow3.OFPITID

Bases: scapy.contrib.openflow._ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OFPITMeter

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITMeter字段

type

ShortEnumField

6

len

ShortField

8

meter_id

IntEnumField

1

class scapy.contrib.openflow3.OFPITMeterID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITMeterID字段

type

ShortEnumField

6

len

ShortField

4

class scapy.contrib.openflow3.OFPITWriteActions

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITWriteActions字段

type

ShortEnumField

3

len

ShortField

None

pad

XIntField

0

actions

PacketListField

[]

class scapy.contrib.openflow3.OFPITWriteActionsID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITWriteActionsID字段

type

ShortEnumField

3

len

ShortField

4

class scapy.contrib.openflow3.OFPITWriteMetadata

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITWriteMetadata字段

type

ShortEnumField

2

len

ShortField

24

pad

XIntField

0

metadata

LongField

0

metadata_mask

LongField

0

class scapy.contrib.openflow3.OFPITWriteMetadataID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITWriteMetadataID字段

type

ShortEnumField

2

len

ShortField

4

class scapy.contrib.openflow3.OFPMBT

Bases: scapy.contrib.openflow._ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OFPMBTDSCPRemark

Bases: scapy.contrib.openflow3.OFPMBT

aliastypes
fields_desc
OFPMBTDSCP备注字段

type

ShortEnumField

1

len

ShortField

16

rate

IntField

0

burst_size

IntField

0

prec_level

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPMBTDrop

Bases: scapy.contrib.openflow3.OFPMBT

aliastypes
fields_desc
OFPMBTDrop字段

type

ShortEnumField

0

len

ShortField

16

rate

IntField

0

burst_size

IntField

0

pad

XIntField

0

class scapy.contrib.openflow3.OFPMBTExperimenter

Bases: scapy.contrib.openflow3.OFPMBT

aliastypes
fields_desc
OFPMBT实验者字段

type

ShortEnumField

65535

len

ShortField

16

rate

IntField

0

burst_size

IntField

0

experimenter

IntField

0

class scapy.contrib.openflow3.OFPMPReplyAggregate

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyAggregate字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

2

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

packet_count

LongField

0

byte_count

LongField

0

flow_count

IntField

0

pad2

XIntField

0

class scapy.contrib.openflow3.OFPMPReplyDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyDesc栏位

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

0

flags

FlagsField (16位)

<Flag 0 ()>

pad

XIntField

0

mfr_desc

StrFixedLenField

b''

hw_desc

StrFixedLenField

b''

sw_desc

StrFixedLenField

b''

serial_num

StrFixedLenField

b''

dp_desc

StrFixedLenField

b''

class scapy.contrib.openflow3.OFPMPReplyExperimenter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyExperimenter字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

65535

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

experimenter

IntField

0

exp_type

IntField

0

class scapy.contrib.openflow3.OFPMPReplyFlow

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyFlow字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

1

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

flow_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroup

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyGroup字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

6

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

group_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroupDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyGroupDesc栏位

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

7

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

group_descs

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroupFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyGroupFeatures字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

8

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

types

FlagsField (32位)

<Flag 0 ()>

capabilities

FlagsField (32位)

<Flag 0 ()>

max_group_all

IntField

0

max_group_select

IntField

0

max_group_indirect

IntField

0

max_group_ff

IntField

0

actions_all

FlagsField (32位)

<Flag 0 ()>

actions_select

FlagsField (32位)

<Flag 0 ()>

actions_indirect

FlagsField (32位)

<Flag 0 ()>

actions_ff

FlagsField (32位)

<Flag 0 ()>

class scapy.contrib.openflow3.OFPMPReplyMeter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyMeter栏位

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

9

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

meter_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyMeterConfig

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyMeterConfig字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

10

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

meter_configs

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyMeterFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyMeterFeatures字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

11

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

max_meter

IntField

0

band_types

FlagsField (32位)

<Flag 0 ()>

capabilities

FlagsField (32位)

<Flag 0 ()>

max_bands

ByteField

0

max_color

ByteField

0

pad2

XShortField

0

class scapy.contrib.openflow3.OFPMPReplyPortDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyPortDesc fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

13

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

ports

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyPortStats

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyPortStats字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

4

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

port_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyQueue

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyQueue字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

5

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

queue_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyTable

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyTable字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

3

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

table_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyTableFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyTableFeatures字段

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

12

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

table_features

PacketListField

[]

class scapy.contrib.openflow3.OFPMPRequestAggregate

Bases: scapy.contrib.openflow3.OFPMPRequestFlow

aliastypes
fields_desc
OFPMPRequestAggregate字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

2

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

table_id

ByteEnumField

255

pad2

X3BytesField

0

out_port

IntEnumField

4294967295

out_group

IntEnumField

4294967295

pad3

IntField

0

cookie

LongField

0

cookie_mask

LongField

0

match

MatchField

<OFPMatch  |>

class scapy.contrib.openflow3.OFPMPRequestDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestDesc栏位

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

0

flags

FlagsField (16位)

<Flag 0 ()>

pad

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestExperimenter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestExperimenter字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

65535

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

experimenter

IntField

0

exp_type

IntField

0

class scapy.contrib.openflow3.OFPMPRequestFlow

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestFlow字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

1

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

table_id

ByteEnumField

255

pad2

X3BytesField

0

out_port

IntEnumField

4294967295

out_group

IntEnumField

4294967295

pad3

IntField

0

cookie

LongField

0

cookie_mask

LongField

0

match

MatchField

<OFPMatch  |>

class scapy.contrib.openflow3.OFPMPRequestGroup

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestGroup字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

6

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

group_id

IntEnumField

4294967295

pad2

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestGroupDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestGroupDesc栏位

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

7

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestGroupFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestGroupFeatures字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

8

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestMeter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestMeter字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

9

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

meter_id

IntEnumField

4294967295

pad2

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestMeterConfig

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestMeterConfig字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

10

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

meter_id

IntEnumField

4294967295

pad2

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestMeterFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestMeterFeatures字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

11

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestPortDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestPortDesc栏位

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

13

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

port_no

IntEnumField

0

pad

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestPortStats

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestPortStats字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

4

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

port_no

IntEnumField

4294967295

pad

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestQueue

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestQueue字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

5

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

port_no

IntEnumField

4294967295

queue_id

IntEnumField

4294967295

class scapy.contrib.openflow3.OFPMPRequestTable

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestTable字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

3

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestTableFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestTableFeatures字段

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

12

flags

FlagsField (16位)

<Flag 0 ()>

pad1

XIntField

0

table_features

PacketListField

[]

class scapy.contrib.openflow3.OFPMatch

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPM匹配字段

type

ShortEnumField

1

len

ShortField

None

oxm_fields

OXMPacketListField

[]

post_build(p, pay)
class scapy.contrib.openflow3.OFPMeterBandStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPMeterBandStats字段

packet_band_count

LongField

0

byte_band_count

LongField

0

class scapy.contrib.openflow3.OFPMeterConfig

Bases: scapy.contrib.openflow._ofp_header_item

aliastypes
extract_padding(s)
fields_desc
OFPMeterConfig字段

len

ShortField

None

flags

FlagsField (16位)

<Flag 0 ()>

meter_id

IntEnumField

1

bands

PacketListField

[]

class scapy.contrib.openflow3.OFPMeterStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPMeterStats字段

meter_id

IntEnumField

1

len

ShortField

None

pad

XBitField (48位)

0

flow_count

IntField

0

packet_in_count

LongField

0

byte_in_count

LongField

0

duration_sec

IntField

0

duration_nsec

IntField

0

band_stats

PacketListField

[]

post_build(p, pay)
class scapy.contrib.openflow3.OFPPacketQueue

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPPacketQueue字段

queue_id

IntEnumField

0

len

ShortField

None

pad

XShortField

0

properties

PacketListField

[]

post_build(p, pay)
class scapy.contrib.openflow3.OFPPort

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPPort字段

port_no

IntEnumField

0

pad1

XIntField

0

hw_addr

MACField

'0'

pad2

XShortField

0

port_name

StrFixedLenField

b''

config

FlagsField (32位)

<Flag 0 ()>

state

FlagsField (32位)

<Flag 0 ()>

curr

FlagsField (32位)

<Flag 0 ()>

advertised

FlagsField (32位)

<Flag 0 ()>

supported

FlagsField (32位)

<Flag 0 ()>

peer

FlagsField (32位)

<Flag 0 ()>

curr_speed

IntField

0

max_speed

IntField

0

class scapy.contrib.openflow3.OFPPortStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPPortStats字段

port_no

IntEnumField

0

pad

XIntField

0

rx_packets

LongField

0

tx_packets

LongField

0

rx_bytes

LongField

0

tx_bytes

LongField

0

rx_dropped

LongField

0

tx_dropped

LongField

0

rx_errors

LongField

0

tx_errors

LongField

0

rx_frame_err

LongField

0

rx_over_err

LongField

0

rx_crc_err

LongField

0

collisions

LongField

0

duration_sec

IntField

0

duration_nsec

IntField

0

class scapy.contrib.openflow3.OFPQT

Bases: scapy.contrib.openflow._ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OFPQTMinRate

Bases: scapy.contrib.openflow3.OFPQT

aliastypes
fields_desc
OFPQTMinRate字段

type

ShortEnumField

1

len

ShortField

16

pad1

XIntField

0

rate

ShortField

0

pad2

XBitField (48位)

0

class scapy.contrib.openflow3.OFPQTNone

Bases: scapy.contrib.openflow3.OFPQT

aliastypes
fields_desc
OFPQTone字段

type

ShortEnumField

0

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPQueueStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPQueueStats字段

port_no

IntEnumField

0

queue_id

IntEnumField

0

tx_bytes

LongField

0

tx_packets

LongField

0

tx_errors

LongField

0

duration_sec

IntField

0

duration_nsec

IntField

0

class scapy.contrib.openflow3.OFPTBarrierReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTBarrierReply字段

version

ByteEnumField

4

type

ByteEnumField

21

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTBarrierRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTBarrierRequest字段

version

ByteEnumField

4

type

ByteEnumField

20

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTEchoReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTEcho回复字段

version

ByteEnumField

4

type

ByteEnumField

3

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTEchoRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTEchoRequest字段

version

ByteEnumField

4

type

ByteEnumField

2

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTExperimenter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPT实验者领域

version

ByteEnumField

4

type

ByteEnumField

4

len

ShortField

None

xid

IntField

0

experimenter

IntField

0

exp_type

IntField

0

class scapy.contrib.openflow3.OFPTFPT

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
post_build(p, pay)
class scapy.contrib.openflow3.OFPTFPTApplyActions

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTApplyActions字段

type

ShortField

6

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplyActionsMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTApplyActionsMiss字段

type

ShortField

7

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplySetField

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTApplySetField字段

type

ShortField

14

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplySetFieldMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTApplySetFieldMiss字段

type

ShortField

15

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTExperimenter

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPT实验者字段

type

ShortField

65534

len

ShortField

None

experimenter

IntField

0

exp_type

IntField

0

experimenter_data

PacketLenField

None

class scapy.contrib.openflow3.OFPTFPTExperimenterMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPT实验者小姐领域

type

ShortField

65535

len

ShortField

None

experimenter

IntField

0

exp_type

IntField

0

experimenter_data

PacketLenField

None

class scapy.contrib.openflow3.OFPTFPTInstructions

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPT说明字段

type

ShortField

0

len

ShortField

None

instruction_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTInstructionsMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPT说明小姐领域

type

ShortField

1

len

ShortField

None

instruction_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTMatch

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTMatch字段

type

ShortField

8

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTNextTables

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTNextTables字段

type

ShortField

2

len

ShortField

None

next_table_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTNextTablesMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTNextTablesMiss字段

type

ShortField

3

len

ShortField

None

next_table_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWildcards

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWildcards字段

type

ShortField

10

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteActions

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteActions字段

type

ShortField

4

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteActionsMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteActionsMiss栏位

type

ShortField

5

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteSetField

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteSetField字段

type

ShortField

12

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteSetFieldMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteSetFieldMiss字段

type

ShortField

13

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFeaturesReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPT功能回复字段

version

ByteEnumField

4

type

ByteEnumField

6

len

ShortField

None

xid

IntField

0

datapath_id

LongField

0

n_buffers

IntField

0

n_tables

ByteField

1

auxiliary_id

ByteField

0

pad

XShortField

0

capabilities

FlagsField (32位)

<Flag 0 ()>

reserved

IntField

0

class scapy.contrib.openflow3.OFPTFeaturesRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTFeaturesRequest字段

version

ByteEnumField

4

type

ByteEnumField

5

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTFlowMod

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTFlowMod字段

version

ByteEnumField

4

type

ByteEnumField

14

len

ShortField

None

xid

IntField

0

cookie

LongField

0

cookie_mask

LongField

0

table_id

ByteEnumField

0

cmd

ByteEnumField

0

idle_timeout

ShortField

0

hard_timeout

ShortField

0

priority

ShortField

0

buffer_id

IntEnumField

4294967295

out_port

IntEnumField

4294967295

out_group

IntEnumField

4294967295

flags

FlagsField (16位)

<Flag 0 ()>

pad

XShortField

0

match

MatchField

<OFPMatch  |>

instructions

PacketListField

[]

class scapy.contrib.openflow3.OFPTFlowRemoved

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTFlow已移除栏位

version

ByteEnumField

4

type

ByteEnumField

11

len

ShortField

None

xid

IntField

0

cookie

LongField

0

priority

ShortField

0

reason

ByteEnumField

0

table_id

ByteEnumField

0

duration_sec

IntField

0

duration_nsec

IntField

0

idle_timeout

ShortField

0

hard_timeout

ShortField

0

packet_count

LongField

0

byte_count

LongField

0

match

MatchField

<OFPMatch  |>

class scapy.contrib.openflow3.OFPTGetAsyncReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTGetAsyncReply字段

version

ByteEnumField

4

type

ByteEnumField

27

len

ShortField

32

xid

IntField

0

packet_in_mask_master

FlagsField (32位)

<Flag 0 ()>

packet_in_mask_slave

FlagsField (32位)

<Flag 0 ()>

port_status_mask_master

FlagsField (32位)

<Flag 0 ()>

port_status_mask_slave

FlagsField (32位)

<Flag 0 ()>

flow_removed_mask_master

FlagsField (32位)

<Flag 0 ()>

flow_removed_mask_slave

FlagsField (32位)

<Flag 0 ()>

class scapy.contrib.openflow3.OFPTGetAsyncRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTGetAsyncRequest栏位

version

ByteEnumField

4

type

ByteEnumField

26

len

ShortField

8

xid

IntField

0

class scapy.contrib.openflow3.OFPTGetConfigReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTGetConfigReply字段

version

ByteEnumField

4

type

ByteEnumField

8

len

ShortField

None

xid

IntField

0

flags

ShortEnumField

0

miss_send_len

ShortField

0

class scapy.contrib.openflow3.OFPTGetConfigRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTGetConfigRequest字段

version

ByteEnumField

4

type

ByteEnumField

7

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTGroupMod

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTGroupMod字段

version

ByteEnumField

4

type

ByteEnumField

15

len

ShortField

None

xid

IntField

0

cmd

ShortEnumField

0

group_type

ByteEnumField

0

pad

XByteField

0

group_id

IntEnumField

0

buckets

PacketListField

[]

class scapy.contrib.openflow3.OFPTHello

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTHello领域

version

ByteEnumField

4

type

ByteEnumField

0

len

ShortField

None

xid

IntField

0

elements

PacketListField

[]

class scapy.contrib.openflow3.OFPTMeterMod

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTMeterMod字段

version

ByteEnumField

4

type

ByteEnumField

29

len

ShortField

None

xid

IntField

0

cmd

ShortEnumField

0

flags

FlagsField (16位)

<Flag 0 ()>

meter_id

IntEnumField

1

bands

PacketListField

[]

class scapy.contrib.openflow3.OFPTPacketIn

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTPacketIn字段

version

ByteEnumField

4

type

ByteEnumField

10

len

ShortField

None

xid

IntField

0

buffer_id

IntEnumField

4294967295

total_len

ShortField

0

reason

ByteEnumField

0

table_id

ByteEnumField

0

cookie

LongField

0

match

MatchField

<OFPMatch  |>

pad

XShortField

0

data

PacketField

b''

class scapy.contrib.openflow3.OFPTPacketOut

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTPacketOut字段

version

ByteEnumField

4

type

ByteEnumField

13

len

ShortField

None

xid

IntField

0

buffer_id

IntEnumField

4294967295

in_port

IntEnumField

4294967293

actions_len

FieldLenField

None

pad

XBitField (48位)

0

actions

PacketListField

[]

data

PacketField

b''

class scapy.contrib.openflow3.OFPTPortMod

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTPortMod字段

version

ByteEnumField

4

type

ByteEnumField

16

len

ShortField

None

xid

IntField

0

port_no

IntEnumField

0

pad1

XIntField

0

hw_addr

MACField

'0'

pad2

XShortField

0

config

FlagsField (32位)

<Flag 0 ()>

mask

FlagsField (32位)

<Flag 0 ()>

advertise

FlagsField (32位)

<Flag 0 ()>

pad3

XIntField

0

class scapy.contrib.openflow3.OFPTPortStatus

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTPortStatus字段

version

ByteEnumField

4

type

ByteEnumField

12

len

ShortField

None

xid

IntField

0

reason

ByteEnumField

0

pad

XBitField (56位)

0

desc

PacketField

<OFPPort  |>

class scapy.contrib.openflow3.OFPTQueueGetConfigReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTQueueGetConfigReply字段

version

ByteEnumField

4

type

ByteEnumField

23

len

ShortField

None

xid

IntField

0

port

IntEnumField

0

pad

XIntField

0

queues

PacketListField

[]

class scapy.contrib.openflow3.OFPTQueueGetConfigRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTQueueGetConfigRequest字段

version

ByteEnumField

4

type

ByteEnumField

22

len

ShortField

None

xid

IntField

0

port_no

IntEnumField

4294967295

pad

XIntField

0

class scapy.contrib.openflow3.OFPTRoleReply

Bases: scapy.contrib.openflow3.OFPTRoleRequest

aliastypes
fields_desc
OFPTRole回复字段

version

ByteEnumField

4

type

ByteEnumField

25

len

ShortField

None

xid

IntField

0

role

IntEnumField

0

pad

XIntField

0

generation_id

LongField

0

class scapy.contrib.openflow3.OFPTRoleRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTRoleRequest字段

version

ByteEnumField

4

type

ByteEnumField

24

len

ShortField

None

xid

IntField

0

role

IntEnumField

0

pad

XIntField

0

generation_id

LongField

0

class scapy.contrib.openflow3.OFPTSetAsync

Bases: scapy.contrib.openflow3.OFPTGetAsyncReply

aliastypes
fields_desc
OFPTSetAsync字段

version

ByteEnumField

4

type

ByteEnumField

28

len

ShortField

32

xid

IntField

0

packet_in_mask_master

FlagsField (32位)

<Flag 0 ()>

packet_in_mask_slave

FlagsField (32位)

<Flag 0 ()>

port_status_mask_master

FlagsField (32位)

<Flag 0 ()>

port_status_mask_slave

FlagsField (32位)

<Flag 0 ()>

flow_removed_mask_master

FlagsField (32位)

<Flag 0 ()>

flow_removed_mask_slave

FlagsField (32位)

<Flag 0 ()>

class scapy.contrib.openflow3.OFPTSetConfig

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTSetConfig字段

version

ByteEnumField

4

type

ByteEnumField

9

len

ShortField

None

xid

IntField

0

flags

ShortEnumField

0

miss_send_len

ShortField

128

class scapy.contrib.openflow3.OFPTTableMod

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTTableMod字段

version

ByteEnumField

4

type

ByteEnumField

17

len

ShortField

None

xid

IntField

0

table_id

ByteEnumField

0

pad

X3BytesField

0

config

IntEnumField

0

class scapy.contrib.openflow3.OFPTableFeatures

Bases: scapy.contrib.openflow._ofp_header_item

aliastypes
extract_padding(s)
fields_desc
OFPTableFeatures字段

len

ShortField

None

table_id

ByteEnumField

0

pad

XBitField (40位)

0

table_name

StrFixedLenField

b''

metadata_match

LongField

0

metadata_write

LongField

0

config

IntEnumField

0

max_entries

IntField

0

properties

PacketListField

[]

class scapy.contrib.openflow3.OFPTableID

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPTableID字段

table_id

ByteEnumField

0

class scapy.contrib.openflow3.OFPTableStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPTableStats字段

table_id

ByteEnumField

0

pad1

X3BytesField

0

active_count

IntField

0

lookup_count

LongField

0

matched_count

LongField

0

class scapy.contrib.openflow3.OXMID

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
extract_padding(s)
class scapy.contrib.openflow3.OXMPacketListField(name, default, cls, length_from=None, autocomplete=False)

Bases: scapy.fields.PacketListField

addfield(pkt, s, val)
autocomplete
getfield(pkt, s)
i2m(pkt, val)
index
m2i(pkt, s)
class scapy.contrib.openflow3.OpenFlow3

Bases: scapy.contrib.openflow.OpenFlow

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
scapy.contrib.openflow3.add_ofp_oxm_fields(i, org)