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 uint8) 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 NewPortDescRequest(xid uint32) openflow.PortDescRequest
- func NewQueue() openflow.Queue
- func NewQueueGetConfigRequest(xid uint32) openflow.QueueGetConfigRequest
- func NewQueueProperty() openflow.QueueProperty
- func NewSetConfig(xid uint32) openflow.SetConfig
- func NewTableFeaturesRequest(xid uint32) openflow.TableFeaturesRequest
- 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 PortDescReply
- type PortDescRequest
- type PortStatus
- type Queue
- type QueueGetConfigReply
- type QueueGetConfigRequest
- type QueueProperty
- type SetConfig
- type TableFeaturesRequest
Constants ¶
View Source
const ( /* Immutable messages. */ OFPT_HELLO uint8 = iota /* Symmetric message */ OFPT_ERROR /* Symmetric message */ OFPT_ECHO_REQUEST /* Symmetric message */ OFPT_ECHO_REPLY /* Symmetric message */ OFPT_EXPERIMENTER /* Symmetric message */ /* Switch configuration messages. */ OFPT_FEATURES_REQUEST /* Controller/switch message */ OFPT_FEATURES_REPLY /* Controller/switch message */ OFPT_GET_CONFIG_REQUEST /* Controller/switch message */ OFPT_GET_CONFIG_REPLY /* Controller/switch message */ OFPT_SET_CONFIG /* Controller/switch message */ /* Asynchronous messages. */ OFPT_PACKET_IN /* Async message */ OFPT_FLOW_REMOVED /* Async message */ OFPT_PORT_STATUS /* Async message */ /* Controller command messages. */ OFPT_PACKET_OUT /* Controller/switch message */ OFPT_FLOW_MOD /* Controller/switch message */ OFPT_GROUP_MOD /* Controller/switch message */ OFPT_PORT_MOD /* Controller/switch message */ OFPT_TABLE_MOD /* Controller/switch message */ /* Multipart messages. */ OFPT_MULTIPART_REQUEST /* Controller/switch message */ OFPT_MULTIPART_REPLY /* Controller/switch message */ /* Barrier messages. */ OFPT_BARRIER_REQUEST /* Controller/switch message */ OFPT_BARRIER_REPLY /* Controller/switch message */ /* Queue Configuration messages. */ OFPT_QUEUE_GET_CONFIG_REQUEST /* Controller/switch message */ OFPT_QUEUE_GET_CONFIG_REPLY /* Controller/switch message */ /* Controller role change request messages. */ OFPT_ROLE_REQUEST /* Controller/switch message */ OFPT_ROLE_REPLY /* Controller/switch message */ /* Asynchronous message configuration. */ OFPT_GET_ASYNC_REQUEST /* Controller/switch message */ OFPT_GET_ASYNC_REPLY /* Controller/switch message */ OFPT_SET_ASYNC /* Controller/switch message */ /* Meters and rate limiters configuration messages. */ OFPT_METER_MOD /* Controller/switch message */ )
View Source
const ( OFPAT_OUTPUT = 0 OFPAT_SET_FIELD = 25 )
View Source
const ( /* Maximum number of physical and logical switch ports. */ OFPP_MAX = 0xffffff00 /* Reserved OpenFlow Port (fake output "ports"). */ OFPP_IN_PORT = 0xfffffff8 OFPP_TABLE = 0xfffffff9 OFPP_NORMAL = 0xfffffffa /* Process with normal L2/L3 switching. */ /* All physical ports in VLAN, except input port and those blocked or link down. */ OFPP_FLOOD = 0xfffffffb OFPP_ALL = 0xfffffffc /* All physical ports except input port. */ OFPP_CONTROLLER = 0xfffffffd /* Send to controller. */ OFPP_LOCAL = 0xfffffffe /* Local openflow "port". */ OFPP_ANY = 0xffffffff /* Wildcard */ )
View Source
const ( OFPXMT_OFB_IN_PORT = iota OFPXMT_OFB_IN_PHY_PORT OFPXMT_OFB_METADATA OFPXMT_OFB_ETH_DST OFPXMT_OFB_ETH_SRC OFPXMT_OFB_ETH_TYPE OFPXMT_OFB_VLAN_VID OFPXMT_OFB_VLAN_PCP OFPXMT_OFB_IP_DSCP OFPXMT_OFB_IP_ECN OFPXMT_OFB_IP_PROTO OFPXMT_OFB_IPV4_SRC OFPXMT_OFB_IPV4_DST OFPXMT_OFB_TCP_SRC OFPXMT_OFB_TCP_DST OFPXMT_OFB_UDP_SRC OFPXMT_OFB_UDP_DST OFPXMT_OFB_SCTP_SRC OFPXMT_OFB_SCTP_DST OFPXMT_OFB_ICMPV4_TYPE OFPXMT_OFB_ICMPV4_CODE OFPXMT_OFB_ARP_OP OFPXMT_OFB_ARP_SPA OFPXMT_OFB_ARP_TPA OFPXMT_OFB_ARP_SHA OFPXMT_OFB_ARP_THA OFPXMT_OFB_IPV6_SRC OFPXMT_OFB_IPV6_DST OFPXMT_OFB_IPV6_FLABEL OFPXMT_OFB_ICMPV6_TYPE OFPXMT_OFB_ICMPV6_CODE OFPXMT_OFB_IPV6_ND_TARGET OFPXMT_OFB_IPV6_ND_SLL OFPXMT_OFB_IPV6_ND_TLL OFPXMT_OFB_MPLS_LABEL OFPXMT_OFB_MPLS_TC OFPXMT_OFP_MPLS_BOS OFPXMT_OFB_PBB_ISID OFPXMT_OFB_TUNNEL_ID OFPXMT_OFB_IPV6_EXTHDR )
View Source
const ( OFPMT_STANDARD = 0 OFPMT_OXM = 1 )
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 ( 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_RESET_COUNTS = 1 << 2 /* Reset flow packet and byte counts. */ OFPFF_NO_PKT_COUNTS = 1 << 3 /* Don't keep track of packet count. */ OFPFF_NO_BYT_COUNTS = 1 << 4 /* Don't keep track of byte count. */ )
View Source
const ( OFPPC_PORT_DOWN = 1 << 0 /* Port is administratively down. */ OFPPC_NO_RECV = 1 << 2 OFPPC_NO_FWD = 1 << 5 OFPPC_NO_PACKET_IN = 1 << 6 )
View Source
const ( OFPPS_LINK_DOWN = 1 << 0 /* No physical link present. */ OFPPS_BLOCKED = 1 << 1 OFPPS_LIVE = 1 << 2 )
View Source
const ( OFPPF_10MB_HD = 1 << 0 OFPPF_10MB_FD = 1 << 1 OFPPF_100MB_HD = 1 << 2 OFPPF_100MB_FD = 1 << 3 OFPPF_1GB_HD = 1 << 4 OFPPF_1GB_FD = 1 << 5 OFPPF_10GB_FD = 1 << 6 OFPPF_40GB_FD = 1 << 7 OFPPF_100GB_FD = 1 << 8 OFPPF_1TB_FD = 1 << 9 OFPPF_OTHER = 1 << 10 OFPPF_COPPER = 1 << 11 OFPPF_FIBER = 1 << 12 OFPPF_AUTONEG = 1 << 13 OFPPF_PAUSE = 1 << 14 OFPPF_PAUSE_ASYM = 1 << 15 )
View Source
const ( /* Description of this OpenFlow switch. * The request body is empty. * The reply body is struct ofp_desc. */ OFPMP_DESC = 0 /* Individual flow statistics. * The request body is struct ofp_flow_stats_request. * The reply body is an array of struct ofp_flow_stats. */ OFPMP_FLOW = 1 /* Aggregate flow statistics. * The request body is struct ofp_aggregate_stats_request. * The reply body is struct ofp_aggregate_stats_reply. */ OFPMP_AGGREGATE = 2 /* Flow table statistics. * The request body is empty. * The reply body is an array of struct ofp_table_stats. */ OFPMP_TABLE = 3 /* Port statistics. * The request body is struct ofp_port_stats_request. * The reply body is an array of struct ofp_port_stats. */ OFPMP_PORT_STATS = 4 /* Queue statistics for a port * The request body is struct ofp_queue_stats_request. * The reply body is an array of struct ofp_queue_stats */ OFPMP_QUEUE = 5 /* Group counter statistics. * The request body is struct ofp_group_stats_request. * The reply is an array of struct ofp_group_stats. */ OFPMP_GROUP = 6 /* Group description. * The request body is empty. * The reply body is an array of struct ofp_group_desc_stats. */ OFPMP_GROUP_DESC = 7 /* Group features. * The request body is empty. * The reply body is struct ofp_group_features. */ OFPMP_GROUP_FEATURES = 8 /* Meter statistics. * The request body is struct ofp_meter_multipart_requests. * The reply body is an array of struct ofp_meter_stats. */ OFPMP_METER = 9 /* Meter configuration. * The request body is struct ofp_meter_multipart_requests. * The reply body is an array of struct ofp_meter_config. */ OFPMP_METER_CONFIG = 10 /* Meter features. * The request body is empty. * The reply body is struct ofp_meter_features. */ OFPMP_METER_FEATURES = 11 /* Table features. * The request body is either empty or contains an array of * struct ofp_table_features containing the controller's * desired view of the switch. If the switch is unable to * set the specified view an error is returned. * The reply body is an array of struct ofp_table_features. */ OFPMP_TABLE_FEATURES = 12 /* Port description. * The request body is empty. * The reply body is an array of struct ofp_port. */ OFPMP_PORT_DESC = 13 /* Experimenter extension. * The request and reply bodies begin with * struct ofp_experimenter_multipart_header. * The request and reply bodies are otherwise experimenter-defined. */ OFPMP_EXPERIMENTER = 0xffff )
View Source
const ( OFPC_FRAG_NORMAL = 0 /* No special handling for fragments. */ OFPC_FRAG_DROP = 1 << 0 /* Drop fragments. */ OFPC_FRAG_REASM = 1 << 1 /* Reassemble (only if OFPC_IP_REASM set). */ OFPC_FRAG_MASK = 3 )
View Source
const ( OFPPR_ADD = 0 OFPPR_DELETE = 1 OFPPR_MODIFY = 2 )
View Source
const ( OFPIT_GOTO_TABLE = 1 /* Setup the next table in the lookup pipeline */ OFPIT_WRITE_METADATA = 2 /* Setup the metadata field for use later in pipeline */ OFPIT_WRITE_ACTIONS = 3 /* Write the action(s) onto the datapath action set */ OFPIT_APPLY_ACTIONS = 4 /* Applies the action(s) immediately */ OFPIT_CLEAR_ACTIONS = 5 /* Clears all actions from the datapath action set */ OFPIT_METER = 6 /* Apply meter (rate limiter) */ OFPIT_EXPERIMENTER = 0xFFFF /* Experimenter instruction */ )
View Source
const (
OFPG_ANY = 0xffffffff
)
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 NewPortDescRequest ¶
func NewPortDescRequest(xid uint32) openflow.PortDescRequest
func NewQueueGetConfigRequest ¶
func NewQueueGetConfigRequest(xid uint32) openflow.QueueGetConfigRequest
func NewQueueProperty ¶
func NewQueueProperty() openflow.QueueProperty
func NewSetConfig ¶
func NewTableFeaturesRequest ¶
func NewTableFeaturesRequest(xid uint32) openflow.TableFeaturesRequest
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 ¶
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)
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 PortDescReply ¶
func (PortDescReply) Ports ¶
func (r PortDescReply) Ports() []openflow.Port
func (*PortDescReply) UnmarshalBinary ¶
func (r *PortDescReply) UnmarshalBinary(data []byte) error
type PortDescRequest ¶
func (*PortDescRequest) MarshalBinary ¶
func (r *PortDescRequest) MarshalBinary() ([]byte, error)
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 Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) Property ¶
func (r *Queue) Property() []openflow.QueueProperty
func (*Queue) UnmarshalBinary ¶
type QueueGetConfigReply ¶
func (*QueueGetConfigReply) Port ¶
func (r *QueueGetConfigReply) Port() uint32
func (*QueueGetConfigReply) Queue ¶
func (r *QueueGetConfigReply) Queue() []openflow.Queue
func (*QueueGetConfigReply) UnmarshalBinary ¶
func (r *QueueGetConfigReply) UnmarshalBinary(data []byte) error
type QueueGetConfigRequest ¶
func (*QueueGetConfigRequest) MarshalBinary ¶
func (r *QueueGetConfigRequest) MarshalBinary() ([]byte, error)
func (*QueueGetConfigRequest) Port ¶
func (r *QueueGetConfigRequest) Port() openflow.OutPort
func (*QueueGetConfigRequest) SetPort ¶
func (r *QueueGetConfigRequest) SetPort(p openflow.OutPort)
type QueueProperty ¶
type QueueProperty struct {
// contains filtered or unexported fields
}
QueueGetConfigReply implementations by ksang:
func (*QueueProperty) Data ¶
func (r *QueueProperty) Data() []byte
func (*QueueProperty) Experimenter ¶
func (r *QueueProperty) Experimenter() (uint32, error)
func (*QueueProperty) Length ¶
func (r *QueueProperty) Length() uint16
func (*QueueProperty) Rate ¶
func (r *QueueProperty) Rate() (uint16, error)
func (*QueueProperty) Type ¶
func (r *QueueProperty) Type() openflow.PropertyType
func (*QueueProperty) UnmarshalBinary ¶
func (r *QueueProperty) UnmarshalBinary(data []byte) error
type SetConfig ¶
func (*SetConfig) MarshalBinary ¶
type TableFeaturesRequest ¶
func (*TableFeaturesRequest) MarshalBinary ¶
func (r *TableFeaturesRequest) MarshalBinary() ([]byte, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.