Documentation ¶
Index ¶
Constants ¶
const (
HelloElemType_VersionBitmap
)
Variables ¶
This section is empty.
Functions ¶
func NewHeaderGenerator ¶
Types ¶
type Header ¶
The version specifies the OpenFlow protocol version being used. During the current draft phase of the OpenFlow Protocol, the most significant bit will be set to indicate an experimental version and the lower bits will indicate a revision number. The current version is 0x01. The final version for a Type 0 switch will be 0x00. The length field indicates the total length of the message, so no additional framing is used to distinguish one frame from the next.
func (*Header) MarshalBinary ¶
func (*Header) UnmarshalBinary ¶
type Hello ¶
The OFPT_HELLO message consists of an OpenFlow header plus a set of variable size hello elements. The version field part of the header field (see 7.1) must be set to the highest OpenFlow switch protocol version supported by the sender (see 6.3.1). The elements field is a set of hello elements, containing optional data to inform the initial handshake of the connection. Implementations must ignore (skip) all elements of a Hello message that they do not support. The version field part of the header field (see 7.1) must be set to the highest OpenFlow switch protocol version supported by the sender (see 6.3.1). The elements field is a set of hello elements, containing optional data to inform the initial handshake of the connection. Implementations must ignore (skip) all elements of a Hello message that they do not support.
func (*Hello) MarshalBinary ¶
func (*Hello) UnmarshalBinary ¶
type HelloElem ¶
type HelloElem interface { Header() *HelloElemHeader util.Message }
type HelloElemHeader ¶
func NewHelloElemHeader ¶
func NewHelloElemHeader() *HelloElemHeader
func (*HelloElemHeader) Header ¶
func (h *HelloElemHeader) Header() *HelloElemHeader
func (*HelloElemHeader) Len ¶
func (h *HelloElemHeader) Len() (n uint16)
func (*HelloElemHeader) MarshalBinary ¶
func (h *HelloElemHeader) MarshalBinary() (data []byte, err error)
func (*HelloElemHeader) UnmarshalBinary ¶
func (h *HelloElemHeader) UnmarshalBinary(data []byte) error
type HelloElemVersionBitmap ¶
type HelloElemVersionBitmap struct { HelloElemHeader Bitmaps []uint32 }
func NewHelloElemVersionBitmap ¶
func NewHelloElemVersionBitmap() *HelloElemVersionBitmap
func (*HelloElemVersionBitmap) Header ¶
func (h *HelloElemVersionBitmap) Header() *HelloElemHeader
func (*HelloElemVersionBitmap) Len ¶
func (h *HelloElemVersionBitmap) Len() (n uint16)
func (*HelloElemVersionBitmap) MarshalBinary ¶
func (h *HelloElemVersionBitmap) MarshalBinary() (data []byte, err error)
func (*HelloElemVersionBitmap) UnmarshalBinary ¶
func (h *HelloElemVersionBitmap) UnmarshalBinary(data []byte) error