Documentation ¶
Overview ¶
Package vxlan implements marshaling and unmarshaling of Virtual eXtensible Local Area Network (VXLAN) frames, as described in RFC 7348.
Index ¶
Constants ¶
View Source
const ( // MaxVNI is the maximum possible value for a VNI: the maximum value // of a 24-bit integer. MaxVNI = (1 << 24) - 1 )
Variables ¶
View Source
var ( // ErrInvalidFrame is returned when the reserved I bit is not set in // a byte slice when Frame.UnmarshalBinary is called. ErrInvalidFrame = errors.New("invalid Frame") // ErrInvalidVNI is returned when a Frame contains an invalid VNI, // and Frame.MarshalBinary is called. ErrInvalidVNI = errors.New("invalid VNI") )
Functions ¶
This section is empty.
Types ¶
type Frame ¶
A Frame is an Virtual eXtensible Local Area Network (VXLAN) frame, as described in RFC 7348, Section 5.
It contains a VNI used to designate an overlay network, and an embedded Ethernet frame which transports an arbitrary payload within the overlay network.
func (*Frame) MarshalBinary ¶
MarshalBinary allocates a byte slice and marshals a Frame into binary form.
If a VNI value is invalid, ErrInvalidVNI will be returned.
func (*Frame) UnmarshalBinary ¶
UnmarshalBinary allocates a byte slice and marshals a Frame into binary form.
If a VNI value is invalid, ErrInvalidVNI will be returned.
Click to show internal directories.
Click to hide internal directories.