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 fields

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 fields

type

ShortEnumField

11

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATCopyTTLOutID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATCopyTTLOutID fields

type

ShortEnumField

11

len

ShortField

4

class scapy.contrib.openflow3.OFPATDecMPLSTTL

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATDecMPLSTTL fields

type

ShortEnumField

16

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATDecMPLSTTLID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATDecMPLSTTLID fields

type

ShortEnumField

16

len

ShortField

4

class scapy.contrib.openflow3.OFPATDecNwTTL

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATDecNwTTL fields

type

ShortEnumField

24

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATDecNwTTLID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATDecNwTTLID fields

type

ShortEnumField

24

len

ShortField

4

class scapy.contrib.openflow3.OFPATExperimenter

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATExperimenter fields

type

ShortEnumField

65535

len

ShortField

8

experimenter

IntField

0

class scapy.contrib.openflow3.OFPATExperimenterID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATExperimenterID fields

type

ShortEnumField

65535

len

ShortField

None

class scapy.contrib.openflow3.OFPATGroup

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATGroup fields

type

ShortEnumField

22

len

ShortField

8

group_id

IntEnumField

0

class scapy.contrib.openflow3.OFPATGroupID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATGroupID fields

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
OFPATOutput fields

type

ShortEnumField

0

len

ShortField

16

port

IntEnumField

0

max_len

ShortEnumField

65535

pad

XBitField (48 bits)

0

class scapy.contrib.openflow3.OFPATOutputID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATOutputID fields

type

ShortEnumField

0

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopMPLS

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPopMPLS fields

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 fields

type

ShortEnumField

20

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopPBB

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPopPBB fields

type

ShortEnumField

27

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATPopPBBID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPopPBBID fields

type

ShortEnumField

27

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopVLAN

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPopVLAN fields

type

ShortEnumField

18

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATPopVLANID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATPopVLANID fields

type

ShortEnumField

18

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushMPLS

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPushMPLS fields

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 fields

type

ShortEnumField

19

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushPBB

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPushPBB fields

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 fields

type

ShortEnumField

26

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushVLAN

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATPushVLAN fields

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 fields

type

ShortEnumField

17

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetDlDst

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetDlDst fields

type

ShortEnumField

5

len

ShortField

16

dl_addr

MACField

'0'

pad

XBitField (48 bits)

0

class scapy.contrib.openflow3.OFPATSetDlDstID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetDlDstID fields

type

ShortEnumField

5

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetDlSrc

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetDlSrc fields

type

ShortEnumField

4

len

ShortField

16

dl_addr

MACField

'0'

pad

XBitField (48 bits)

0

class scapy.contrib.openflow3.OFPATSetDlSrcID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetDlSrcID fields

type

ShortEnumField

4

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetField

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
extract_padding(s)
fields_desc
OFPATSetField fields

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 fields

type

ShortEnumField

25

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSLabel

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetMPLSLabel fields

type

ShortEnumField

13

len

ShortField

8

mpls_label

IntField

0

class scapy.contrib.openflow3.OFPATSetMPLSLabelID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetMPLSLabelID fields

type

ShortEnumField

13

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSTC

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetMPLSTC fields

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 fields

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 fields

type

ShortEnumField

15

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwDst

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwDst fields

type

ShortEnumField

7

len

ShortField

8

nw_addr

IPField

'0'

class scapy.contrib.openflow3.OFPATSetNwDstID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetNwDstID fields

type

ShortEnumField

7

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwSrc

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwSrc fields

type

ShortEnumField

6

len

ShortField

8

nw_addr

IPField

'0'

class scapy.contrib.openflow3.OFPATSetNwSrcID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetNwSrcID fields

type

ShortEnumField

6

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwTTL

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwTTL fields

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 fields

type

ShortEnumField

23

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwToS

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetNwToS fields

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 fields

type

ShortEnumField

8

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetQueue

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetQueue fields

