of10

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2017 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 NewAction

func NewAction() openflow.Action

func NewBarrierRequest

func NewBarrierRequest(xid uint32) openflow.BarrierRequest

func NewDescRequest

func NewDescRequest(xid uint32) openflow.DescRequest

func NewEchoReply

func NewEchoReply(xid uint32) openflow.EchoReply

func NewEchoRequest

func NewEchoRequest(xid uint32) openflow.EchoRequest

func NewFactory

func NewFactory() openflow.Factory

func NewFeaturesRequest

func NewFeaturesRequest(xid uint32) openflow.FeaturesRequest

func NewFlowMod

func NewFlowMod(xid uint32, cmd uint16) openflow.FlowMod

func NewFlowStatsRequest

func NewFlowStatsRequest(xid uint32) openflow.FlowStatsRequest

func NewGetConfigRequest

func NewGetConfigRequest(xid uint32) openflow.GetConfigRequest

func NewHello

func NewHello(xid uint32) openflow.Hello

func NewMatch

func NewMatch() openflow.Match

NewMatch returns a Match whose fields are all wildcarded

func NewPacketOut

func NewPacketOut(xid uint32) openflow.PacketOut

func NewQueue

func NewQueue() openflow.Queue

func NewQueueGetConfigRequest

func NewQueueGetConfigRequest(xid uint32) openflow.QueueGetConfigRequest

func NewQueueProperty

func NewQueueProperty() openflow.QueueProperty

func NewSetConfig

func NewSetConfig(xid uint32) openflow.SetConfig

Types

type Action

type Action struct {
	*openflow.BaseAction
}

func (*Action) MarshalBinary

func (r *Action) MarshalBinary() ([]byte, error)

func (*Action) UnmarshalBinary

func (r *Action) UnmarshalBinary(data []byte) error

type BarrierReply

type BarrierReply struct {
	openflow.Message
}

func (*BarrierReply) UnmarshalBinary

func (r *BarrierReply) UnmarshalBinary(data []byte) error

type BarrierRequest

type BarrierRequest struct {
	openflow.Message
}

func (*BarrierRequest) MarshalBinary

func (r *BarrierRequest) MarshalBinary() ([]byte, error)

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (*Config) Error

func (r *Config) Error() error

func (*Config) Flags

func (r *Config) Flags() openflow.ConfigFlag

func (*Config) MissSendLength

func (r *Config) MissSendLength() uint16

func (*Config) SetFlags

func (r *Config) SetFlags(flags openflow.ConfigFlag)

func (*Config) SetMissSendLength

func (r *Config) SetMissSendLength(length uint16)

type DescReply

type DescReply struct {
	openflow.Message
	// contains filtered or unexported fields
}

func (DescReply) Description

func (r DescReply) Description() string

func (DescReply) Hardware

func (r DescReply) Hardware() string

func (DescReply) Manufacturer

func (r DescReply) Manufacturer() string

func (DescReply) Serial

func (r DescReply) Serial() string

func (DescReply) Software

func (r DescReply) Software() string

func (*DescReply) UnmarshalBinary

func (r *DescReply) UnmarshalBinary(data []byte) error

type DescRequest

type DescRequest struct {
	openflow.Message
}

func (*DescRequest) MarshalBinary

func (r *DescRequest) MarshalBinary() ([]byte, error)

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Concrete factory

func (*Factory) NewAction

func (r *Factory) NewAction() (openflow.Action, error)

func (*Factory) NewBarrierReply

func (r *Factory) NewBarrierReply() (openflow.BarrierReply, error)

func (*Factory) NewBarrierRequest

func (r *Factory) NewBarrierRequest() (openflow.BarrierRequest, error)

func (*Factory) NewDescReply

func (r *Factory) NewDescReply() (openflow.DescReply, error)

func (*Factory) NewDescRequest

func (r *Factory) NewDescRequest() (openflow.DescRequest, error)

func (*Factory) NewEchoReply

func (r *Factory) NewEchoReply() (openflow.EchoReply, error)

func (*Factory) NewEchoRequest

func (r *Factory) NewEchoRequest() (openflow.EchoRequest, error)

func (*Factory) NewError

func (r *Factory) NewError() (openflow.Error, 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 (r *Factory) NewFlowMod(cmd openflow.FlowModCmd) (openflow.FlowMod, error)

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) NewHello

func (r *Factory) NewHello() (openflow.Hello, error)

func (*Factory) NewInstruction

func (r *Factory) NewInstruction() (openflow.Instruction, error)

func (*Factory) NewMatch

func (r *Factory) NewMatch() (openflow.Match, error)

func (*Factory) NewPacketIn

func (r *Factory) NewPacketIn() (openflow.PacketIn, error)

