scapy.layers.vxlan
Virtual eXtensible Local Area Network (VXLAN) - RFC 7348 -
A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks http://tools.ietf.org/html/rfc7348 https://www.ietf.org/id/draft-ietf-nvo3-vxlan-gpe-02.txt
VXLAN Group Policy Option: http://tools.ietf.org/html/draft-smith-vxlan-group-policy-00
- class scapy.layers.vxlan.VXLAN(_pkt, /, *, flags=<Flag 8 (Instance)>, reserved0=0, NextProtocol=0, reserved1=0, gpflags=<Flag 0 ()>, gpid=0, vni=0, reserved2=0)[源代码]
基类:
Packet- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | FLAGS | RESERVED0 | NEXTPROTOCOL | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GPFLAGS | GPID | VNI | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | RESERVED2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. VXLANVXLAN fields flags
<Flag 8 (Instance)>reserved0
ShortField(Cond)0NextProtocol
ByteEnumField(Cond)0reserved1
ThreeBytesField(Cond)0gpflags
FlagsField(Cond)<Flag 0 ()>gpid
ShortField(Cond)0vni
0reserved2
0