type

ShortEnumField

21

len

ShortField

8

queue_id

IntEnumField

0

class scapy.contrib.openflow3.OFPATSetQueueID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATSetQueueID fields

type

ShortEnumField

21

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetTpDst

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetTpDst fields

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 fields

type

ShortEnumField

10

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetTpSrc

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetTpSrc fields

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 fields

type

ShortEnumField

9

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetVLANPCP

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetVLANPCP fields

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 fields

type

ShortEnumField

2

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetVLANVID

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATSetVLANVID fields

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 fields

type

ShortEnumField

1

len

ShortField

4

class scapy.contrib.openflow3.OFPATStripVLAN

Bases: scapy.contrib.openflow3.OFPAT

aliastypes
fields_desc
OFPATStripVLAN fields

type

ShortEnumField

3

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATStripVLANID

Bases: scapy.contrib.openflow3.OFPATID

aliastypes
fields_desc
OFPATStripVLANID fields

type

ShortEnumField

3

len

ShortField

4

class scapy.contrib.openflow3.OFPBucket

Bases: scapy.contrib.openflow._ofp_header_item

aliastypes
extract_padding(s)
fields_desc
OFPBucket fields

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 fields

packet_count

LongField

0

byte_count

LongField

0

class scapy.contrib.openflow3.OFPETBadAction

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPETBadAction fields

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
OFPETBadInstruction fields

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 fields

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 fields

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
OFPETExperimenter fields

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
OFPETFlowModFailed fields

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
OFPETGroupModFailed fields

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
OFPETHelloFailed fields

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
OFPETMeterModFailed fields

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
OFPETPortModFailed fields

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 fields

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
OFPETRoleRequestFailed fields

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 fields

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
OFPETTableFeaturesFailed fields

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
OFPETTableModFailed fields

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 fields

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 bits)

<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 fields

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 fields

type

ShortEnumField

1

len

ShortField

8

bitmap

FlagsField (32 bits)

<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 fields

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 fields

type

ShortEnumField

4

len

ShortField

4

class scapy.contrib.openflow3.OFPITClearActions

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITClearActions fields

type

ShortEnumField

5

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPITClearActionsID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITClearActionsID fields

type

ShortEnumField

5

len

ShortField

4

class scapy.contrib.openflow3.OFPITExperimenter

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITExperimenter fields

type

ShortEnumField

65535

len

ShortField

None

experimenter

IntField

0

class scapy.contrib.openflow3.OFPITExperimenterID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITExperimenterID fields

type

ShortEnumField

65535

len

ShortField

None

class scapy.contrib.openflow3.OFPITGotoTable

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITGotoTable fields

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 fields

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 fields

type

ShortEnumField

6

len

ShortField

8

meter_id

IntEnumField

1

class scapy.contrib.openflow3.OFPITMeterID

Bases: scapy.contrib.openflow3.OFPITID

aliastypes
fields_desc
OFPITMeterID fields

type

ShortEnumField

6

len

ShortField

4

class scapy.contrib.openflow3.OFPITWriteActions

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITWriteActions fields

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 fields

type

ShortEnumField

3

len

ShortField

4

class scapy.contrib.openflow3.OFPITWriteMetadata

Bases: scapy.contrib.openflow3.OFPIT

aliastypes
fields_desc
OFPITWriteMetadata fields

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 fields

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
OFPMBTDSCPRemark fields

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 fields

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
OFPMBTExperimenter fields

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 fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

2

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

0

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

65535

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

1

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

flow_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroup

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyGroup fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

6

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

group_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroupDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyGroupDesc fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

7

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

group_descs

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroupFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyGroupFeatures fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

8

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

types

FlagsField (32 bits)

<Flag 0 ()>

capabilities

FlagsField (32 bits)

<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 bits)

<Flag 0 ()>

actions_select

FlagsField (32 bits)

<Flag 0 ()>

actions_indirect