func (*Factory) NewPacketOut

func (r *Factory) NewPacketOut() (openflow.PacketOut, 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) NewSetConfig

func (r *Factory) NewSetConfig() (openflow.SetConfig, error)

func (*Factory) NewTableFeaturesRequest

func (r *Factory) NewTableFeaturesRequest() (openflow.TableFeaturesRequest, error)

func (*Factory) ProtocolVersion added in v0.13.0

func (r *Factory) ProtocolVersion() uint8

type FeaturesReply

type FeaturesReply struct {
	openflow.Message
	// contains filtered or unexported fields
}

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

type FeaturesRequest struct {
	openflow.Message
}

func (*FeaturesRequest) MarshalBinary

func (r *FeaturesRequest) MarshalBinary() ([]byte, error)

type FlowMod

type FlowMod struct {
	openflow.Message
	// contains filtered or unexported fields
}

func (*FlowMod) Cookie

func (r *FlowMod) Cookie() uint64

func (*FlowMod) CookieMask

func (r *FlowMod) CookieMask() uint64

func (*FlowMod) Error

func (r *FlowMod) Error() error

func (*FlowMod) FlowInstruction

func (r *FlowMod) FlowInstruction() openflow.Instruction

func (*FlowMod) FlowMatch

func (r *FlowMod) FlowMatch() openflow.Match

func (*FlowMod) HardTimeout

func (r *FlowMod) HardTimeout() uint16

func (*FlowMod) IdleTimeout

func (r *FlowMod) IdleTimeout() uint16

func (*FlowMod) MarshalBinary

func (r *FlowMod) MarshalBinary() ([]byte, error)

func (*FlowMod) OutPort

func (r *FlowMod) OutPort() openflow.OutPort

func (*FlowMod) Priority

func (r *FlowMod) Priority() uint16

func (*FlowMod) SetCookie

func (r *FlowMod) SetCookie(cookie uint64)

func (*FlowMod) SetCookieMask

func (r *FlowMod) SetCookieMask(mask uint64)

func (*FlowMod) SetFlowInstruction

func (r *FlowMod) SetFlowInstruction(inst openflow.Instruction)

func (*FlowMod) SetFlowMatch

func (r *FlowMod) SetFlowMatch(match openflow.Match)

func (*FlowMod) SetHardTimeout

func (r *FlowMod) SetHardTimeout(timeout uint16)

func (*FlowMod) SetIdleTimeout

func (r *FlowMod) SetIdleTimeout(timeout uint16)

func (*FlowMod) SetOutPort

func (r *FlowMod) SetOutPort(p openflow.OutPort)

func (*FlowMod) SetPriority

func (r *FlowMod) SetPriority(priority uint16)

func (*FlowMod) SetTableID

func (r *FlowMod) SetTableID(id uint8)

func (*FlowMod) TableID

func (r *FlowMod) TableID() uint8

type FlowRemoved

type FlowRemoved struct {
	openflow.Message
	// contains filtered or unexported fields
}

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

type FlowStatsRequest struct {
	openflow.Message
	// contains filtered or unexported fields
}

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

type GetConfigReply struct {
	openflow.Message
	Config
}

func (*GetConfigReply) UnmarshalBinary

func (r *GetConfigReply) UnmarshalBinary(data []byte) error

type GetConfigRequest

type GetConfigRequest struct {
	openflow.Message
}

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) DstIP

func (r *Match) DstIP() *net.IPNet

func (*Match) DstMAC

func (r *Match) DstMAC() (wildcard bool, mac net.HardwareAddr)

func (*Match) DstPort

func (r *Match) DstPort() (wildcard bool, port uint16)

func (*Match) Error

func (r *Match) Error() error

func (*Match) EtherType

func (r *Match) EtherType() (wildcard bool, etherType uint16)

func (*Match) IPProtocol

func (r *Match) IPProtocol() (wildcard bool, protocol uint8)

func (*Match) InPort

func (r *Match) InPort() (wildcard bool, inport openflow.InPort)

func (*Match) MarshalBinary

func (r *Match) MarshalBinary() ([]byte, error)

func (*Match) SetDstIP

func (r *Match) SetDstIP(ip *net.IPNet)

func (*Match) SetDstMAC

func (r *Match) SetDstMAC(mac net.HardwareAddr)

func (*Match) SetDstPort

func (r *Match) SetDstPort(p uint16)

func (*Match) SetEtherType

func (r *Match) SetEtherType(t uint16)

func (*Match) SetIPProtocol

func (r *Match) SetIPProtocol(p uint8)

func (*Match) SetInPort

func (r *Match) SetInPort(port openflow.InPort)

func (*Match) SetSrcIP

