Documentation ¶
Index ¶
- Constants
- func NewAction() openflow.Action
- func NewBarrierRequest(xid uint32) openflow.BarrierRequest
- func NewDescRequest(xid uint32) openflow.DescRequest
- func NewEchoReply(xid uint32) openflow.EchoReply
- func NewEchoRequest(xid uint32) openflow.EchoRequest
- func NewFactory() openflow.Factory
- func NewFeaturesRequest(xid uint32) openflow.FeaturesRequest
- func NewFlowMod(xid uint32, cmd uint16) openflow.FlowMod
- func NewFlowStatsRequest(xid uint32) openflow.FlowStatsRequest
- func NewGetConfigRequest(xid uint32) openflow.GetConfigRequest
- func NewHello(xid uint32) openflow.Hello
- func NewMatch() openflow.Match
- func NewPacketOut(xid uint32) openflow.PacketOut
- func NewQueueGetConfigRequest(xid uint32) openflow.QueueGetConfigRequest
- func NewSetConfig(xid uint32) openflow.SetConfig
- type Action
- type BarrierReply
- type BarrierRequest
- type Config
- type DescReply
- type DescRequest
- type Factory
- func (r *Factory) NewAction() (openflow.Action, error)
- func (r *Factory) NewBarrierReply() (openflow.BarrierReply, error)
- func (r *Factory) NewBarrierRequest() (openflow.BarrierRequest, error)
- func (r *Factory) NewDescReply() (openflow.DescReply, error)
- func (r *Factory) NewDescRequest() (openflow.DescRequest, error)
- func (r *Factory) NewEchoReply() (openflow.EchoReply, error)
- func (r *Factory) NewEchoRequest() (openflow.EchoRequest, error)
- func (r *Factory) NewError() (openflow.Error, error)
- func (r *Factory) NewFeaturesReply() (openflow.FeaturesReply, error)
- func (r *Factory) NewFeaturesRequest() (openflow.FeaturesRequest, error)
- func (r *Factory) NewFlowMod(cmd openflow.FlowModCmd) (openflow.FlowMod, error)
- func (r *Factory) NewFlowRemoved() (openflow.FlowRemoved, error)
- func (r *Factory) NewFlowStatsRequest() (openflow.FlowStatsRequest, error)
- func (r *Factory) NewGetConfigReply() (openflow.GetConfigReply, error)
- func (r *Factory) NewGetConfigRequest() (openflow.GetConfigRequest, error)
- func (r *Factory) NewHello() (openflow.Hello, error)
- func (r *Factory) NewInstruction() (openflow.Instruction, error)
- func (r *Factory) NewMatch() (openflow.Match, error)
- func (r *Factory) NewPacketIn() (openflow.PacketIn, error)
- func (r *Factory) NewPacketOut() (openflow.PacketOut, error)
- func (r *Factory) NewPortDescReply() (openflow.PortDescReply, error)
- func (r *Factory) NewPortDescRequest() (openflow.PortDescRequest, error)
- func (r *Factory) NewPortStatus() (openflow.PortStatus, error)
- func (r *Factory) NewQueueGetConfigRequest() (openflow.QueueGetConfigRequest, error)
- func (r *Factory) NewSetConfig() (openflow.SetConfig, error)
- func (r *Factory) NewTableFeaturesRequest() (openflow.TableFeaturesRequest, error)
- type FeaturesReply
- func (r FeaturesReply) Actions() uint32
- func (r FeaturesReply) AuxID() uint8
- func (r FeaturesReply) Capabilities() uint32
- func (r FeaturesReply) DPID() uint64
- func (r FeaturesReply) NumBuffers() uint32
- func (r FeaturesReply) NumTables() uint8
- func (r FeaturesReply) Ports() []openflow.Port
- func (r *FeaturesReply) UnmarshalBinary(data []byte) error
- type FeaturesRequest
- type FlowMod
- func (r *FlowMod) Cookie() uint64
- func (r *FlowMod) CookieMask() uint64
- func (r *FlowMod) Error() error
- func (r *FlowMod) FlowInstruction() openflow.Instruction
- func (r *FlowMod) FlowMatch() openflow.Match
- func (r *FlowMod) HardTimeout() uint16
- func (r *FlowMod) IdleTimeout() uint16
- func (r *FlowMod) MarshalBinary() ([]byte, error)
- func (r *FlowMod) OutPort() openflow.OutPort
- func (r *FlowMod) Priority() uint16
- func (r *FlowMod) SetCookie(cookie uint64)
- func (r *FlowMod) SetCookieMask(mask uint64)
- func (r *FlowMod) SetFlowInstruction(inst openflow.Instruction)
- func (r *FlowMod) SetFlowMatch(match openflow.Match)
- func (r *FlowMod) SetHardTimeout(timeout uint16)
- func (r *FlowMod) SetIdleTimeout(timeout uint16)
- func (r *FlowMod) SetOutPort(p openflow.OutPort)
- func (r *FlowMod) SetPriority(priority uint16)
- func (r *FlowMod) SetTableID(id uint8)
- func (r *FlowMod) TableID() uint8
- type FlowRemoved
- func (r FlowRemoved) ByteCount() uint64
- func (r FlowRemoved) Cookie() uint64
- func (r FlowRemoved) DurationNanoSec() uint32
- func (r FlowRemoved) DurationSec() uint32
- func (r FlowRemoved) HardTimeout() uint16
- func (r FlowRemoved) IdleTimeout() uint16
- func (r FlowRemoved) Match() openflow.Match
- func (r FlowRemoved) PacketCount() uint64
- func (r FlowRemoved) Priority() uint16
- func (r FlowRemoved) Reason() uint8
- func (r FlowRemoved) TableID() uint8
- func (r *FlowRemoved) UnmarshalBinary(data []byte) error
- type FlowStatsRequest
- func (r *FlowStatsRequest) Cookie() uint64
- func (r *FlowStatsRequest) CookieMask() uint64
- func (r *FlowStatsRequest) Error() error
- func (r *FlowStatsRequest) MarshalBinary() ([]byte, error)
- func (r *FlowStatsRequest) Match() openflow.Match
- func (r *FlowStatsRequest) SetCookie(cookie uint64)
- func (r *FlowStatsRequest) SetCookieMask(mask uint64)
- func (r *FlowStatsRequest) SetMatch(match openflow.Match)
- func (r *FlowStatsRequest) SetTableID(id uint8)
- func (r *FlowStatsRequest) TableID() uint8
- type GetConfigReply
- type GetConfigRequest
- type Instruction
- type Match
- func (r *Match) DstIP() *net.IPNet
- func (r *Match) DstMAC() (wildcard bool, mac net.HardwareAddr)
- func (r *Match) DstPort() (wildcard bool, port uint16)
- func (r *Match) Error() error
- func (r *Match) EtherType() (wildcard bool, etherType uint16)
- func (r *Match) IPProtocol() (wildcard bool, protocol uint8)
- func (r *Match) InPort() (wildcard bool, inport openflow.InPort)
- func (r *Match) MarshalBinary() ([]byte, error)
- func (r *Match) SetDstIP(ip *net.IPNet)
- func (r *Match) SetDstMAC(mac net.HardwareAddr)
- func (r *Match) SetDstPort(p uint16)
- func (r *Match) SetEtherType(t uint16)
- func (r *Match) SetIPProtocol(p uint8)
- func (r *Match) SetInPort(port openflow.InPort)
- func (r *Match) SetSrcIP(ip *net.IPNet)
- func (r *Match) SetSrcMAC(mac net.HardwareAddr)
- func (r *Match) SetSrcPort(p uint16)
- func (r *Match) SetVLANID(id uint16)
- func (r *Match) SetVLANPriority(p uint8)
- func (r *Match) SetWildcardDstMAC()
- func (r *Match) SetWildcardDstPort()
- func (r *Match) SetWildcardEtherType()
- func (r *Match) SetWildcardIPProtocol()
- func (r *Match) SetWildcardInPort()
- func (r *Match) SetWildcardSrcMAC()
- func (r *Match) SetWildcardSrcPort()
- func (r *Match) SetWildcardVLANID()
- func (r *Match) SetWildcardVLANPriority()
- func (r *Match) SrcIP() *net.IPNet
- func (r *Match) SrcMAC() (wildcard bool, mac net.HardwareAddr)
- func (r *Match) SrcPort() (wildcard bool, port uint16)
- func (r *Match) UnmarshalBinary(data []byte) error
- func (r *Match) VLANID() (wildcard bool, vlanID uint16)
- func (r *Match) VLANPriority() (wildcard bool, priority uint8)
- type PacketIn
- type PacketOut
- func (r *PacketOut) Action() openflow.Action
- func (r *PacketOut) Data() []byte
- func (r *PacketOut) Error() error
- func (r *PacketOut) InPort() openflow.InPort
- func (r *PacketOut) MarshalBinary() ([]byte, error)
- func (r *PacketOut) SetAction(action openflow.Action)
- func (r *PacketOut) SetData(data []byte)
- func (r *PacketOut) SetInPort(port openflow.InPort)
- type Port
- func (r Port) IsAutoNego() bool
- func (r Port) IsCopper() bool
- func (r Port) IsFiber() bool
- func (r Port) IsLinkDown() bool
- func (r Port) IsPortDown() bool
- func (r Port) MAC() net.HardwareAddr
- func (r Port) Name() string
- func (r Port) Number() uint32
- func (r Port) Speed() uint64
- func (r *Port) UnmarshalBinary(data []byte) error
- type PortStatus
- type QueueGetConfigRequest
- type SetConfig
- type Wildcard
Constants ¶
View Source
const ( OFPT_HELLO = iota OFPT_ERROR OFPT_ECHO_REQUEST OFPT_ECHO_REPLY OFPT_VENDOR OFPT_FEATURES_REQUEST OFPT_FEATURES_REPLY OFPT_GET_CONFIG_REQUEST OFPT_GET_CONFIG_REPLY OFPT_SET_CONFIG OFPT_PACKET_IN OFPT_FLOW_REMOVED OFPT_PORT_STATUS OFPT_PACKET_OUT OFPT_FLOW_MOD OFPT_PORT_MOD OFPT_STATS_REQUEST OFPT_STATS_REPLY OFPT_BARRIER_REQUEST OFPT_BARRIER_REPLY OFPT_QUEUE_GET_CONFIG_REQUEST OFPT_QUEUE_GET_CONFIG_REPLY )
View Source
const ( OFPAT_OUTPUT = iota /* Output to switch port. */ OFPAT_SET_VLAN_VID /* Set the 802.1q VLAN id. */ OFPAT_SET_VLAN_PCP /* Set the 802.1q priority. */ OFPAT_STRIP_VLAN /* Strip the 802.1q header. */ OFPAT_SET_DL_SRC /* Ethernet source address. */ OFPAT_SET_DL_DST /* Ethernet destination address. */ OFPAT_SET_NW_SRC /* IP source address. */ OFPAT_SET_NW_DST /* IP destination address. */ OFPAT_SET_NW_TOS /* IP ToS (DSCP field, 6 bits). */ OFPAT_SET_TP_SRC /* TCP/UDP source port. */ OFPAT_SET_TP_DST /* TCP/UDP destination port. */ OFPAT_ENQUEUE /* Output to queue. */ OFPAT_VENDOR = 0xffff )
View Source
const ( OFPP_MAX = 0xff00 OFPP_IN_PORT = 0xfff8 OFPP_TABLE = 0xfff9 OFPP_FLOOD = 0xfffb OFPP_ALL = 0xfffc OFPP_CONTROLLER = 0xfffd OFPP_NONE = 0xffff )
View Source
const ( OFPFW_IN_PORT = 1 << 0 /* Switch input port. */ OFPFW_DL_VLAN = 1 << 1 /* VLAN id. */ OFPFW_DL_SRC = 1 << 2 /* Ethernet source address. */ OFPFW_DL_DST = 1 << 3 /* Ethernet destination address. */ OFPFW_DL_TYPE = 1 << 4 /* Ethernet frame type. */ OFPFW_NW_PROTO = 1 << 5 /* IP protocol. */ OFPFW_TP_SRC = 1 << 6 /* TCP/UDP source port. */ OFPFW_TP_DST = 1 << 7 /* TCP/UDP destination port. */ OFPFW_DL_VLAN_PCP = 1 << 20 /* VLAN priority. */ OFPFW_NW_TOS = 1 << 21 /* IP ToS (DSCP field, 6 bits). */ )
View Source
const ( OFPPF_10MB_HD = 1 << 0 /* 10 Mb half-duplex rate support. */ OFPPF_10MB_FD = 1 << 1 /* 10 Mb full-duplex rate support. */ OFPPF_100MB_HD = 1 << 2 /* 100 Mb half-duplex rate support. */ OFPPF_100MB_FD = 1 << 3 /* 100 Mb full-duplex rate support. */ OFPPF_1GB_HD = 1 << 4 /* 1 Gb half-duplex rate support. */ OFPPF_1GB_FD = 1 << 5 /* 1 Gb full-duplex rate support. */ OFPPF_10GB_FD = 1 << 6 /* 10 Gb full-duplex rate support. */ OFPPF_COPPER = 1 << 7 /* Copper medium. */ OFPPF_FIBER = 1 << 8 /* Fiber medium. */ OFPPF_AUTONEG = 1 << 9 /* Auto-negotiation. */ OFPPF_PAUSE = 1 << 10 /* Pause. */ OFPPF_PAUSE_ASYM = 1 << 11 /* Asymmetric pause. */ )
View Source
const ( OFPPC_PORT_DOWN = 1 << 0 OFPPC_NO_STP = 1 << 1 OFPPC_NO_RECV = 1 << 2 OFPPC_NO_RECV_STP = 1 << 3 OFPPC_NO_FLOOD = 1 << 4 OFPPC_NO_FWD = 1 << 5 OFPPC_NO_PACKET_IN = 1 << 6 )
View Source
const ( OFPPS_LINK_DOWN = 1 << 0 OFPPS_STP_LISTEN = 0 << 8 /* Not learning or relaying frames. */ OFPPS_STP_LEARN = 1 << 8 /* Learning but not relaying frames. */ OFPPS_STP_FORWARD = 2 << 8 /* Learning and relaying frames. */ OFPPS_STP_BLOCK = 3 << 8 /* Not part of spanning tree. */ OFPPS_STP_MASK = 3 << 8 /* Bit mask for OFPPS_STP_* values. */ )
View Source
const ( OFPFF_SEND_FLOW_REM = 1 << 0 /* Send flow removed message when flow expires or is deleted. */ OFPFF_CHECK_OVERLAP = 1 << 1 /* Check for overlapping entries first. */ OFPFF_EMERG = 1 << 2 /* Remark this is for emergency. */ )
View Source
const ( OFPFC_ADD = 0 /* New flow. */ OFPFC_MODIFY = 1 /* Modify all matching flows. */ OFPFC_MODIFY_STRICT = 2 /* Modify entry strictly matching wildcards and priority. */ OFPFC_DELETE = 3 /* Delete all matching flows. */ OFPFC_DELETE_STRICT = 4 /* Delete entry strictly matching wildcards and priority. */ )
View Source
const ( /* Description of this OpenFlow switch. * The request body is empty. * The reply body is struct ofp_desc_stats. */ OFPST_DESC = iota /* Individual flow statistics. * The request body is struct ofp_flow_stats_request. * The reply body is an array of struct ofp_flow_stats. */ OFPST_FLOW /* Aggregate flow statistics. * The request body is struct ofp_aggregate_stats_request. * The reply body is struct ofp_aggregate_stats_reply. */ OFPST_AGGREGATE /* Flow table statistics. * The request body is empty. * The reply body is an array of struct ofp_table_stats. */ OFPST_TABLE /* Physical port statistics. * The request body is struct ofp_port_stats_request. * The reply body is an array of struct ofp_port_stats. */ OFPST_PORT /* Queue statistics for a port * The request body defines the port * The reply body is an array of struct ofp_queue_stats */ OFPST_QUEUE /* Vendor extension. * The request and reply bodies begin with a 32-bit vendor ID, which takes * the same form as in "struct ofp_vendor_header". The request and reply * bodies are otherwise vendor-defined. */ OFPST_VENDOR = 0xffff )
View Source
const ( OFPC_FRAG_NORMAL = iota /* No special handling for fragments. */ OFPC_FRAG_DROP /* Drop fragments. */ OFPC_FRAG_REASM /* Reassemble (only if OFPC_IP_REASM set). */ OFPC_FRAG_MASK )
View Source
const ( OFPPR_ADD = 0 OFPPR_DELETE = 1 OFPPR_MODIFY = 2 )
View Source
const (
OFP_NO_BUFFER = 0xffffffff
)
Variables ¶
This section is empty.
Functions ¶
func NewBarrierRequest ¶
func NewBarrierRequest(xid uint32) openflow.BarrierRequest
func NewDescRequest ¶
func NewDescRequest(xid uint32) openflow.DescRequest
func NewEchoReply ¶
func NewEchoRequest ¶
func NewEchoRequest(xid uint32) openflow.EchoRequest
func NewFactory ¶
func NewFeaturesRequest ¶
func NewFeaturesRequest(xid uint32) openflow.FeaturesRequest
func NewFlowStatsRequest ¶
func NewFlowStatsRequest(xid uint32) openflow.FlowStatsRequest
func NewGetConfigRequest ¶
func NewGetConfigRequest(xid uint32) openflow.GetConfigRequest
func NewPacketOut ¶
func NewQueueGetConfigRequest ¶ added in v0.9.0
func NewQueueGetConfigRequest(xid uint32) openflow.QueueGetConfigRequest
func NewSetConfig ¶
Types ¶
type Action ¶
type Action struct {
*openflow.BaseAction
}
func (*Action) MarshalBinary ¶
func (*Action) UnmarshalBinary ¶
type BarrierReply ¶
func (*BarrierReply) UnmarshalBinary ¶
func (r *BarrierReply) UnmarshalBinary(data []byte) error
type BarrierRequest ¶
func (*BarrierRequest) MarshalBinary ¶
func (r *BarrierRequest) MarshalBinary() ([]byte, error)
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Flags ¶
func (r *Config) Flags() openflow.ConfigFlag
func (*Config) MissSendLength ¶
func (*Config) SetFlags ¶
func (r *Config) SetFlags(flags openflow.ConfigFlag)
func (*Config) SetMissSendLength ¶
type DescReply ¶
func (DescReply) Description ¶
func (DescReply) Manufacturer ¶
func (*DescReply) UnmarshalBinary ¶
type DescRequest ¶
func (*DescRequest) MarshalBinary ¶
func (r *DescRequest) MarshalBinary() ([]byte, error)
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Concrete factory
func (*Factory) NewBarrierReply ¶
func (r *Factory) NewBarrierReply() (openflow.BarrierReply, error)
func (*Factory) NewBarrierRequest ¶
func (r *Factory) NewBarrierRequest() (openflow.BarrierRequest, error)
func (*Factory) NewDescRequest ¶
func (r *Factory) NewDescRequest() (openflow.DescRequest, error)
func (*Factory) NewEchoRequest ¶
func (r *Factory) NewEchoRequest() (openflow.EchoRequest, error)
func (*Factory) NewFeaturesReply ¶
func (r *Factory) NewFeaturesReply() (openflow.FeaturesReply, error)
func (*Factory) NewFeaturesRequest ¶
func (r *Factory) NewFeaturesRequest() (openflow.FeaturesRequest, error)
func (*Factory) NewFlowMod ¶
func (*Factory) NewFlowRemoved ¶
func (r *Factory) NewFlowRemoved() (openflow.FlowRemoved, error)
func (*Factory) NewFlowStatsRequest ¶
func (r *Factory) NewFlowStatsRequest() (openflow.FlowStatsRequest, error)
func (*Factory) NewGetConfigReply ¶
func (r *Factory) NewGetConfigReply() (openflow.GetConfigReply, error)
func (*Factory) NewGetConfigRequest ¶
func (r *Factory) NewGetConfigRequest() (openflow.GetConfigRequest, error)
func (*Factory) NewInstruction ¶
func (r *Factory) NewInstruction() (openflow.Instruction, error)
func (*Factory) NewPortDescReply ¶
func (r *Factory) NewPortDescReply() (openflow.PortDescReply, error)
func (*Factory) NewPortDescRequest ¶
func (r *Factory) NewPortDescRequest() (openflow.PortDescRequest, error)
func (*Factory) NewPortStatus ¶
func (r *Factory) NewPortStatus() (openflow.PortStatus, error)
func (*Factory) NewQueueGetConfigRequest ¶ added in v0.9.0
func (r *Factory) NewQueueGetConfigRequest() (openflow.QueueGetConfigRequest, error)
func (*Factory) NewTableFeaturesRequest ¶
func (r *Factory) NewTableFeaturesRequest() (openflow.TableFeaturesRequest, error)
type FeaturesReply ¶
func (FeaturesReply) Actions ¶
func (r FeaturesReply) Actions() uint32
func (FeaturesReply) AuxID ¶
func (r FeaturesReply) AuxID() uint8
func (FeaturesReply) Capabilities ¶
func (r FeaturesReply) Capabilities() uint32
func (FeaturesReply) DPID ¶
func (r FeaturesReply) DPID() uint64
func (FeaturesReply) NumBuffers ¶
func (r FeaturesReply) NumBuffers() uint32
func (FeaturesReply) NumTables ¶
func (r FeaturesReply) NumTables() uint8
func (FeaturesReply) Ports ¶
func (r FeaturesReply) Ports() []openflow.Port
func (*FeaturesReply) UnmarshalBinary ¶
func (r *FeaturesReply) UnmarshalBinary(data []byte) error
type FeaturesRequest ¶
func (*FeaturesRequest) MarshalBinary ¶
func (r *FeaturesRequest) MarshalBinary() ([]byte, error)
type FlowMod ¶
func (*FlowMod) CookieMask ¶
func (*FlowMod) FlowInstruction ¶
func (r *FlowMod) FlowInstruction() openflow.Instruction
func (*FlowMod) HardTimeout ¶
func (*FlowMod) IdleTimeout ¶
func (*FlowMod) MarshalBinary ¶
func (*FlowMod) SetCookieMask ¶
func (*FlowMod) SetFlowInstruction ¶
func (r *FlowMod) SetFlowInstruction(inst openflow.Instruction)
func (*FlowMod) SetFlowMatch ¶
func (*FlowMod) SetHardTimeout ¶
func (*FlowMod) SetIdleTimeout ¶
func (*FlowMod) SetOutPort ¶
func (*FlowMod) SetPriority ¶
func (*FlowMod) SetTableID ¶
type FlowRemoved ¶
func (FlowRemoved) ByteCount ¶
func (r FlowRemoved) ByteCount() uint64
func (FlowRemoved) Cookie ¶
func (r FlowRemoved) Cookie() uint64
func (FlowRemoved) DurationNanoSec ¶
func (r FlowRemoved) DurationNanoSec() uint32
func (FlowRemoved) DurationSec ¶
func (r FlowRemoved) DurationSec() uint32
func (FlowRemoved) HardTimeout ¶
func (r FlowRemoved) HardTimeout() uint16
func (FlowRemoved) IdleTimeout ¶
func (r FlowRemoved) IdleTimeout() uint16
func (FlowRemoved) Match ¶
func (r FlowRemoved) Match() openflow.Match
func (FlowRemoved) PacketCount ¶
func (r FlowRemoved) PacketCount() uint64
func (FlowRemoved) Priority ¶
func (r FlowRemoved) Priority() uint16
func (FlowRemoved) Reason ¶
func (r FlowRemoved) Reason() uint8
func (FlowRemoved) TableID ¶
func (r FlowRemoved) TableID() uint8
func (*FlowRemoved) UnmarshalBinary ¶
func (r *FlowRemoved) UnmarshalBinary(data []byte) error
type FlowStatsRequest ¶
func (*FlowStatsRequest) Cookie ¶
func (r *FlowStatsRequest) Cookie() uint64
func (*FlowStatsRequest) CookieMask ¶
func (r *FlowStatsRequest) CookieMask() uint64
func (*FlowStatsRequest) Error ¶
func (r *FlowStatsRequest) Error() error
func (*FlowStatsRequest) MarshalBinary ¶
func (r *FlowStatsRequest) MarshalBinary() ([]byte, error)
TODO: Need testing
func (*FlowStatsRequest) Match ¶
func (r *FlowStatsRequest) Match() openflow.Match
func (*FlowStatsRequest) SetCookie ¶
func (r *FlowStatsRequest) SetCookie(cookie uint64)
func (*FlowStatsRequest) SetCookieMask ¶
func (r *FlowStatsRequest) SetCookieMask(mask uint64)
func (*FlowStatsRequest) SetMatch ¶
func (r *FlowStatsRequest) SetMatch(match openflow.Match)
func (*FlowStatsRequest) SetTableID ¶
func (r *FlowStatsRequest) SetTableID(id uint8)
0xFF means all table
func (*FlowStatsRequest) TableID ¶
func (r *FlowStatsRequest) TableID() uint8
type GetConfigReply ¶
func (*GetConfigReply) UnmarshalBinary ¶
func (r *GetConfigReply) UnmarshalBinary(data []byte) error
type GetConfigRequest ¶
func (*GetConfigRequest) MarshalBinary ¶
func (r *GetConfigRequest) MarshalBinary() ([]byte, error)
type Instruction ¶
type Instruction struct {
// contains filtered or unexported fields
}
func (*Instruction) ApplyAction ¶
func (r *Instruction) ApplyAction(act openflow.Action)
func (*Instruction) Error ¶
func (r *Instruction) Error() error
func (*Instruction) GotoTable ¶
func (r *Instruction) GotoTable(tableID uint8)
func (*Instruction) MarshalBinary ¶
func (r *Instruction) MarshalBinary() ([]byte, error)
func (*Instruction) WriteAction ¶
func (r *Instruction) WriteAction(act openflow.Action)
type Match ¶
type Match struct {
// contains filtered or unexported fields
}
func (*Match) IPProtocol ¶
func (*Match) MarshalBinary ¶
func (*Match) SetDstMAC ¶
func (r *Match) SetDstMAC(mac net.HardwareAddr)
func (*Match) SetDstPort ¶
func (*Match) SetEtherType ¶
func (*Match) SetIPProtocol ¶
func (*Match) SetSrcMAC ¶
func (r *Match) SetSrcMAC(mac net.HardwareAddr)
func (*Match) SetSrcPort ¶
func (*Match) SetVLANPriority ¶
func (*Match) SetWildcardDstMAC ¶
func (r *Match) SetWildcardDstMAC()
func (*Match) SetWildcardDstPort ¶
func (r *Match) SetWildcardDstPort()
func (*Match) SetWildcardEtherType ¶
func (r *Match) SetWildcardEtherType()
func (*Match) SetWildcardIPProtocol ¶
func (r *Match) SetWildcardIPProtocol()
func (*Match) SetWildcardInPort ¶
func (r *Match) SetWildcardInPort()
func (*Match) SetWildcardSrcMAC ¶
func (r *Match) SetWildcardSrcMAC()
func (*Match) SetWildcardSrcPort ¶
func (r *Match) SetWildcardSrcPort()
func (*Match) SetWildcardVLANID ¶
func (r *Match) SetWildcardVLANID()
func (*Match) SetWildcardVLANPriority ¶
func (r *Match) SetWildcardVLANPriority()
func (*Match) UnmarshalBinary ¶
func (*Match) VLANPriority ¶
type PacketIn ¶
func (*PacketIn) UnmarshalBinary ¶
type PacketOut ¶
func (*PacketOut) MarshalBinary ¶
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
func (Port) IsAutoNego ¶
func (Port) IsLinkDown ¶
func (Port) IsPortDown ¶
func (Port) MAC ¶
func (r Port) MAC() net.HardwareAddr
func (*Port) UnmarshalBinary ¶
type PortStatus ¶
func (PortStatus) Port ¶
func (r PortStatus) Port() openflow.Port
func (PortStatus) Reason ¶
func (r PortStatus) Reason() openflow.PortReason
func (*PortStatus) UnmarshalBinary ¶
func (r *PortStatus) UnmarshalBinary(data []byte) error
type QueueGetConfigRequest ¶ added in v0.9.0
func (*QueueGetConfigRequest) MarshalBinary ¶ added in v0.9.0
func (r *QueueGetConfigRequest) MarshalBinary() ([]byte, error)
func (*QueueGetConfigRequest) Port ¶ added in v0.9.0
func (r *QueueGetConfigRequest) Port() openflow.OutPort
func (*QueueGetConfigRequest) SetPort ¶ added in v0.9.0
func (r *QueueGetConfigRequest) SetPort(p openflow.OutPort)
type SetConfig ¶
func (*SetConfig) MarshalBinary ¶
type Wildcard ¶
type Wildcard struct { InPort bool /* Switch input port. */ VLANID bool /* VLAN id. */ SrcMAC bool /* Ethernet source address. */ DstMAC bool /* Ethernet destination address. */ EtherType bool /* Ethernet frame type. */ Protocol bool /* IP protocol. */ SrcPort bool /* TCP/UDP source port. */ DstPort bool /* TCP/UDP destination port. */ // IP source address wildcard bit count. 0 is exact match, // 1 ignores the LSB, 2 ignores the 2 least-significant bits, ..., // 32 and higher wildcard the entire field. SrcIP uint8 DstIP uint8 VLANPriority bool /* VLAN priority. */ }
func (*Wildcard) MarshalBinary ¶
func (*Wildcard) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.