Versions in this module Expand all Collapse all v0 v0.13.1 Aug 5, 2017 v0.13.0 Aug 4, 2017 Changes in this version type Factory + ProtocolVersion func() uint8 v0.12.1 Aug 31, 2016 Changes in this version + const OF10_VERSION + const OF13_VERSION + var ErrInvalidIPAddress = errors.New("invalid IP address") + var ErrInvalidMACAddress = errors.New("invalid MAC address") + var ErrInvalidPacketLength = errors.New("invalid packet length") + var ErrInvalidPropertyMethod = errors.New("invalid property method") + var ErrMissingEtherType = errors.New("missing Ethernet type") + var ErrMissingIPProtocol = errors.New("missing IP protocol") + var ErrUnsupportedEtherType = errors.New("unsupported Ethernet type") + var ErrUnsupportedIPProtocol = errors.New("unsupported IP protocol") + var ErrUnsupportedMatchType = errors.New("unsupported flow match type") + var ErrUnsupportedMessage = errors.New("unsupported message type") + var ErrUnsupportedVersion = errors.New("unsupported protocol version") + type Action interface + DstMAC func() (ok bool, mac net.HardwareAddr) + Error func() error + OutPort func() OutPort + Queue func() (ok bool, queue uint32) + SetDstMAC func(mac net.HardwareAddr) + SetOutPort func(port OutPort) + SetQueue func(queue uint32) + SetSrcMAC func(mac net.HardwareAddr) + SetVLANID func(vid uint16) + SrcMAC func() (ok bool, mac net.HardwareAddr) + VLANID func() (ok bool, vid uint16) + type BarrierReply interface + type BarrierRequest interface + type BaseAction struct + func NewBaseAction() *BaseAction + func (r *BaseAction) DstMAC() (ok bool, mac net.HardwareAddr) + func (r *BaseAction) Error() error + func (r *BaseAction) OutPort() OutPort + func (r *BaseAction) Queue() (ok bool, queue uint32) + func (r *BaseAction) SetDstMAC(mac net.HardwareAddr) + func (r *BaseAction) SetOutPort(port OutPort) + func (r *BaseAction) SetQueue(queue uint32) + func (r *BaseAction) SetSrcMAC(mac net.HardwareAddr) + func (r *BaseAction) SetVLANID(vid uint16) + func (r *BaseAction) SrcMAC() (ok bool, mac net.HardwareAddr) + func (r *BaseAction) VLANID() (ok bool, vid uint16) + type BaseEcho struct + func (r *BaseEcho) Data() []byte + func (r *BaseEcho) Error() error + func (r *BaseEcho) MarshalBinary() ([]byte, error) + func (r *BaseEcho) SetData(data []byte) + func (r *BaseEcho) UnmarshalBinary(data []byte) error + type BaseError struct + func (r *BaseError) Class() uint16 + func (r *BaseError) Code() uint16 + func (r *BaseError) Data() []byte + func (r *BaseError) UnmarshalBinary(data []byte) error + type BaseHello struct + func (r *BaseHello) MarshalBinary() ([]byte, error) + func (r *BaseHello) UnmarshalBinary(data []byte) error + type Config interface + Error func() error + Flags func() ConfigFlag + MissSendLength func() uint16 + SetFlags func(flags ConfigFlag) + SetMissSendLength func(length uint16) + type ConfigFlag uint16 + const FragDrop + const FragMask + const FragNormal + const FragReasm + type DescReply interface + Description func() string + Hardware func() string + Manufacturer func() string + Serial func() string + Software func() string + type DescRequest interface + type Echo interface + Data func() []byte + Error func() error + SetData func(data []byte) + type EchoReply interface + type EchoRequest interface + type Error interface + Class func() uint16 + Code func() uint16 + Data func() []byte + type Factory interface + NewAction func() (Action, error) + NewBarrierReply func() (BarrierReply, error) + NewBarrierRequest func() (BarrierRequest, error) + NewDescReply func() (DescReply, error) + NewDescRequest func() (DescRequest, error) + NewEchoReply func() (EchoReply, error) + NewEchoRequest func() (EchoRequest, error) + NewError func() (Error, error) + NewFeaturesReply func() (FeaturesReply, error) + NewFeaturesRequest func() (FeaturesRequest, error) + NewFlowMod func(cmd FlowModCmd) (FlowMod, error) + NewFlowRemoved func() (FlowRemoved, error) + NewFlowStatsRequest func() (FlowStatsRequest, error) + NewGetConfigReply func() (GetConfigReply, error) + NewGetConfigRequest func() (GetConfigRequest, error) + NewHello func() (Hello, error) + NewInstruction func() (Instruction, error) + NewMatch func() (Match, error) + NewPacketIn func() (PacketIn, error) + NewPacketOut func() (PacketOut, error) + NewPortDescReply func() (PortDescReply, error) + NewPortDescRequest func() (PortDescRequest, error) + NewPortStatus func() (PortStatus, error) + NewQueueGetConfigRequest func() (QueueGetConfigRequest, error) + NewSetConfig func() (SetConfig, error) + NewTableFeaturesRequest func() (TableFeaturesRequest, error) + type FeaturesReply interface + Actions func() uint32 + AuxID func() uint8 + Capabilities func() uint32 + DPID func() uint64 + NumBuffers func() uint32 + NumTables func() uint8 + Ports func() []Port + type FeaturesRequest interface + type FlowMod interface + Cookie func() uint64 + CookieMask func() uint64 + Error func() error + FlowInstruction func() Instruction + FlowMatch func() Match + HardTimeout func() uint16 + IdleTimeout func() uint16 + OutPort func() OutPort + Priority func() uint16 + SetCookie func(cookie uint64) + SetCookieMask func(mask uint64) + SetFlowInstruction func(action Instruction) + SetFlowMatch func(match Match) + SetHardTimeout func(timeout uint16) + SetIdleTimeout func(timeout uint16) + SetOutPort func(port OutPort) + SetPriority func(priority uint16) + SetTableID func(id uint8) + TableID func() uint8 + type FlowModCmd uint8 + const FlowAdd + const FlowDelete + const FlowModify + type FlowRemoved interface + ByteCount func() uint64 + Cookie func() uint64 + DurationNanoSec func() uint32 + DurationSec func() uint32 + HardTimeout func() uint16 + IdleTimeout func() uint16 + Match func() Match + PacketCount func() uint64 + Priority func() uint16 + Reason func() uint8 + TableID func() uint8 + type FlowStatsRequest interface + Cookie func() uint64 + CookieMask func() uint64 + Error func() error + Match func() Match + SetCookie func(cookie uint64) + SetCookieMask func(mask uint64) + SetMatch func(match Match) + SetTableID func(id uint8) + TableID func() uint8 + type GetConfigReply interface + type GetConfigRequest interface + type Header interface + SetTransactionID func(xid uint32) + TransactionID func() uint32 + Type func() uint8 + Version func() uint8 + type Hello interface + type InPort struct + func NewInPort() InPort + func (r *InPort) IsController() bool + func (r *InPort) SetController() + func (r *InPort) SetValue(port uint32) + func (r *InPort) Value() uint32 + type Instruction interface + ApplyAction func(act Action) + Error func() error + GotoTable func(tableID uint8) + WriteAction func(act Action) + type Match interface + DstIP func() *net.IPNet + DstMAC func() (wildcard bool, mac net.HardwareAddr) + DstPort func() (wildcard bool, port uint16) + Error func() error + EtherType func() (wildcard bool, etherType uint16) + IPProtocol func() (wildcard bool, protocol uint8) + InPort func() (wildcard bool, inport InPort) + SetDstIP func(ip *net.IPNet) + SetDstMAC func(mac net.HardwareAddr) + SetDstPort func(p uint16) + SetEtherType func(t uint16) + SetIPProtocol func(p uint8) + SetInPort func(port InPort) + SetSrcIP func(ip *net.IPNet) + SetSrcMAC func(mac net.HardwareAddr) + SetSrcPort func(p uint16) + SetVLANID func(id uint16) + SetVLANPriority func(p uint8) + SetWildcardDstMAC func() + SetWildcardDstPort func() + SetWildcardEtherType func() + SetWildcardIPProtocol func() + SetWildcardInPort func() + SetWildcardSrcMAC func() + SetWildcardSrcPort func() + SetWildcardVLANID func() + SetWildcardVLANPriority func() + SrcIP func() *net.IPNet + SrcMAC func() (wildcard bool, mac net.HardwareAddr) + SrcPort func() (wildcard bool, port uint16) + VLANID func() (wildcard bool, vlanID uint16) + VLANPriority func() (wildcard bool, priority uint8) + type Message struct + func NewMessage(version uint8, msgType uint8, xid uint32) Message + func (r *Message) MarshalBinary() ([]byte, error) + func (r *Message) Payload() []byte + func (r *Message) SetPayload(payload []byte) + func (r *Message) SetTransactionID(xid uint32) + func (r *Message) TransactionID() uint32 + func (r *Message) Type() uint8 + func (r *Message) UnmarshalBinary(data []byte) error + func (r *Message) Version() uint8 + type OutPort struct + func NewOutPort() OutPort + func (r *OutPort) IsAll() bool + func (r *OutPort) IsController() bool + func (r *OutPort) IsFlood() bool + func (r *OutPort) IsInPort() bool + func (r *OutPort) IsNone() bool + func (r *OutPort) IsTable() bool + func (r *OutPort) SetAll() + func (r *OutPort) SetController() + func (r *OutPort) SetFlood() + func (r *OutPort) SetInPort() + func (r *OutPort) SetNone() + func (r *OutPort) SetTable() + func (r *OutPort) SetValue(port uint32) + func (r *OutPort) Value() uint32 + type PacketIn interface + BufferID func() uint32 + Cookie func() uint64 + Data func() []byte + InPort func() uint32 + Length func() uint16 + Reason func() uint8 + TableID func() uint8 + type PacketOut interface + Action func() Action + Data func() []byte + Error func() error + InPort func() InPort + SetAction func(action Action) + SetData func(data []byte) + SetInPort func(port InPort) + type Port interface + IsAutoNego func() bool + IsCopper func() bool + IsFiber func() bool + IsLinkDown func() bool + IsPortDown func() bool + MAC func() net.HardwareAddr + Name func() string + Number func() uint32 + Speed func() uint64 + type PortDescReply interface + Ports func() []Port + type PortDescRequest interface + type PortReason uint8 + const PortAdded + const PortDeleted + const PortModified + type PortStatus interface + Port func() Port + Reason func() PortReason + type PropertyType uint16 + const OFPQT_EXPERIMENTER + const OFPQT_MAX_RATE + const OFPQT_MIN_RATE + const OFPQT_NONE + type Queue interface + ID func() uint32 + Length func() uint16 + Port func() uint32 + Property func() []QueueProperty + type QueueGetConfigReply interface + Port func() uint32 + Queue func() []Queue + type QueueGetConfigRequest interface + Port func() OutPort + SetPort func(OutPort) + type QueueProperty interface + Data func() []byte + Experimenter func() (uint32, error) + Length func() uint16 + Rate func() (uint16, error) + Type func() PropertyType + type SetConfig interface + type TableFeaturesRequest interface