FlagsField (32 bits)

<Flag 0 ()>

actions_ff

FlagsField (32 bits)

<Flag 0 ()>

class scapy.contrib.openflow3.OFPMPReplyMeter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyMeter fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

9

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

meter_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyMeterConfig

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyMeterConfig fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

10

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

meter_configs

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyMeterFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyMeterFeatures fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

11

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

max_meter

IntField

0

band_types

FlagsField (32 bits)

<Flag 0 ()>

capabilities

FlagsField (32 bits)

<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 bits)

<Flag 0 ()>

pad1

XIntField

0

ports

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyPortStats

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyPortStats fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

4

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

port_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyQueue

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyQueue fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

5

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

queue_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyTable

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyTable fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

3

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

table_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyTableFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPReplyTableFeatures fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

12

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

table_features

PacketListField

[]

class scapy.contrib.openflow3.OFPMPRequestAggregate

Bases: scapy.contrib.openflow3.OFPMPRequestFlow

aliastypes
fields_desc
OFPMPRequestAggregate fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

2

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

0

flags

FlagsField (16 bits)

<Flag 0 ()>

pad

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestExperimenter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestExperimenter fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

65535

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

1

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

6

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

7

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestGroupFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestGroupFeatures fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

8

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestMeter

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestMeter fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

9

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

10

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

11

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestPortDesc

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestPortDesc fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

13

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

4

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

5

flags

FlagsField (16 bits)

<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 fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

3

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestTableFeatures

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPMPRequestTableFeatures fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

12

flags

FlagsField (16 bits)

<Flag 0 ()>

pad1

XIntField

0

table_features

PacketListField

[]

class scapy.contrib.openflow3.OFPMatch

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPMatch fields

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 fields

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 fields

len

ShortField

None

flags

FlagsField (16 bits)

<Flag 0 ()>

meter_id

IntEnumField

1

bands

PacketListField

[]

class scapy.contrib.openflow3.OFPMeterStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPMeterStats fields

meter_id

IntEnumField

1

len

ShortField

None

pad

XBitField (48 bits)

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 fields

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 fields

port_no

IntEnumField

0

pad1

XIntField

0

hw_addr

MACField

'0'

pad2

XShortField

0

port_name

StrFixedLenField

b''

config

FlagsField (32 bits)

<Flag 0 ()>

state

FlagsField (32 bits)

<Flag 0 ()>

curr

FlagsField (32 bits)

<Flag 0 ()>

advertised

FlagsField (32 bits)

<Flag 0 ()>

supported

FlagsField (32 bits)

<Flag 0 ()>

peer

FlagsField (32 bits)

<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 fields

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 fields

type

ShortEnumField

1

len

ShortField

16

pad1

XIntField

0

rate

ShortField

0

pad2

XBitField (48 bits)

0

class scapy.contrib.openflow3.OFPQTNone

Bases: scapy.contrib.openflow3.OFPQT

aliastypes
fields_desc
OFPQTNone fields

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 fields

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 fields

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 fields

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
OFPTEchoReply fields

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 fields

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
OFPTExperimenter fields

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 fields

type

ShortField

6

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplyActionsMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTApplyActionsMiss fields

type

ShortField

7

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplySetField

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTApplySetField fields

type

ShortField

14

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplySetFieldMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTApplySetFieldMiss fields

type

ShortField

15

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTExperimenter

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTExperimenter fields

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
OFPTFPTExperimenterMiss fields

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
OFPTFPTInstructions fields

type

ShortField

0

len

ShortField

None

instruction_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTInstructionsMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTInstructionsMiss fields

type

ShortField

1

len

ShortField

None

instruction_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTMatch

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTMatch fields

type

ShortField

8

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTNextTables

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTNextTables fields

type

ShortField

2

len

ShortField

None

next_table_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTNextTablesMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTNextTablesMiss fields

type

ShortField

3

len

ShortField

None

next_table_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWildcards

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWildcards fields

