scapy.contrib.openflow3

OpenFlow v1.3.4

OpenFlow is an open standard used in SDN deployments. Specifications can be retrieved from https://www.opennetworking.org/

class scapy.contrib.openflow3.MatchField(name)[源代码]

基类:PacketField

getfield(pkt, s)[源代码]
class scapy.contrib.openflow3.OFPAT(_pkt, /)[源代码]

基类:_ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
class scapy.contrib.openflow3.OFPATCopyTTLIn(_pkt, /, *, type=12, len=8, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATCopyTTLIn                        
OFPATCopyTTLIn fields

type

ShortEnumField

12

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATCopyTTLInID(_pkt, /, *, type=12, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATCopyTTLInID                       
OFPATCopyTTLInID fields

type

ShortEnumField

12

len

ShortField

4

class scapy.contrib.openflow3.OFPATCopyTTLOut(_pkt, /, *, type=11, len=8, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATCopyTTLOut                       
OFPATCopyTTLOut fields

type

ShortEnumField

11

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATCopyTTLOutID(_pkt, /, *, type=11, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATCopyTTLOutID                      
OFPATCopyTTLOutID fields

type

ShortEnumField

11

len

ShortField

4

class scapy.contrib.openflow3.OFPATDecMPLSTTL(_pkt, /, *, type=16, len=8, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATDecMPLSTTL                       
OFPATDecMPLSTTL fields

type

ShortEnumField

16

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATDecMPLSTTLID(_pkt, /, *, type=16, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATDecMPLSTTLID                      
OFPATDecMPLSTTLID fields

type

ShortEnumField

16

len

ShortField

4

class scapy.contrib.openflow3.OFPATDecNwTTL(_pkt, /, *, type=24, len=8, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATDecNwTTL                        
OFPATDecNwTTL fields

type

ShortEnumField

24

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATDecNwTTLID(_pkt, /, *, type=24, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATDecNwTTLID                       
OFPATDecNwTTLID fields

type

ShortEnumField

24

len

ShortField

4

class scapy.contrib.openflow3.OFPATExperimenter(_pkt, /, *, type=65535, len=8, experimenter=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATExperimenter                      
OFPATExperimenter fields

type

ShortEnumField

65535

len

ShortField

8

experimenter

IntField

0

class scapy.contrib.openflow3.OFPATExperimenterID(_pkt, /, *, type=65535, len=None)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPATExperimenterID                     
OFPATExperimenterID fields

type

ShortEnumField

65535

len

ShortField

None

class scapy.contrib.openflow3.OFPATGroup(_pkt, /, *, type=22, len=8, group_id=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            GROUP ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. OFPATGroup                          
OFPATGroup fields

type

ShortEnumField

22

len

ShortField

8

group_id

IntEnumField

0

class scapy.contrib.openflow3.OFPATGroupID(_pkt, /, *, type=22, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATGroupID                         
OFPATGroupID fields

type

ShortEnumField

22

len

ShortField

4

class scapy.contrib.openflow3.OFPATID(_pkt, /)[源代码]

基类:_ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
class scapy.contrib.openflow3.OFPATOutput(_pkt, /, *, type=0, len=16, port=0, max_len=65535, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PORT                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MAX LEN            |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. OFPATOutput                         
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(_pkt, /, *, type=0, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATOutputID                        
OFPATOutputID fields

type

ShortEnumField

0

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopMPLS(_pkt, /, *, type=20, len=8, ethertype=34887, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ETHERTYPE           |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATPopMPLS                         
OFPATPopMPLS fields

type

ShortEnumField

20

len

ShortField

8

ethertype

ShortField

34887

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPopMPLSID(_pkt, /, *, type=20, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATPopMPLSID                        
OFPATPopMPLSID fields

type

ShortEnumField

20

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopPBB(_pkt, /, *, type=27, len=8, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. OFPATPopPBB                         
OFPATPopPBB fields

type

ShortEnumField

27

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATPopPBBID(_pkt, /, *, type=27, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATPopPBBID                        
OFPATPopPBBID fields

type

ShortEnumField

27

len

ShortField

4

class scapy.contrib.openflow3.OFPATPopVLAN(_pkt, /, *, type=18, len=8, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATPopVLAN                         
OFPATPopVLAN fields

type

ShortEnumField

18

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATPopVLANID(_pkt, /, *, type=18, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATPopVLANID                        
OFPATPopVLANID fields

type

ShortEnumField

18

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushMPLS(_pkt, /, *, type=19, len=8, ethertype=34887, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ETHERTYPE           |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATPushMPLS                        
OFPATPushMPLS fields

type

ShortEnumField

19

len

ShortField

8

ethertype

ShortField

34887

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPushMPLSID(_pkt, /, *, type=19, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATPushMPLSID                       
OFPATPushMPLSID fields

type

ShortEnumField

19

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushPBB(_pkt, /, *, type=26, len=8, ethertype=35047, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ETHERTYPE           |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATPushPBB                         
OFPATPushPBB fields

type

ShortEnumField

26

len

ShortField

8

ethertype

ShortField

35047

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPushPBBID(_pkt, /, *, type=26, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATPushPBBID                        
OFPATPushPBBID fields

type

ShortEnumField

26

len

ShortField

4

class scapy.contrib.openflow3.OFPATPushVLAN(_pkt, /, *, type=17, len=8, ethertype=33024, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ETHERTYPE           |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATPushVLAN                        
OFPATPushVLAN fields

type

ShortEnumField

17

len

ShortField

8

ethertype

ShortField

33024

pad

XShortField

0

class scapy.contrib.openflow3.OFPATPushVLANID(_pkt, /, *, type=17, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATPushVLANID                       
OFPATPushVLANID fields

type

ShortEnumField

17

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetDlDst(_pkt, /, *, type=5, len=16, dl_addr='0', pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            DL ADDR                            |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetDlDst                        
OFPATSetDlDst fields

type

ShortEnumField

5

len

ShortField

16

dl_addr

MACField

'0'

pad

XBitField (48 bits)

0

class scapy.contrib.openflow3.OFPATSetDlDstID(_pkt, /, *, type=5, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetDlDstID                       
OFPATSetDlDstID fields

type

ShortEnumField

5

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetDlSrc(_pkt, /, *, type=4, len=16, dl_addr='0', pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            DL ADDR                            |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetDlSrc                        
OFPATSetDlSrc fields

type

ShortEnumField

4

len

ShortField

16

dl_addr

MACField

'0'

pad

XBitField (48 bits)

0

class scapy.contrib.openflow3.OFPATSetDlSrcID(_pkt, /, *, type=4, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetDlSrcID                       
OFPATSetDlSrcID fields

type

ShortEnumField

4

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetField(_pkt, /, *, type=25, len=None, field=[])[源代码]

基类:OFPAT

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             FIELD             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetField                        
OFPATSetField fields

type

ShortEnumField

25

len

ShortField

None

field

OXMPacketListField

[]

post_build(p, pay)[源代码]
class scapy.contrib.openflow3.OFPATSetFieldID(_pkt, /, *, type=25, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetFieldID                       
OFPATSetFieldID fields

type

ShortEnumField

25

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSLabel(_pkt, /, *, type=13, len=8, mpls_label=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           MPLS LABEL                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATSetMPLSLabel                      
OFPATSetMPLSLabel fields

type

ShortEnumField

13

len

ShortField

8

mpls_label

IntField

0

class scapy.contrib.openflow3.OFPATSetMPLSLabelID(_pkt, /, *, type=13, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPATSetMPLSLabelID                     
OFPATSetMPLSLabelID fields

type

ShortEnumField

13

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSTC(_pkt, /, *, type=14, len=8, mpls_tc=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MPLS TC    |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetMPLSTC                        
OFPATSetMPLSTC fields

type

ShortEnumField

14

len

ShortField

8

mpls_tc

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetMPLSTCID(_pkt, /, *, type=14, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATSetMPLSTCID                       
OFPATSetMPLSTCID fields

type

ShortEnumField

14

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetMPLSTTL(_pkt, /, *, type=15, len=8, mpls_ttl=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    MPLS TTL   |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetMPLSTTL                       
OFPATSetMPLSTTL fields

type

ShortEnumField

15

len

ShortField

8

mpls_ttl

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetMPLSTTLID(_pkt, /, *, type=15, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATSetMPLSTTLID                      
OFPATSetMPLSTTLID fields

type

ShortEnumField

15

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwDst(_pkt, /, *, type=7, len=8, nw_addr='0')[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            NW ADDR                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetNwDst                        
OFPATSetNwDst fields

type

ShortEnumField

7

len

ShortField

8

nw_addr

IPField

'0'

class scapy.contrib.openflow3.OFPATSetNwDstID(_pkt, /, *, type=7, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetNwDstID                       
OFPATSetNwDstID fields

type

ShortEnumField

7

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwSrc(_pkt, /, *, type=6, len=8, nw_addr='0')[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            NW ADDR                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetNwSrc                        
OFPATSetNwSrc fields

type

ShortEnumField

6

len

ShortField

8

nw_addr

IPField

'0'

class scapy.contrib.openflow3.OFPATSetNwSrcID(_pkt, /, *, type=6, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetNwSrcID                       
OFPATSetNwSrcID fields

type

ShortEnumField

6

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwTTL(_pkt, /, *, type=23, len=8, nw_ttl=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     NW TTL    |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetNwTTL                        
OFPATSetNwTTL fields

type

ShortEnumField

23

len

ShortField

8

nw_ttl

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetNwTTLID(_pkt, /, *, type=23, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetNwTTLID                       
OFPATSetNwTTLID fields

type

ShortEnumField

23

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetNwToS(_pkt, /, *, type=8, len=8, nw_tos=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     NW TOS    |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetNwToS                        
OFPATSetNwToS fields

type

ShortEnumField

8

len

ShortField

8

nw_tos

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetNwToSID(_pkt, /, *, type=8, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetNwToSID                       
OFPATSetNwToSID fields

type

ShortEnumField

8

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetQueue(_pkt, /, *, type=21, len=8, queue_id=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            QUEUE ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetQueue                        
OFPATSetQueue fields

type

ShortEnumField

21

len

ShortField

8

queue_id

IntEnumField

0

class scapy.contrib.openflow3.OFPATSetQueueID(_pkt, /, *, type=21, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetQueueID                       
OFPATSetQueueID fields

type

ShortEnumField

21

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetTpDst(_pkt, /, *, type=10, len=8, tp_port=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            TP PORT            |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetTpDst                        
OFPATSetTpDst fields

type

ShortEnumField

10

len

ShortField

8

tp_port

ShortField

0

pad

XShortField

0

class scapy.contrib.openflow3.OFPATSetTpDstID(_pkt, /, *, type=10, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetTpDstID                       
OFPATSetTpDstID fields

type

ShortEnumField

10

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetTpSrc(_pkt, /, *, type=9, len=8, tp_port=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            TP PORT            |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPATSetTpSrc                        
OFPATSetTpSrc fields

type

ShortEnumField

9

len

ShortField

8

tp_port

ShortField

0

pad

XShortField

0

class scapy.contrib.openflow3.OFPATSetTpSrcID(_pkt, /, *, type=9, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetTpSrcID                       
OFPATSetTpSrcID fields

type

ShortEnumField

9

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetVLANPCP(_pkt, /, *, type=2, len=8, vlan_pcp=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VLAN PCP   |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetVLANPCP                       
OFPATSetVLANPCP fields

type

ShortEnumField

2

len

ShortField

8

vlan_pcp

ByteField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPATSetVLANPCPID(_pkt, /, *, type=2, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATSetVLANPCPID                      
OFPATSetVLANPCPID fields

type

ShortEnumField

2

len

ShortField

4

class scapy.contrib.openflow3.OFPATSetVLANVID(_pkt, /, *, type=1, len=8, vlan_vid=0, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            VLAN VID           |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATSetVLANVID                       
OFPATSetVLANVID fields

type

ShortEnumField

1

len

ShortField

8

vlan_vid

ShortField

0

pad

XShortField

0

class scapy.contrib.openflow3.OFPATSetVLANVIDID(_pkt, /, *, type=1, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATSetVLANVIDID                      
OFPATSetVLANVIDID fields

type

ShortEnumField

1

len

ShortField

4

class scapy.contrib.openflow3.OFPATStripVLAN(_pkt, /, *, type=3, len=8, pad=0)[源代码]

基类:OFPAT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPATStripVLAN                        
OFPATStripVLAN fields

type

ShortEnumField

3

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPATStripVLANID(_pkt, /, *, type=3, len=4)[源代码]

基类:OFPATID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPATStripVLANID                       
OFPATStripVLANID fields

type

ShortEnumField

3

len

ShortField

4

class scapy.contrib.openflow3.OFPBucket(_pkt, /, *, len=None, weight=0, watch_port=0, watch_group=0, pad=0, actions=[])[源代码]

基类:_ofp_header_item

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |             WEIGHT            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           WATCH PORT                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          WATCH GROUP                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ACTIONS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. OFPBucket                          
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(_pkt, /, *, packet_count=0, byte_count=0)[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          PACKET COUNT                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BYTE COUNT                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPBucketStats                        
OFPBucketStats fields

packet_count

LongField

0

byte_count

LongField

0

class scapy.contrib.openflow3.OFPETBadAction(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=2, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPETBadAction                        
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=3, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPETBadInstruction                     
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=4, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPETBadMatch                        
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=1, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPETBadRequest                       
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=65535, exp_type=None, experimenter=None, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            EXP TYPE           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPETExperimenter                      
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=5, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPETFlowModFailed                      
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=6, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPETGroupModFailed                     
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=0, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPETHelloFailed                       
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=12, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPETMeterModFailed                     
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=7, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPETPortModFailed                      
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=9, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPETQueueOpFailed                      
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=11, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPETRoleRequestFailed                    
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=10, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPETSwitchConfigFailed                   
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=13, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPETTableFeaturesFailed                   
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(_pkt, /, *, version=4, type=1, len=None, xid=0, errtype=8, errcode=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ERRTYPE            |            ERRCODE            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPETTableModFailed                     
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(_pkt, /, *, len=None, table_id=0, pad1=0, duration_sec=0, duration_nsec=0, priority=0, idle_timeout=0, hard_timeout=0, flags=<Flag 0 ()>, pad2=0, cookie=0, packet_count=0, byte_count=0, match=<OFPMatch  |>, instructions=[])[源代码]

基类:_ofp_header_item

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |    TABLE ID   |      PAD1     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          DURATION SEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DURATION NSEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            PRIORITY           |          IDLE TIMEOUT         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          HARD TIMEOUT         |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD2                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             COOKIE                            |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          PACKET COUNT                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BYTE COUNT                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             MATCH             |          INSTRUCTIONS         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPFlowStats                         
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

<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(_pkt, /, *, len=None, type=0, pad=0, group_id=0, buckets=[])[源代码]

基类:_ofp_header_item

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |      TYPE     |      PAD      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            GROUP ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            BUCKETS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPGroupDesc                         
OFPGroupDesc fields

len

ShortField

None

type

ByteEnumField

0

pad

XByteField

0

group_id

IntEnumField

0

buckets

PacketListField

[]

class scapy.contrib.openflow3.OFPGroupStats(_pkt, /, *, len=None, pad1=0, group_id=0, ref_count=0, pad2=0, packet_count=0, byte_count=0, duration_sec=0, duration_nsec=0, bucket_stats=[])[源代码]

基类:_ofp_header_item

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              PAD1             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            GROUP ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           REF COUNT                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD2                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          PACKET COUNT                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BYTE COUNT                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          DURATION SEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DURATION NSEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          BUCKET STATS         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPGroupStats                        
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(_pkt, /)[源代码]

基类:_ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
class scapy.contrib.openflow3.OFPHETVersionBitmap(_pkt, /, *, type=1, len=8, bitmap=<Flag 0 ()>)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             BITMAP                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPHETVersionBitmap                     
OFPHETVersionBitmap fields

type

ShortEnumField

1

len

ShortField

8

bitmap

FlagsField

<Flag 0 ()>

class scapy.contrib.openflow3.OFPIT(_pkt, /)[源代码]

基类:_ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
class scapy.contrib.openflow3.OFPITApplyActions(_pkt, /, *, type=4, len=None, pad=0, actions=[])[源代码]

基类:OFPIT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ACTIONS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPITApplyActions                      
OFPITApplyActions fields

type

ShortEnumField

4

len

ShortField

None

pad

XIntField

0

actions

PacketListField

[]

class scapy.contrib.openflow3.OFPITApplyActionsID(_pkt, /, *, type=4, len=4)[源代码]

基类:OFPITID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPITApplyActionsID                     
OFPITApplyActionsID fields

type

ShortEnumField

4

len

ShortField

4

class scapy.contrib.openflow3.OFPITClearActions(_pkt, /, *, type=5, len=8, pad=0)[源代码]

基类:OFPIT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPITClearActions                      
OFPITClearActions fields

type

ShortEnumField

5

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPITClearActionsID(_pkt, /, *, type=5, len=4)[源代码]

基类:OFPITID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPITClearActionsID                     
OFPITClearActionsID fields

type

ShortEnumField

5

len

ShortField

4

class scapy.contrib.openflow3.OFPITExperimenter(_pkt, /, *, type=65535, len=None, experimenter=0)[源代码]

基类:OFPIT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPITExperimenter                      
OFPITExperimenter fields

type

ShortEnumField

65535

len

ShortField

None

experimenter

IntField

0

class scapy.contrib.openflow3.OFPITExperimenterID(_pkt, /, *, type=65535, len=None)[源代码]

基类:OFPITID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPITExperimenterID                     
OFPITExperimenterID fields

type

ShortEnumField

65535

len

ShortField

None

class scapy.contrib.openflow3.OFPITGotoTable(_pkt, /, *, type=1, len=8, table_id=0, pad=0)[源代码]

基类:OFPIT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    TABLE ID   |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                       Fig. OFPITGotoTable                        
OFPITGotoTable fields

type

ShortEnumField

1

len

ShortField

8

table_id

ByteEnumField

0

pad

X3BytesField

0

class scapy.contrib.openflow3.OFPITGotoTableID(_pkt, /, *, type=1, len=4)[源代码]

基类:OFPITID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPITGotoTableID                       
OFPITGotoTableID fields

type

ShortEnumField

1

len

ShortField

4

class scapy.contrib.openflow3.OFPITID(_pkt, /)[源代码]

基类:_ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
class scapy.contrib.openflow3.OFPITMeter(_pkt, /, *, type=6, len=8, meter_id=1)[源代码]

基类:OFPIT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. OFPITMeter                          
OFPITMeter fields

type

ShortEnumField

6

len

ShortField

8

meter_id

IntEnumField

1

class scapy.contrib.openflow3.OFPITMeterID(_pkt, /, *, type=6, len=4)[源代码]

基类:OFPITID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPITMeterID                         
OFPITMeterID fields

type

ShortEnumField

6

len

ShortField

4

class scapy.contrib.openflow3.OFPITWriteActions(_pkt, /, *, type=3, len=None, pad=0, actions=[])[源代码]

基类:OFPIT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ACTIONS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPITWriteActions                      
OFPITWriteActions fields

type

ShortEnumField

3

len

ShortField

None

pad

XIntField

0

actions

PacketListField

[]

class scapy.contrib.openflow3.OFPITWriteActionsID(_pkt, /, *, type=3, len=4)[源代码]

基类:OFPITID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPITWriteActionsID                     
OFPITWriteActionsID fields

type

ShortEnumField

3

len

ShortField

4

class scapy.contrib.openflow3.OFPITWriteMetadata(_pkt, /, *, type=2, len=24, pad=0, metadata=0, metadata_mask=0)[源代码]

基类:OFPIT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METADATA                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         METADATA MASK                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPITWriteMetadata                      
OFPITWriteMetadata fields

type

ShortEnumField

2

len

ShortField

24

pad

XIntField

0

metadata

LongField

0

metadata_mask

LongField

0

class scapy.contrib.openflow3.OFPITWriteMetadataID(_pkt, /, *, type=2, len=4)[源代码]

基类:OFPITID

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPITWriteMetadataID                     
OFPITWriteMetadataID fields

type

ShortEnumField

2

len

ShortField

4

class scapy.contrib.openflow3.OFPMBT(_pkt, /)[源代码]

基类:_ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
class scapy.contrib.openflow3.OFPMBTDSCPRemark(_pkt, /, *, type=1, len=16, rate=0, burst_size=0, prec_level=0, pad=0)[源代码]

基类:OFPMBT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              RATE                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BURST SIZE                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   PREC LEVEL  |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                      Fig. OFPMBTDSCPRemark                       
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(_pkt, /, *, type=0, len=16, rate=0, burst_size=0, pad=0)[源代码]

基类:OFPMBT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              RATE                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BURST SIZE                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. OFPMBTDrop                          
OFPMBTDrop fields

type

ShortEnumField

0

len

ShortField

16

rate

IntField

0

burst_size

IntField

0

pad

XIntField

0

class scapy.contrib.openflow3.OFPMBTExperimenter(_pkt, /, *, type=65535, len=16, rate=0, burst_size=0, experimenter=0)[源代码]

基类:OFPMBT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              RATE                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BURST SIZE                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPMBTExperimenter                      
OFPMBTExperimenter fields

type

ShortEnumField

65535

len

ShortField

16

rate

IntField

0

burst_size

IntField

0

experimenter

IntField

0

class scapy.contrib.openflow3.OFPMPReplyAggregate(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=2, flags=<Flag 0 ()>, pad1=0, packet_count=0, byte_count=0, flow_count=0, pad2=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          PACKET COUNT                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BYTE COUNT                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           FLOW COUNT                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD2                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPMPReplyAggregate                     
OFPMPReplyAggregate fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

2

flags

FlagsField

<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(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=0, flags=<Flag 0 ()>, pad=0, mfr_desc=b'', hw_desc=b'', sw_desc=b'', serial_num=b'', dp_desc=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            MFR DESC                           |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            HW DESC                            |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            SW DESC                            |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           SERIAL NUM                          |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            DP DESC                            |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPMPReplyDesc                        
OFPMPReplyDesc fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

0

flags

FlagsField

<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(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=65535, flags=<Flag 0 ()>, pad1=0, experimenter=0, exp_type=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            EXP TYPE                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPMPReplyExperimenter                    
OFPMPReplyExperimenter fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

65535

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

experimenter

IntField

0

exp_type

IntField

0

class scapy.contrib.openflow3.OFPMPReplyFlow(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=1, flags=<Flag 0 ()>, pad1=0, flow_stats=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           FLOW STATS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPMPReplyFlow                        
OFPMPReplyFlow fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

1

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

flow_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroup(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=6, flags=<Flag 0 ()>, pad1=0, group_stats=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          GROUP STATS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPMPReplyGroup                       
OFPMPReplyGroup fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

6

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

group_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroupDesc(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=7, flags=<Flag 0 ()>, pad1=0, group_descs=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          GROUP DESCS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPMPReplyGroupDesc                     
OFPMPReplyGroupDesc fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

7

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

group_descs

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyGroupFeatures(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=8, flags=<Flag 0 ()>, pad1=0, types=<Flag 0 ()>, capabilities=<Flag 0 ()>, max_group_all=0, max_group_select=0, max_group_indirect=0, max_group_ff=0, actions_all=<Flag 0 ()>, actions_select=<Flag 0 ()>, actions_indirect=<Flag 0 ()>, actions_ff=<Flag 0 ()>)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             TYPES                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          CAPABILITIES                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         MAX GROUP ALL                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        MAX GROUP SELECT                       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                       MAX GROUP INDIRECT                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAX GROUP FF                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          ACTIONS ALL                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         ACTIONS SELECT                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        ACTIONS INDIRECT                       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           ACTIONS FF                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPMPReplyGroupFeatures                   
OFPMPReplyGroupFeatures fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

8

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

types

FlagsField

<Flag 0 ()>

capabilities

FlagsField

<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

<Flag 0 ()>

actions_select

FlagsField

<Flag 0 ()>

actions_indirect

FlagsField

<Flag 0 ()>

actions_ff

FlagsField

<Flag 0 ()>

class scapy.contrib.openflow3.OFPMPReplyMeter(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=9, flags=<Flag 0 ()>, pad1=0, meter_stats=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          METER STATS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPMPReplyMeter                       
OFPMPReplyMeter fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

9

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

meter_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyMeterConfig(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=10, flags=<Flag 0 ()>, pad1=0, meter_configs=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         METER CONFIGS         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPMPReplyMeterConfig                    
OFPMPReplyMeterConfig fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

10

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

meter_configs

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyMeterFeatures(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=11, flags=<Flag 0 ()>, pad1=0, max_meter=0, band_types=<Flag 0 ()>, capabilities=<Flag 0 ()>, max_bands=0, max_color=0, pad2=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           MAX METER                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BAND TYPES                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          CAPABILITIES                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   MAX BANDS   |   MAX COLOR   |              PAD2             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPMPReplyMeterFeatures                   
OFPMPReplyMeterFeatures fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

11

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

max_meter

IntField

0

band_types

FlagsField

<Flag 0 ()>

capabilities

FlagsField

<Flag 0 ()>

max_bands

ByteField

0

max_color

ByteField

0

pad2

XShortField

0

class scapy.contrib.openflow3.OFPMPReplyPortDesc(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=13, flags=<Flag 0 ()>, pad1=0, ports=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             PORTS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPMPReplyPortDesc                      
OFPMPReplyPortDesc fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

13

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

ports

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyPortStats(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=4, flags=<Flag 0 ()>, pad1=0, port_stats=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           PORT STATS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPMPReplyPortStats                     
OFPMPReplyPortStats fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

4

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

port_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyQueue(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=5, flags=<Flag 0 ()>, pad1=0, queue_stats=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          QUEUE STATS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPMPReplyQueue                       
OFPMPReplyQueue fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

5

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

queue_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyTable(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=3, flags=<Flag 0 ()>, pad1=0, table_stats=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          TABLE STATS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPMPReplyTable                       
OFPMPReplyTable fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

3

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

table_stats

PacketListField

[]

class scapy.contrib.openflow3.OFPMPReplyTableFeatures(_pkt, /, *, version=4, type=19, len=None, xid=0, mp_type=12, flags=<Flag 0 ()>, pad1=0, table_features=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         TABLE FEATURES        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPMPReplyTableFeatures                   
OFPMPReplyTableFeatures fields

version

ByteEnumField

4

type

ByteEnumField

19

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

12

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

table_features

PacketListField

[]

class scapy.contrib.openflow3.OFPMPRequestAggregate(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=2, flags=<Flag 0 ()>, pad1=0, table_id=255, pad2=0, out_port=4294967295, out_group=4294967295, pad3=0, cookie=0, cookie_mask=0, match=<OFPMatch  |>)[源代码]

基类:OFPMPRequestFlow

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    TABLE ID   |                      PAD2                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                    OUT PORT                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                   OUT GROUP                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                      PAD3                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                     COOKIE                    |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                  COOKIE MASK                  |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |             MATCH             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPMPRequestAggregate                    
OFPMPRequestAggregate fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

2

flags

FlagsField

<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(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=0, flags=<Flag 0 ()>, pad=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPMPRequestDesc                       
OFPMPRequestDesc fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

0

flags

FlagsField

<Flag 0 ()>

pad

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestExperimenter(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=65535, flags=<Flag 0 ()>, pad1=0, experimenter=0, exp_type=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            EXP TYPE                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPMPRequestExperimenter                   
OFPMPRequestExperimenter fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

65535

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

experimenter

IntField

0

exp_type

IntField

0

class scapy.contrib.openflow3.OFPMPRequestFlow(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=1, flags=<Flag 0 ()>, pad1=0, table_id=255, pad2=0, out_port=4294967295, out_group=4294967295, pad3=0, cookie=0, cookie_mask=0, match=<OFPMatch  |>)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    TABLE ID   |                      PAD2                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                    OUT PORT                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                   OUT GROUP                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                      PAD3                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                     COOKIE                    |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                  COOKIE MASK                  |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |             MATCH             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPMPRequestFlow                       
OFPMPRequestFlow fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

1

flags

FlagsField

<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(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=6, flags=<Flag 0 ()>, pad1=0, group_id=4294967295, pad2=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            GROUP ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD2                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPMPRequestGroup                      
OFPMPRequestGroup fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

6

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

group_id

IntEnumField

4294967295

pad2

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestGroupDesc(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=7, flags=<Flag 0 ()>, pad1=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPMPRequestGroupDesc                    
OFPMPRequestGroupDesc fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

7

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestGroupFeatures(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=8, flags=<Flag 0 ()>, pad1=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPMPRequestGroupFeatures                  
OFPMPRequestGroupFeatures fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

8

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestMeter(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=9, flags=<Flag 0 ()>, pad1=0, meter_id=4294967295, pad2=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD2                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPMPRequestMeter                      
OFPMPRequestMeter fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

9

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

meter_id

IntEnumField

4294967295

pad2

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestMeterConfig(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=10, flags=<Flag 0 ()>, pad1=0, meter_id=4294967295, pad2=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD2                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPMPRequestMeterConfig                   
OFPMPRequestMeterConfig fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

10

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

meter_id

IntEnumField

4294967295

pad2

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestMeterFeatures(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=11, flags=<Flag 0 ()>, pad1=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPMPRequestMeterFeatures                  
OFPMPRequestMeterFeatures fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

11

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestPortDesc(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=13, flags=<Flag 0 ()>, pad1=0, port_no=0, pad=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPMPRequestPortDesc                     
OFPMPRequestPortDesc fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

13

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

port_no

IntEnumField

0

pad

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestPortStats(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=4, flags=<Flag 0 ()>, pad1=0, port_no=4294967295, pad=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPMPRequestPortStats                    
OFPMPRequestPortStats fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

4

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

port_no

IntEnumField

4294967295

pad

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestQueue(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=5, flags=<Flag 0 ()>, pad1=0, port_no=4294967295, queue_id=4294967295)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            QUEUE ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPMPRequestQueue                      
OFPMPRequestQueue fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

5

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

port_no

IntEnumField

4294967295

queue_id

IntEnumField

4294967295

class scapy.contrib.openflow3.OFPMPRequestTable(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=3, flags=<Flag 0 ()>, pad1=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPMPRequestTable                      
OFPMPRequestTable fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

3

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

class scapy.contrib.openflow3.OFPMPRequestTableFeatures(_pkt, /, *, version=4, type=18, len=None, xid=0, mp_type=12, flags=<Flag 0 ()>, pad1=0, table_features=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            MP TYPE            |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         TABLE FEATURES        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPMPRequestTableFeatures                  
OFPMPRequestTableFeatures fields

version

ByteEnumField

4

type

ByteEnumField

18

len

ShortField

None

xid

IntField

0

mp_type

ShortEnumField

12

flags

FlagsField

<Flag 0 ()>

pad1

XIntField

0

table_features

PacketListField

[]

class scapy.contrib.openflow3.OFPMatch(_pkt, /, *, type=1, len=None, oxm_fields=[])[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           OXM FIELDS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. OFPMatch                           
OFPMatch fields

type

ShortEnumField

1

len

ShortField

None

oxm_fields

OXMPacketListField

[]

post_build(p, pay)[源代码]
class scapy.contrib.openflow3.OFPMeterBandStats(_pkt, /, *, packet_band_count=0, byte_band_count=0)[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                       PACKET BAND COUNT                       |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        BYTE BAND COUNT                        |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPMeterBandStats                      
OFPMeterBandStats fields

packet_band_count

LongField

0

byte_band_count

LongField

0

class scapy.contrib.openflow3.OFPMeterConfig(_pkt, /, *, len=None, flags=<Flag 0 ()>, meter_id=1, bands=[])[源代码]

基类:_ofp_header_item

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             BANDS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPMeterConfig                        
OFPMeterConfig fields

len

ShortField

None

flags

FlagsField

<Flag 0 ()>

meter_id

IntEnumField

1

bands

PacketListField

[]

class scapy.contrib.openflow3.OFPMeterStats(_pkt, /, *, meter_id=1, len=None, pad=0, flow_count=0, packet_in_count=0, byte_in_count=0, duration_sec=0, duration_nsec=0, band_stats=[])[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           FLOW COUNT                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        PACKET IN COUNT                        |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         BYTE IN COUNT                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          DURATION SEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DURATION NSEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           BAND STATS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPMeterStats                        
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(_pkt, /, *, queue_id=0, len=None, pad=0, properties=[])[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            QUEUE ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           PROPERTIES          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPPacketQueue                        
OFPPacketQueue fields

queue_id

IntEnumField

0

len

ShortField

None

pad

XShortField

0

properties

PacketListField

[]

post_build(p, pay)[源代码]
class scapy.contrib.openflow3.OFPPort(_pkt, /, *, port_no=0, pad1=0, hw_addr='0', pad2=0, port_name=b'', config=<Flag 0 ()>, state=<Flag 0 ()>, curr=<Flag 0 ()>, advertised=<Flag 0 ()>, supported=<Flag 0 ()>, peer=<Flag 0 ()>, curr_speed=0, max_speed=0)[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            HW ADDR                            |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |              PAD2             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           PORT NAME                           |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             CONFIG                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             STATE                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              CURR                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           ADVERTISED                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           SUPPORTED                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PEER                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           CURR SPEED                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           MAX SPEED                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           Fig. OFPPort                           
OFPPort fields

port_no

IntEnumField

0

pad1

XIntField

0

hw_addr

MACField

'0'

pad2

XShortField

0

port_name

StrFixedLenField

b''

config

FlagsField

<Flag 0 ()>

state

FlagsField

<Flag 0 ()>

curr

FlagsField

<Flag 0 ()>

advertised

FlagsField

<Flag 0 ()>

supported

FlagsField

<Flag 0 ()>

peer

FlagsField

<Flag 0 ()>

curr_speed

IntField

0

max_speed

IntField

0

class scapy.contrib.openflow3.OFPPortStats(_pkt, /, *, port_no=0, pad=0, rx_packets=0, tx_packets=0, rx_bytes=0, tx_bytes=0, rx_dropped=0, tx_dropped=0, rx_errors=0, tx_errors=0, rx_frame_err=0, rx_over_err=0, rx_crc_err=0, collisions=0, duration_sec=0, duration_nsec=0)[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           RX PACKETS                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           TX PACKETS                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            RX BYTES                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            TX BYTES                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           RX DROPPED                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           TX DROPPED                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           RX ERRORS                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           TX ERRORS                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          RX FRAME ERR                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          RX OVER ERR                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           RX CRC ERR                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           COLLISIONS                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          DURATION SEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DURATION NSEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPPortStats                         
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(_pkt, /)[源代码]

基类:_ofp_header

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
class scapy.contrib.openflow3.OFPQTMinRate(_pkt, /, *, type=1, len=16, pad1=0, rate=0, pad2=0)[源代码]

基类:OFPQT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              RATE             |              PAD2             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPQTMinRate                         
OFPQTMinRate fields

type

ShortEnumField

1

len

ShortField

16

pad1

XIntField

0

rate

ShortField

0

pad2

XBitField (48 bits)

0

class scapy.contrib.openflow3.OFPQTNone(_pkt, /, *, type=0, len=8, pad=0)[源代码]

基类:OFPQT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. OFPQTNone                          
OFPQTNone fields

type

ShortEnumField

0

len

ShortField

8

pad

XIntField

0

class scapy.contrib.openflow3.OFPQueueStats(_pkt, /, *, port_no=0, queue_id=0, tx_bytes=0, tx_packets=0, tx_errors=0, duration_sec=0, duration_nsec=0)[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            QUEUE ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            TX BYTES                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           TX PACKETS                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           TX ERRORS                           |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          DURATION SEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DURATION NSEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPQueueStats                        
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(_pkt, /, *, version=4, type=21, len=None, xid=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPTBarrierReply                       
OFPTBarrierReply fields

version

ByteEnumField

4

type

ByteEnumField

21

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTBarrierRequest(_pkt, /, *, version=4, type=20, len=None, xid=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTBarrierRequest                      
OFPTBarrierRequest fields

version

ByteEnumField

4

type

ByteEnumField

20

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTEchoReply(_pkt, /, *, version=4, type=3, len=None, xid=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTEchoReply                        
OFPTEchoReply fields

version

ByteEnumField

4

type

ByteEnumField

3

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTEchoRequest(_pkt, /, *, version=4, type=2, len=None, xid=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPTEchoRequest                       
OFPTEchoRequest fields

version

ByteEnumField

4

type

ByteEnumField

2

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTExperimenter(_pkt, /, *, version=4, type=4, len=None, xid=0, experimenter=0, exp_type=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            EXP TYPE                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPTExperimenter                       
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(_pkt, /)[源代码]

基类:Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
extract_padding(s)[源代码]
post_build(p, pay)[源代码]
class scapy.contrib.openflow3.OFPTFPTApplyActions(_pkt, /, *, type=6, len=None, action_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ACTION IDS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTFPTApplyActions                     
OFPTFPTApplyActions fields

type

ShortField

6

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplyActionsMiss(_pkt, /, *, type=7, len=None, action_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ACTION IDS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPTFPTApplyActionsMiss                   
OFPTFPTApplyActionsMiss fields

type

ShortField

7

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplySetField(_pkt, /, *, type=14, len=None, oxm_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OXM IDS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPTFPTApplySetField                     
OFPTFPTApplySetField fields

type

ShortField

14

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTApplySetFieldMiss(_pkt, /, *, type=15, len=None, oxm_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OXM IDS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPTFPTApplySetFieldMiss                   
OFPTFPTApplySetFieldMiss fields

type

ShortField

15

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTExperimenter(_pkt, /, *, type=65534, len=None, experimenter=0, exp_type=0, experimenter_data=None)[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            EXP TYPE                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       EXPERIMENTER DATA       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTFPTExperimenter                     
OFPTFPTExperimenter fields

type

ShortField

65534

len

ShortField

None

experimenter

IntField

0

exp_type

IntField

0

experimenter_data

PacketLenField

None

class scapy.contrib.openflow3.OFPTFPTExperimenterMiss(_pkt, /, *, type=65535, len=None, experimenter=0, exp_type=0, experimenter_data=None)[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          EXPERIMENTER                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            EXP TYPE                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       EXPERIMENTER DATA       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPTFPTExperimenterMiss                   
OFPTFPTExperimenterMiss fields

type

ShortField

65535

len

ShortField

None

experimenter

IntField

0

exp_type

IntField

0

experimenter_data

PacketLenField

None

class scapy.contrib.openflow3.OFPTFPTInstructions(_pkt, /, *, type=0, len=None, instruction_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        INSTRUCTION IDS        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTFPTInstructions                     
OFPTFPTInstructions fields

type

ShortField

0

len

ShortField

None

instruction_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTInstructionsMiss(_pkt, /, *, type=1, len=None, instruction_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        INSTRUCTION IDS        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPTFPTInstructionsMiss                   
OFPTFPTInstructionsMiss fields

type

ShortField

1

len

ShortField

None

instruction_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTMatch(_pkt, /, *, type=8, len=None, oxm_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OXM IDS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTFPTMatch                         
OFPTFPTMatch fields

type

ShortField

8

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTNextTables(_pkt, /, *, type=2, len=None, next_table_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         NEXT TABLE IDS        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPTFPTNextTables                      
OFPTFPTNextTables fields

type

ShortField

2

len

ShortField

None

next_table_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTNextTablesMiss(_pkt, /, *, type=3, len=None, next_table_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         NEXT TABLE IDS        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPTFPTNextTablesMiss                    
OFPTFPTNextTablesMiss fields

type

ShortField

3

len

ShortField

None

next_table_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWildcards(_pkt, /, *, type=10, len=None, oxm_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OXM IDS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPTFPTWildcards                       
OFPTFPTWildcards fields

type

ShortField

10

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteActions(_pkt, /, *, type=4, len=None, action_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ACTION IDS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTFPTWriteActions                     
OFPTFPTWriteActions fields

type

ShortField

4

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteActionsMiss(_pkt, /, *, type=5, len=None, action_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           ACTION IDS          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPTFPTWriteActionsMiss                   
OFPTFPTWriteActionsMiss fields

type

ShortField

5

len

ShortField

None

action_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteSetField(_pkt, /, *, type=12, len=None, oxm_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OXM IDS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPTFPTWriteSetField                     
OFPTFPTWriteSetField fields

type

ShortField

12

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFPTWriteSetFieldMiss(_pkt, /, *, type=13, len=None, oxm_ids=[])[源代码]

基类:OFPTFPT

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              TYPE             |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            OXM IDS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPTFPTWriteSetFieldMiss                   
OFPTFPTWriteSetFieldMiss fields

type

ShortField

13

len

ShortField

None

oxm_ids

PacketListField

[]

class scapy.contrib.openflow3.OFPTFeaturesReply(_pkt, /, *, version=4, type=6, len=None, xid=0, datapath_id=0, n_buffers=0, n_tables=1, auxiliary_id=0, pad=0, capabilities=<Flag 0 ()>, reserved=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          DATAPATH ID                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           N BUFFERS                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    N TABLES   |  AUXILIARY ID |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          CAPABILITIES                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            RESERVED                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPTFeaturesReply                      
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

<Flag 0 ()>

reserved

IntField

0

class scapy.contrib.openflow3.OFPTFeaturesRequest(_pkt, /, *, version=4, type=5, len=None, xid=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTFeaturesRequest                     
OFPTFeaturesRequest fields

version

ByteEnumField

4

type

ByteEnumField

5

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTFlowMod(_pkt, /, *, version=4, type=14, len=None, xid=0, cookie=0, cookie_mask=0, table_id=0, cmd=0, idle_timeout=0, hard_timeout=0, priority=0, buffer_id=4294967295, out_port=4294967295, out_group=4294967295, flags=<Flag 0 ()>, pad=0, match=<OFPMatch  |>, instructions=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             COOKIE                            |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          COOKIE MASK                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    TABLE ID   |      CMD      |          IDLE TIMEOUT         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          HARD TIMEOUT         |            PRIORITY           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BUFFER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            OUT PORT                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           OUT GROUP                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             FLAGS             |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             MATCH             |          INSTRUCTIONS         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. OFPTFlowMod                         
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

<Flag 0 ()>

pad

XShortField

0

match

MatchField

<OFPMatch  |>

instructions

PacketListField

[]

class scapy.contrib.openflow3.OFPTFlowRemoved(_pkt, /, *, version=4, type=11, len=None, xid=0, cookie=0, priority=0, reason=0, table_id=0, duration_sec=0, duration_nsec=0, idle_timeout=0, hard_timeout=0, packet_count=0, byte_count=0, match=<OFPMatch  |>)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             COOKIE                            |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            PRIORITY           |     REASON    |    TABLE ID   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          DURATION SEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         DURATION NSEC                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          IDLE TIMEOUT         |          HARD TIMEOUT         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          PACKET COUNT                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BYTE COUNT                          |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             MATCH             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPTFlowRemoved                       
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(_pkt, /, *, version=4, type=27, len=32, xid=0, packet_in_mask_master=<Flag 0 ()>, packet_in_mask_slave=<Flag 0 ()>, port_status_mask_master=<Flag 0 ()>, port_status_mask_slave=<Flag 0 ()>, flow_removed_mask_master=<Flag 0 ()>, flow_removed_mask_slave=<Flag 0 ()>)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     PACKET IN MASK MASTER                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      PACKET IN MASK SLAVE                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    PORT STATUS MASK MASTER                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     PORT STATUS MASK SLAVE                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    FLOW REMOVED MASK MASTER                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    FLOW REMOVED MASK SLAVE                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPTGetAsyncReply                      
OFPTGetAsyncReply fields

version

ByteEnumField

4

type

ByteEnumField

27

len

ShortField

32

xid

IntField

0

packet_in_mask_master

FlagsField

<Flag 0 ()>

packet_in_mask_slave

FlagsField

<Flag 0 ()>

port_status_mask_master

FlagsField

<Flag 0 ()>

port_status_mask_slave

FlagsField

<Flag 0 ()>

flow_removed_mask_master

FlagsField

<Flag 0 ()>

flow_removed_mask_slave

FlagsField

<Flag 0 ()>

class scapy.contrib.openflow3.OFPTGetAsyncRequest(_pkt, /, *, version=4, type=26, len=8, xid=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTGetAsyncRequest                     
OFPTGetAsyncRequest fields

version

ByteEnumField

4

type

ByteEnumField

26

len

ShortField

8

xid

IntField

0

class scapy.contrib.openflow3.OFPTGetConfigReply(_pkt, /, *, version=4, type=8, len=None, xid=0, flags=0, miss_send_len=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             FLAGS             |         MISS SEND LEN         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     Fig. OFPTGetConfigReply                      
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(_pkt, /, *, version=4, type=7, len=None, xid=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Fig. OFPTGetConfigRequest                     
OFPTGetConfigRequest fields

version

ByteEnumField

4

type

ByteEnumField

7

len

ShortField

None

xid

IntField

0

class scapy.contrib.openflow3.OFPTGroupMod(_pkt, /, *, version=4, type=15, len=None, xid=0, cmd=0, group_type=0, pad=0, group_id=0, buckets=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              CMD              |   GROUP TYPE  |      PAD      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            GROUP ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            BUCKETS            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTGroupMod                         
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(_pkt, /, *, version=4, type=0, len=None, xid=0, elements=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ELEMENTS           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          Fig. OFPTHello                          
OFPTHello fields

version

ByteEnumField

4

type

ByteEnumField

0

len

ShortField

None

xid

IntField

0

elements

PacketListField

[]

class scapy.contrib.openflow3.OFPTMeterMod(_pkt, /, *, version=4, type=29, len=None, xid=0, cmd=0, flags=<Flag 0 ()>, meter_id=1, bands=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              CMD              |             FLAGS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             BANDS             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTMeterMod                         
OFPTMeterMod fields

version

ByteEnumField

4

type

ByteEnumField

29

len

ShortField

None

xid

IntField

0

cmd

ShortEnumField

0

flags

FlagsField

<Flag 0 ()>

meter_id

IntEnumField

1

bands

PacketListField

[]

class scapy.contrib.openflow3.OFPTPacketIn(_pkt, /, *, version=4, type=10, len=None, xid=0, buffer_id=4294967295, total_len=0, reason=0, table_id=0, cookie=0, match=<OFPMatch  |>, pad=0, data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BUFFER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           TOTAL LEN           |     REASON    |    TABLE ID   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             COOKIE                            |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             MATCH             |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTPacketIn                         
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(_pkt, /, *, version=4, type=13, len=None, xid=0, buffer_id=4294967295, in_port=4294967293, actions_len=None, pad=0, actions=[], data=b'')[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           BUFFER ID                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            IN PORT                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          ACTIONS LEN          |              PAD              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            ACTIONS            |              DATA             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTPacketOut                        
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(_pkt, /, *, version=4, type=16, len=None, xid=0, port_no=0, pad1=0, hw_addr='0', pad2=0, config=<Flag 0 ()>, mask=<Flag 0 ()>, advertise=<Flag 0 ()>, pad3=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD1                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            HW ADDR                            |
+                               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                               |              PAD2             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             CONFIG                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              MASK                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           ADVERTISE                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD3                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                         Fig. OFPTPortMod                         
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

<Flag 0 ()>

mask

FlagsField

<Flag 0 ()>

advertise

FlagsField

<Flag 0 ()>

pad3

XIntField

0

class scapy.contrib.openflow3.OFPTPortStatus(_pkt, /, *, version=4, type=12, len=None, xid=0, reason=0, pad=0, desc=<OFPPort  |>)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     REASON    |                      PAD                      |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              DESC             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPTPortStatus                        
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(_pkt, /, *, version=4, type=23, len=None, xid=0, port=0, pad=0, queues=[])[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PORT                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             QUEUES            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Fig. OFPTQueueGetConfigReply                   
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(_pkt, /, *, version=4, type=22, len=None, xid=0, port_no=4294967295, pad=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            PORT NO                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                  Fig. OFPTQueueGetConfigRequest                  
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(_pkt, /, *, version=4, type=25, len=None, xid=0, role=0, pad=0, generation_id=0)[源代码]

基类:OFPTRoleRequest

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              ROLE                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         GENERATION ID                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTRoleReply                        
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(_pkt, /, *, version=4, type=24, len=None, xid=0, role=0, pad=0, generation_id=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              ROLE                             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              PAD                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         GENERATION ID                         |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                       Fig. OFPTRoleRequest                       
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(_pkt, /, *, version=4, type=28, len=32, xid=0, packet_in_mask_master=<Flag 0 ()>, packet_in_mask_slave=<Flag 0 ()>, port_status_mask_master=<Flag 0 ()>, port_status_mask_slave=<Flag 0 ()>, flow_removed_mask_master=<Flag 0 ()>, flow_removed_mask_slave=<Flag 0 ()>)[源代码]

基类:OFPTGetAsyncReply

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     PACKET IN MASK MASTER                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      PACKET IN MASK SLAVE                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    PORT STATUS MASK MASTER                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     PORT STATUS MASK SLAVE                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    FLOW REMOVED MASK MASTER                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    FLOW REMOVED MASK SLAVE                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTSetAsync                         
OFPTSetAsync fields

version

ByteEnumField

4

type

ByteEnumField

28

len

ShortField

32

xid

IntField

0

packet_in_mask_master

FlagsField

<Flag 0 ()>

packet_in_mask_slave

FlagsField

<Flag 0 ()>

port_status_mask_master

FlagsField

<Flag 0 ()>

port_status_mask_slave

FlagsField

<Flag 0 ()>

flow_removed_mask_master

FlagsField

<Flag 0 ()>

flow_removed_mask_slave

FlagsField

<Flag 0 ()>

class scapy.contrib.openflow3.OFPTSetConfig(_pkt, /, *, version=4, type=9, len=None, xid=0, flags=0, miss_send_len=128)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|             FLAGS             |         MISS SEND LEN         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                        Fig. OFPTSetConfig                        
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(_pkt, /, *, version=4, type=17, len=None, xid=0, table_id=0, pad=0, config=0)[源代码]

基类:_ofp_header

aliastypes
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    VERSION    |      TYPE     |              LEN              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              XID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    TABLE ID   |                      PAD                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                     CONFIG                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. OFPTTableMod                         
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(_pkt, /, *, len=None, table_id=0, pad=0, table_name=b'', metadata_match=0, metadata_write=0, config=0, max_entries=0, properties=[])[源代码]

基类:_ofp_header_item

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              LEN              |    TABLE ID   |      PAD      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           TABLE NAME                          |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         METADATA MATCH                        |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         METADATA WRITE                        |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                             CONFIG                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          MAX ENTRIES                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           PROPERTIES          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      Fig. OFPTableFeatures                       
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(_pkt, /, *, table_id=0)[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    TABLE ID   |
+-+-+-+-+-+-+-+-+

                         Fig. OFPTableID                          
OFPTableID fields

table_id

ByteEnumField

0

class scapy.contrib.openflow3.OFPTableStats(_pkt, /, *, table_id=0, pad1=0, active_count=0, lookup_count=0, matched_count=0)[源代码]

基类:Packet

aliastypes
extract_padding(s)[源代码]
fields_desc
Display RFC-like schema
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    TABLE ID   |                      PAD1                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                  ACTIVE COUNT                 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                  LOOKUP COUNT                 |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |                 MATCHED COUNT                 |
+-+-+-+-+-+-+-+-+                                               +
|                                                               |
+               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

                        Fig. OFPTableStats                        
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(_pkt, /)[源代码]

基类: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)[源代码]

基类:PacketListField

addfield(pkt, s, val)[源代码]
autocomplete
getfield(pkt, s)[源代码]
i2m(pkt, val)[源代码]
index
m2i(pkt, s)[源代码]
class scapy.contrib.openflow3.OpenFlow3(_pkt, /)[源代码]

基类:OpenFlow

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)[源代码]
scapy.contrib.openflow3.add_ofp_oxm_fields(i, org)[源代码]