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)[source]

Bases: 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. VXLAN                            
VXLAN fields

flags

FlagsField

<Flag 8 (Instance)>

reserved0

ShortField (Cond)

0

NextProtocol

ByteEnumField (Cond)

0

reserved1

ThreeBytesField (Cond)

0

gpflags

FlagsField (Cond)

<Flag 0 ()>

gpid

ShortField (Cond)

0

vni

X3BytesField

0

reserved2

XByteField

0

mysummary()[source]
payload_guess

Possible sublayers: NSH, IP, IPv6, Ether