of13

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2016 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 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 uint8) 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 NewPortDescRequest

func NewPortDescRequest(xid uint32) openflow.PortDescRequest

func NewQueueGetConfigRequest added in v0.9.0

func NewQueueGetConfigRequest(xid uint32) openflow.QueueGetConfigRequest

func NewSetConfig

func NewSetConfig(xid uint32) openflow.SetConfig

func NewTableFeaturesRequest

func NewTableFeaturesRequest(xid uint32) openflow.TableFeaturesRequest

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 added in v0.9.0

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)

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)

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 PortDescReply

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

func (PortDescReply) Ports

func (r PortDescReply) Ports() []openflow.Port

func (*PortDescReply) UnmarshalBinary

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

type PortDescRequest

type PortDescRequest struct {
	openflow.Message
}

func (*PortDescRequest) MarshalBinary

func (r *PortDescRequest) MarshalBinary() ([]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 QueueGetConfigRequest added in v0.9.0

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

func (*QueueGetConfigRequest) MarshalBinary added in v0.9.0

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

func (*QueueGetConfigRequest) Port added in v0.9.0

func (*QueueGetConfigRequest) SetPort added in v0.9.0

func (r *QueueGetConfigRequest) SetPort(p openflow.OutPort)

type SetConfig

type SetConfig struct {
	openflow.Message
	Config
}

func (*SetConfig) MarshalBinary

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

type TableFeaturesRequest

type TableFeaturesRequest struct {
	openflow.Message
}

func (*TableFeaturesRequest) MarshalBinary

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

Jump to

Keyboard shortcuts

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