type

ShortField

10

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteActions

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteActions fields

type

ShortField

4

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteActionsMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteActionsMiss fields

type

ShortField

5

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteSetField

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteSetField fields

type

ShortField

12

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteSetFieldMiss

Bases: scapy.contrib.openflow3.OFPTFPT

aliastypes
fields_desc
OFPTFPTWriteSetFieldMiss fields

type

ShortField

13

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFeaturesReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTFeaturesReply fields

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 bits)

<Flag 0 ()>

reserved

IntField

0

class scapy.contrib.openflow3.OFPTFeaturesRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTFeaturesRequest fields

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 fields

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 bits)

<Flag 0 ()>

pad

XShortField

0

match

MatchField

<OFPMatch  |>

instructions

PacketListField

[]

class scapy.contrib.openflow3.OFPTFlowRemoved

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTFlowRemoved fields

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 fields

version

ByteEnumField

4

type

ByteEnumField

27

len

ShortField

32

xid

IntField

0

packet_in_mask_master

FlagsField (32 bits)

<Flag 0 ()>

packet_in_mask_slave

FlagsField (32 bits)

<Flag 0 ()>

port_status_mask_master

FlagsField (32 bits)

<Flag 0 ()>

port_status_mask_slave

FlagsField (32 bits)

<Flag 0 ()>

flow_removed_mask_master

FlagsField (32 bits)

<Flag 0 ()>

flow_removed_mask_slave

FlagsField (32 bits)

<Flag 0 ()>

class scapy.contrib.openflow3.OFPTGetAsyncRequest

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTGetAsyncRequest fields

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 fields

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 fields

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 fields

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 fields

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 fields

version

ByteEnumField

4

type

ByteEnumField

29

len

ShortField

None

xid

IntField

0

cmd

ShortEnumField

0

flags

FlagsField (16 bits)

<Flag 0 ()>

meter_id

IntEnumField

1

bands

PacketListField

[]

class scapy.contrib.openflow3.OFPTPacketIn

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTPacketIn fields

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 fields

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 bits)

0

actions

PacketListField

[]

data

PacketField

b''

class scapy.contrib.openflow3.OFPTPortMod

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTPortMod fields

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 bits)

<Flag 0 ()>

mask

FlagsField (32 bits)

<Flag 0 ()>

advertise

FlagsField (32 bits)

<Flag 0 ()>

pad3

XIntField

0

class scapy.contrib.openflow3.OFPTPortStatus

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTPortStatus fields

version

ByteEnumField

4

type

ByteEnumField

12

len

ShortField

None

xid

IntField

0

reason

ByteEnumField

0

pad

XBitField (56 bits)

0

desc

PacketField

<OFPPort  |>

class scapy.contrib.openflow3.OFPTQueueGetConfigReply

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTQueueGetConfigReply fields

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 fields

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
OFPTRoleReply fields

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 fields

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 fields

version

ByteEnumField

4

type

ByteEnumField

28

len

ShortField

32

xid

IntField

0

packet_in_mask_master

FlagsField (32 bits)

<Flag 0 ()>

packet_in_mask_slave

FlagsField (32 bits)

<Flag 0 ()>

port_status_mask_master

FlagsField (32 bits)

<Flag 0 ()>

port_status_mask_slave

FlagsField (32 bits)

<Flag 0 ()>

flow_removed_mask_master

FlagsField (32 bits)

<Flag 0 ()>

flow_removed_mask_slave

FlagsField (32 bits)

<Flag 0 ()>

class scapy.contrib.openflow3.OFPTSetConfig

Bases: scapy.contrib.openflow._ofp_header

aliastypes
fields_desc
OFPTSetConfig fields

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 fields

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 fields

len

ShortField

None

table_id

ByteEnumField

0

pad

XBitField (40 bits)

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 fields

table_id

ByteEnumField

0

class scapy.contrib.openflow3.OFPTableStats

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
OFPTableStats fields

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)