func (r *Match) SetSrcIP(ip *net.IPNet)

func (*Match) SetSrcMAC

func (r *Match) SetSrcMAC(mac net.HardwareAddr)

func (*Match) SetSrcPort

func (r *Match) SetSrcPort(p uint16)

func (*Match) SetVLANID

func (r *Match) SetVLANID(id uint16)

func (*Match) SetVLANPriority

func (r *Match) SetVLANPriority(p uint8)

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) SrcIP

func (r *Match) SrcIP() *net.IPNet

func (*Match) SrcMAC

func (r *Match) SrcMAC() (wildcard bool, mac net.HardwareAddr)

func (*Match) SrcPort

func (r *Match) SrcPort() (wildcard bool, port uint16)

func (*Match) UnmarshalBinary

func (r *Match) UnmarshalBinary(data []byte) error

func (*Match) VLANID

func (r *Match) VLANID() (wildcard bool, vlanID uint16)

func (*Match) VLANPriority

func (r *Match) VLANPriority() (wildcard bool, priority uint8)

type PacketIn

type PacketIn struct {
	openflow.Message
	// contains filtered or unexported fields
}

func (PacketIn) BufferID

func (r PacketIn) BufferID() uint32

func (PacketIn) Cookie

func (r PacketIn) Cookie() uint64

func (PacketIn) Data

func (r PacketIn) Data() []byte

func (PacketIn) InPort

func (r PacketIn) InPort() uint32

func (PacketIn) Length

func (r PacketIn) Length() uint16

func (PacketIn) Reason

func (r PacketIn) Reason() uint8

func (PacketIn) TableID

func (r PacketIn) TableID() uint8

func (*PacketIn) UnmarshalBinary

func (r *PacketIn) UnmarshalBinary(data []byte) error

type PacketOut

type PacketOut struct {
	openflow.Message
	// contains filtered or unexported fields
}

func (*PacketOut) Action

func (r *PacketOut) Action() openflow.Action

func (*PacketOut) Data

func (r *PacketOut) Data() []byte

func (*PacketOut) Error

func (r *PacketOut) Error() error

func (*PacketOut) InPort

func (r *PacketOut) InPort() openflow.InPort

func (*PacketOut) MarshalBinary

func (r *PacketOut) MarshalBinary() ([]byte, error)

func (*PacketOut) SetAction

func (r *PacketOut) SetAction(action openflow.Action)

func (*PacketOut) SetData

func (r *PacketOut) SetData(data []byte)

func (*PacketOut) SetInPort

func (r *PacketOut) SetInPort(port openflow.InPort)

type Port

type Port struct {
	// contains filtered or unexported fields
}

func (Port) IsAutoNego

func (r Port) IsAutoNego() bool

func (Port) IsCopper

func (r Port) IsCopper() bool

func (Port) IsFiber

func (r Port) IsFiber() bool

func (Port) IsLinkDown

func (r Port) IsLinkDown() bool

func (Port) IsPortDown

func (r Port) IsPortDown() bool

func (Port) MAC

func (r Port) MAC() net.HardwareAddr

func (Port) Name

func (r Port) Name() string

func (Port) Number

func (r Port) Number() uint32

func (Port) Speed

func (r Port) Speed() uint64

func (*Port) UnmarshalBinary

func (r *Port) UnmarshalBinary(data []byte) error

type PortStatus

type PortStatus struct {
	openflow.Message
	// contains filtered or unexported fields
}

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) ID

func (r *Queue) ID() uint32

func (*Queue) Length

func (r *Queue) Length() uint16

func (*Queue) Port

func (r *Queue) Port() uint32

func (*Queue) Property

func (r *Queue) Property() []openflow.QueueProperty

func (*Queue) UnmarshalBinary

func (r *Queue) UnmarshalBinary(data []byte) error

type QueueGetConfigReply

type QueueGetConfigReply struct {
	openflow.Message
	// contains filtered or unexported fields
}

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

type QueueGetConfigRequest struct {
	openflow.Message
	// contains filtered or unexported fields
}

func (*QueueGetConfigRequest) MarshalBinary

func (r *QueueGetConfigRequest) MarshalBinary() ([]byte, error)

func (*QueueGetConfigRequest) Port

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 (*QueueProperty) UnmarshalBinary

func (r *QueueProperty) UnmarshalBinary(data []byte) error

type SetConfig

type SetConfig struct {
	openflow.Message
	Config
}

func (*SetConfig) MarshalBinary

func (r *SetConfig) MarshalBinary() ([]byte, error)

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 (r *Wildcard) MarshalBinary() ([]byte, error)

func (*Wildcard) UnmarshalBinary

func (r *Wildcard) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL