of12

package
v0.0.0-...-8b36eab Latest Latest
Warning

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

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

Documentation

Overview

Automatically generated by Packet Go code generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAction

func IsAction(p packet.Packet) bool

func IsActionOutput

func IsActionOutput(p Action) bool

func IsAggregateStatsReply

func IsAggregateStatsReply(p StatsReply) bool

func IsAggregateStatsRequest

func IsAggregateStatsRequest(p StatsRequest) bool

func IsApplyActions

func IsApplyActions(p Instruction) bool

func IsDescStats

func IsDescStats(p StatsReply) bool

func IsEchoReply

func IsEchoReply(p Header12) bool

func IsEchoRequest

func IsEchoRequest(p Header12) bool

func IsErrorMsg

func IsErrorMsg(p Header12) bool

func IsFeaturesReply

func IsFeaturesReply(p Header12) bool

func IsFeaturesRequest

func IsFeaturesRequest(p Header12) bool

func IsFlowMod

func IsFlowMod(p Header12) bool

func IsFlowRemoved

func IsFlowRemoved(p Header12) bool

func IsFlowStats

func IsFlowStats(p packet.Packet) bool

func IsFlowStatsReply

func IsFlowStatsReply(p StatsReply) bool

func IsFlowStatsRequest

func IsFlowStatsRequest(p StatsRequest) bool

func IsGetConfigRequest

func IsGetConfigRequest(p Header12) bool

func IsHeader12

func IsHeader12(p of.Header) bool

func IsHello

func IsHello(p of.Hello) bool

func IsInstruction

func IsInstruction(p packet.Packet) bool

func IsMatch

func IsMatch(p packet.Packet) bool

func IsOXMatch

func IsOXMatch(p Match) bool

func IsOxmEthDst

func IsOxmEthDst(p OxmField) bool

func IsOxmEthDstMasked

func IsOxmEthDstMasked(p OxmField) bool

func IsOxmEthSrc

func IsOxmEthSrc(p OxmField) bool

func IsOxmEthSrcMasked

func IsOxmEthSrcMasked(p OxmField) bool

func IsOxmEthType

func IsOxmEthType(p OxmField) bool

func IsOxmField

func IsOxmField(p packet.Packet) bool

func IsOxmInPort

func IsOxmInPort(p OxmField) bool

func IsOxmIpProto

func IsOxmIpProto(p OxmField) bool

func IsOxmIpV4Dst

func IsOxmIpV4Dst(p OxmField) bool

func IsOxmIpV4DstMasked

func IsOxmIpV4DstMasked(p OxmField) bool

func IsOxmIpV4Src

func IsOxmIpV4Src(p OxmField) bool

func IsOxmIpV4SrcMasked

func IsOxmIpV4SrcMasked(p OxmField) bool

func IsOxmIpV6Dst

func IsOxmIpV6Dst(p OxmField) bool

func IsOxmIpV6DstMasked

func IsOxmIpV6DstMasked(p OxmField) bool

func IsOxmIpV6Src

func IsOxmIpV6Src(p OxmField) bool

func IsOxmIpV6SrcMasked

func IsOxmIpV6SrcMasked(p OxmField) bool

func IsOxmTcpDst

func IsOxmTcpDst(p OxmField) bool

func IsOxmTcpSrc

func IsOxmTcpSrc(p OxmField) bool

func IsPacketIn

func IsPacketIn(p Header12) bool

func IsPacketOut

func IsPacketOut(p Header12) bool

func IsPacketQueue

func IsPacketQueue(p packet.Packet) bool

func IsPort

func IsPort(p packet.Packet) bool

func IsPortMod

func IsPortMod(p Header12) bool

func IsPortStats

func IsPortStats(p StatsReply) bool

func IsPortStatsRequest

func IsPortStatsRequest(p StatsRequest) bool

func IsPortStatus

func IsPortStatus(p Header12) bool

func IsQueueGetConfigReply

func IsQueueGetConfigReply(p Header12) bool

func IsQueueGetConfigRequest

func IsQueueGetConfigRequest(p Header12) bool

func IsQueuePropHeader

func IsQueuePropHeader(p packet.Packet) bool

func IsQueuePropMinRate

func IsQueuePropMinRate(p QueuePropHeader) bool

func IsQueueStats

func IsQueueStats(p StatsReply) bool

func IsQueueStatsRequest

func IsQueueStatsRequest(p StatsRequest) bool

func IsRoleReply

func IsRoleReply(p Header12) bool

func IsRoleRequest

func IsRoleRequest(p Header12) bool

func IsStatsReply

func IsStatsReply(p Header12) bool

func IsStatsRequest

func IsStatsRequest(p Header12) bool

func IsStdMatch

func IsStdMatch(p Match) bool

func IsSwitchGetConfigReply

func IsSwitchGetConfigReply(p Header12) bool

func IsSwitchSetConfig

func IsSwitchSetConfig(p Header12) bool

func IsTableStats

func IsTableStats(p StatsReply) bool

func IsVendorHeader

func IsVendorHeader(p Header12) bool

Types

type Action

type Action struct {
	packet.Packet
}

func NewAction

func NewAction() Action

func NewActionWithBuf

func NewActionWithBuf(b []byte) Action

func ToAction

func ToAction(p packet.Packet) (Action, error)

func (Action) Clone

func (this Action) Clone() (Action, error)

func (*Action) Init

func (this *Action) Init()

func (Action) Len

func (this Action) Len() uint16

func (Action) LenOffset

func (this Action) LenOffset() int

func (*Action) SetLen

func (this *Action) SetLen(l uint16)

func (*Action) SetType

func (this *Action) SetType(t uint16)

func (Action) Size

func (this Action) Size() int

func (Action) Type

func (this Action) Type() uint16

func (Action) TypeOffset

func (this Action) TypeOffset() int

type ActionConn

type ActionConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewActionConn

func NewActionConn(c net.Conn) ActionConn

func (*ActionConn) Flush

func (c *ActionConn) Flush() error

func (*ActionConn) ReadAction

func (c *ActionConn) ReadAction() (Action, error)

func (*ActionConn) ReadActions

func (c *ActionConn) ReadActions(pkts []Action) (int, error)

func (*ActionConn) WriteAction

func (c *ActionConn) WriteAction(pkt Action) error

func (*ActionConn) WriteActions

func (c *ActionConn) WriteActions(pkts []Action) error

type ActionOutput

type ActionOutput struct {
	Action
}

func NewActionOutput

func NewActionOutput() ActionOutput

func NewActionOutputWithBuf

func NewActionOutputWithBuf(b []byte) ActionOutput

func ToActionOutput

func ToActionOutput(p Action) (ActionOutput, error)

func (ActionOutput) Clone

func (this ActionOutput) Clone() (ActionOutput, error)

func (*ActionOutput) Init

func (this *ActionOutput) Init()

func (ActionOutput) MaxLen

func (this ActionOutput) MaxLen() uint16

func (ActionOutput) MaxLenOffset

func (this ActionOutput) MaxLenOffset() int

func (ActionOutput) Pad

func (this ActionOutput) Pad() [6]uint8

func (ActionOutput) PadOffset

func (this ActionOutput) PadOffset() int

func (ActionOutput) Port

func (this ActionOutput) Port() uint32

func (ActionOutput) PortOffset

func (this ActionOutput) PortOffset() int

func (*ActionOutput) SetMaxLen

func (this *ActionOutput) SetMaxLen(m uint16)

func (*ActionOutput) SetPad

func (this *ActionOutput) SetPad(p [6]uint8)

func (*ActionOutput) SetPort

func (this *ActionOutput) SetPort(p uint32)

func (ActionOutput) Size

func (this ActionOutput) Size() int

type ActionOutputConn

type ActionOutputConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewActionOutputConn

func NewActionOutputConn(c net.Conn) ActionOutputConn

func (*ActionOutputConn) Flush

func (c *ActionOutputConn) Flush() error

func (*ActionOutputConn) ReadActionOutput

func (c *ActionOutputConn) ReadActionOutput() (ActionOutput, error)

func (*ActionOutputConn) ReadActionOutputs

func (c *ActionOutputConn) ReadActionOutputs(pkts []ActionOutput) (int, error)

func (*ActionOutputConn) WriteActionOutput

func (c *ActionOutputConn) WriteActionOutput(pkt ActionOutput) error

func (*ActionOutputConn) WriteActionOutputs

func (c *ActionOutputConn) WriteActionOutputs(pkts []ActionOutput) error

type ActionType

type ActionType int
const (
	PAT_OUTPUT       ActionType = 0
	PAT_COPY_TTL_OUT ActionType = 11
	PAT_COPY_TTL_IN  ActionType = 12
	PAT_SET_MPLS_TTL ActionType = 15
	PAT_DEC_MPLS_TTL ActionType = 16
	PAT_PUSH_VLAN    ActionType = 17
	PAT_POP_VLAN     ActionType = 18
	PAT_PUSH_MPLS    ActionType = 19
	PAT_POP_MPLS     ActionType = 20
	PAT_SET_QUEUE    ActionType = 21
	PAT_GROUP        ActionType = 22
	PAT_SET_NW_TTL   ActionType = 23
	PAT_DEC_NW_TTL   ActionType = 24
	PAT_SET_FIELD    ActionType = 25
	PAT_EXPERIMENTER ActionType = 65535
)

type AggregateStatsReply

type AggregateStatsReply struct {
	StatsReply
}

func NewAggregateStatsReply

func NewAggregateStatsReply() AggregateStatsReply

func NewAggregateStatsReplyWithBuf

func NewAggregateStatsReplyWithBuf(b []byte) AggregateStatsReply

func ToAggregateStatsReply

func ToAggregateStatsReply(p StatsReply) (AggregateStatsReply, error)

func (AggregateStatsReply) ByteCount

func (this AggregateStatsReply) ByteCount() uint64

func (AggregateStatsReply) ByteCountOffset

func (this AggregateStatsReply) ByteCountOffset() int

func (AggregateStatsReply) Clone

func (AggregateStatsReply) FlowCount

func (this AggregateStatsReply) FlowCount() uint32

func (AggregateStatsReply) FlowCountOffset

func (this AggregateStatsReply) FlowCountOffset() int

func (*AggregateStatsReply) Init

func (this *AggregateStatsReply) Init()

func (AggregateStatsReply) PacketCount

func (this AggregateStatsReply) PacketCount() uint64

func (AggregateStatsReply) PacketCountOffset

func (this AggregateStatsReply) PacketCountOffset() int

func (AggregateStatsReply) Pad

func (this AggregateStatsReply) Pad() [4]uint8

func (AggregateStatsReply) PadOffset

func (this AggregateStatsReply) PadOffset() int

func (*AggregateStatsReply) SetByteCount

func (this *AggregateStatsReply) SetByteCount(b uint64)

func (*AggregateStatsReply) SetFlowCount

func (this *AggregateStatsReply) SetFlowCount(f uint32)

func (*AggregateStatsReply) SetPacketCount

func (this *AggregateStatsReply) SetPacketCount(p uint64)

func (*AggregateStatsReply) SetPad

func (this *AggregateStatsReply) SetPad(p [4]uint8)

func (AggregateStatsReply) Size

func (this AggregateStatsReply) Size() int

type AggregateStatsReplyConn

type AggregateStatsReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewAggregateStatsReplyConn

func NewAggregateStatsReplyConn(c net.Conn) AggregateStatsReplyConn

func (*AggregateStatsReplyConn) Flush

func (c *AggregateStatsReplyConn) Flush() error

func (*AggregateStatsReplyConn) ReadAggregateStatsReply

func (c *AggregateStatsReplyConn) ReadAggregateStatsReply() (AggregateStatsReply, error)

func (*AggregateStatsReplyConn) ReadAggregateStatsReplys

func (c *AggregateStatsReplyConn) ReadAggregateStatsReplys(pkts []AggregateStatsReply) (int, error)

func (*AggregateStatsReplyConn) WriteAggregateStatsReply

func (c *AggregateStatsReplyConn) WriteAggregateStatsReply(pkt AggregateStatsReply) error

func (*AggregateStatsReplyConn) WriteAggregateStatsReplys

func (c *AggregateStatsReplyConn) WriteAggregateStatsReplys(pkts []AggregateStatsReply) error

type AggregateStatsRequest

type AggregateStatsRequest struct {
	StatsRequest
}

func NewAggregateStatsRequest

func NewAggregateStatsRequest() AggregateStatsRequest

func NewAggregateStatsRequestWithBuf

func NewAggregateStatsRequestWithBuf(b []byte) AggregateStatsRequest

func ToAggregateStatsRequest

func ToAggregateStatsRequest(p StatsRequest) (AggregateStatsRequest, error)

func (AggregateStatsRequest) Clone

func (*AggregateStatsRequest) Init

func (this *AggregateStatsRequest) Init()

func (AggregateStatsRequest) Match

func (this AggregateStatsRequest) Match() Match

func (AggregateStatsRequest) MatchOffset

func (this AggregateStatsRequest) MatchOffset() int

func (AggregateStatsRequest) MatchSize

func (this AggregateStatsRequest) MatchSize() int

func (AggregateStatsRequest) OutPort

func (this AggregateStatsRequest) OutPort() uint16

func (AggregateStatsRequest) OutPortOffset

func (this AggregateStatsRequest) OutPortOffset() int

func (AggregateStatsRequest) Pad

func (this AggregateStatsRequest) Pad() uint8

func (AggregateStatsRequest) PadOffset

func (this AggregateStatsRequest) PadOffset() int

func (*AggregateStatsRequest) SetMatch

func (this *AggregateStatsRequest) SetMatch(m Match)

func (*AggregateStatsRequest) SetOutPort

func (this *AggregateStatsRequest) SetOutPort(o uint16)

func (*AggregateStatsRequest) SetPad

func (this *AggregateStatsRequest) SetPad(p uint8)

func (*AggregateStatsRequest) SetTableId

func (this *AggregateStatsRequest) SetTableId(t uint8)

func (AggregateStatsRequest) Size

func (this AggregateStatsRequest) Size() int

func (AggregateStatsRequest) TableId

func (this AggregateStatsRequest) TableId() uint8

func (AggregateStatsRequest) TableIdOffset

func (this AggregateStatsRequest) TableIdOffset() int

type AggregateStatsRequestConn

type AggregateStatsRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewAggregateStatsRequestConn

func NewAggregateStatsRequestConn(c net.Conn) AggregateStatsRequestConn

func (*AggregateStatsRequestConn) Flush

func (c *AggregateStatsRequestConn) Flush() error

func (*AggregateStatsRequestConn) ReadAggregateStatsRequest

func (c *AggregateStatsRequestConn) ReadAggregateStatsRequest() (AggregateStatsRequest, error)

func (*AggregateStatsRequestConn) ReadAggregateStatsRequests

func (c *AggregateStatsRequestConn) ReadAggregateStatsRequests(pkts []AggregateStatsRequest) (int, error)

func (*AggregateStatsRequestConn) WriteAggregateStatsRequest

func (c *AggregateStatsRequestConn) WriteAggregateStatsRequest(pkt AggregateStatsRequest) error

func (*AggregateStatsRequestConn) WriteAggregateStatsRequests

func (c *AggregateStatsRequestConn) WriteAggregateStatsRequests(pkts []AggregateStatsRequest) error

type ApplyActions

type ApplyActions struct {
	Instruction
}

func NewApplyActions

func NewApplyActions() ApplyActions

func NewApplyActionsWithBuf

func NewApplyActionsWithBuf(b []byte) ApplyActions

func ToApplyActions

func ToApplyActions(p Instruction) (ApplyActions, error)

func (ApplyActions) Actions

func (this ApplyActions) Actions() []Action

func (ApplyActions) ActionsOffset

func (this ApplyActions) ActionsOffset() int

func (ApplyActions) ActionsSize

func (this ApplyActions) ActionsSize() int

func (*ApplyActions) AddActions

func (this *ApplyActions) AddActions(a Action)

func (ApplyActions) Clone

func (this ApplyActions) Clone() (ApplyActions, error)

func (*ApplyActions) Init

func (this *ApplyActions) Init()

func (ApplyActions) Pad

func (this ApplyActions) Pad() [4]uint8

func (ApplyActions) PadOffset

func (this ApplyActions) PadOffset() int

func (*ApplyActions) SetPad

func (this *ApplyActions) SetPad(p [4]uint8)

func (ApplyActions) Size

func (this ApplyActions) Size() int

type ApplyActionsConn

type ApplyActionsConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewApplyActionsConn

func NewApplyActionsConn(c net.Conn) ApplyActionsConn

func (*ApplyActionsConn) Flush

func (c *ApplyActionsConn) Flush() error

func (*ApplyActionsConn) ReadApplyActions

func (c *ApplyActionsConn) ReadApplyActions() (ApplyActions, error)

func (*ApplyActionsConn) ReadApplyActionss

func (c *ApplyActionsConn) ReadApplyActionss(pkts []ApplyActions) (int, error)

func (*ApplyActionsConn) WriteApplyActions

func (c *ApplyActionsConn) WriteApplyActions(pkt ApplyActions) error

func (*ApplyActionsConn) WriteApplyActionss

func (c *ApplyActionsConn) WriteApplyActionss(pkts []ApplyActions) error

type BadActionCode

type BadActionCode int
const (
	PBAC_BAD_TYPE        BadActionCode = 0
	PBAC_BAD_LEN         BadActionCode = 1
	PBAC_BAD_VENDOR      BadActionCode = 2
	PBAC_BAD_VENDOR_TYPE BadActionCode = 3
	PBAC_BAD_OUT_PORT    BadActionCode = 4
	PBAC_BAD_ARGUMENT    BadActionCode = 5
	PBAC_EPERM           BadActionCode = 6
	PBAC_TOO_MANY        BadActionCode = 7
	PBAC_BAD_QUEUE       BadActionCode = 8
)

type BadRequestCode

type BadRequestCode int
const (
	PBRC_BAD_VERSION    BadRequestCode = 0
	PBRC_BAD_TYPE       BadRequestCode = 1
	PBRC_BAD_STAT       BadRequestCode = 2
	PBRC_BAD_VENDOR     BadRequestCode = 3
	PBRC_BAD_SUBTYPE    BadRequestCode = 4
	PBRC_EPERM          BadRequestCode = 5
	PBRC_BAD_LEN        BadRequestCode = 6
	PBRC_BUFFER_EMPTY   BadRequestCode = 7
	PBRC_BUFFER_UNKNOWN BadRequestCode = 8
)

type Buffers

type Buffers int
const (
	P_NO_BUFFER Buffers = 4294967295
)

type Capabilities

type Capabilities int
const (
	PC_FLOW_STATS   Capabilities = 1
	PC_TABLE_STATS  Capabilities = 2
	PC_PORT_STATS   Capabilities = 4
	PC_STP          Capabilities = 8
	PC_RESERVED     Capabilities = 16
	PC_IP_REASM     Capabilities = 32
	PC_QUEUE_STATS  Capabilities = 64
	PC_ARP_MATCH_IP Capabilities = 128
)

type ConfigFlags

type ConfigFlags int
const (
	PC_FRAG_NORMAL               ConfigFlags = 0
	PC_FRAG_DROP                 ConfigFlags = 1
	PC_FRAG_REASM                ConfigFlags = 2
	PC_FRAG_MASK                 ConfigFlags = 3
	PC_INVALID_TTL_TO_CONTROLLER ConfigFlags = 4
)

type ControllerRole

type ControllerRole int
const (
	ROLE_NOCHANGE ControllerRole = 0
	ROLE_EQUAL    ControllerRole = 1
	ROLE_MASTER   ControllerRole = 2
	ROLE_SLAVE    ControllerRole = 3
)

type DescStats

type DescStats struct {
	StatsReply
}

func NewDescStats

func NewDescStats() DescStats

func NewDescStatsWithBuf

func NewDescStatsWithBuf(b []byte) DescStats

func ToDescStats

func ToDescStats(p StatsReply) (DescStats, error)

func (DescStats) Clone

func (this DescStats) Clone() (DescStats, error)

func (DescStats) DpDesc

func (this DescStats) DpDesc() [256]byte

func (DescStats) DpDescOffset

func (this DescStats) DpDescOffset() int

func (DescStats) HwDesc

func (this DescStats) HwDesc() [256]byte

func (DescStats) HwDescOffset

func (this DescStats) HwDescOffset() int

func (*DescStats) Init

func (this *DescStats) Init()

func (DescStats) MfrDesc

func (this DescStats) MfrDesc() [256]byte

func (DescStats) MfrDescOffset

func (this DescStats) MfrDescOffset() int

func (DescStats) SerialNum

func (this DescStats) SerialNum() [32]byte

func (DescStats) SerialNumOffset

func (this DescStats) SerialNumOffset() int

func (*DescStats) SetDpDesc

func (this *DescStats) SetDpDesc(d [256]byte)

func (*DescStats) SetHwDesc

func (this *DescStats) SetHwDesc(h [256]byte)

func (*DescStats) SetMfrDesc

func (this *DescStats) SetMfrDesc(m [256]byte)

func (*DescStats) SetSerialNum

func (this *DescStats) SetSerialNum(s [32]byte)

func (*DescStats) SetSwDesc

func (this *DescStats) SetSwDesc(s [256]byte)

func (DescStats) Size

func (this DescStats) Size() int

func (DescStats) SwDesc

func (this DescStats) SwDesc() [256]byte

func (DescStats) SwDescOffset

func (this DescStats) SwDescOffset() int

type DescStatsConn

type DescStatsConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewDescStatsConn

func NewDescStatsConn(c net.Conn) DescStatsConn

func (*DescStatsConn) Flush

func (c *DescStatsConn) Flush() error

func (*DescStatsConn) ReadDescStats

func (c *DescStatsConn) ReadDescStats() (DescStats, error)

func (*DescStatsConn) ReadDescStatss

func (c *DescStatsConn) ReadDescStatss(pkts []DescStats) (int, error)

func (*DescStatsConn) WriteDescStats

func (c *DescStatsConn) WriteDescStats(pkt DescStats) error

func (*DescStatsConn) WriteDescStatss

func (c *DescStatsConn) WriteDescStatss(pkts []DescStats) error

type DescStatsConstants

type DescStatsConstants int
const (
	SERIAL_NUM_LEN DescStatsConstants = 32
	DESC_STR_LEN   DescStatsConstants = 256
)

type EchoReply

type EchoReply struct {
	Header12
}

func NewEchoReply

func NewEchoReply() EchoReply

func NewEchoReplyWithBuf

func NewEchoReplyWithBuf(b []byte) EchoReply

func ToEchoReply

func ToEchoReply(p Header12) (EchoReply, error)

func (EchoReply) Clone

func (this EchoReply) Clone() (EchoReply, error)

func (*EchoReply) Init

func (this *EchoReply) Init()

func (EchoReply) Size

func (this EchoReply) Size() int

type EchoReplyConn

type EchoReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewEchoReplyConn

func NewEchoReplyConn(c net.Conn) EchoReplyConn

func (*EchoReplyConn) Flush

func (c *EchoReplyConn) Flush() error

func (*EchoReplyConn) ReadEchoReply

func (c *EchoReplyConn) ReadEchoReply() (EchoReply, error)

func (*EchoReplyConn) ReadEchoReplys

func (c *EchoReplyConn) ReadEchoReplys(pkts []EchoReply) (int, error)

func (*EchoReplyConn) WriteEchoReply

func (c *EchoReplyConn) WriteEchoReply(pkt EchoReply) error

func (*EchoReplyConn) WriteEchoReplys

func (c *EchoReplyConn) WriteEchoReplys(pkts []EchoReply) error

type EchoRequest

type EchoRequest struct {
	Header12
}

func NewEchoRequest

func NewEchoRequest() EchoRequest

func NewEchoRequestWithBuf

func NewEchoRequestWithBuf(b []byte) EchoRequest

func ToEchoRequest

func ToEchoRequest(p Header12) (EchoRequest, error)

func (EchoRequest) Clone

func (this EchoRequest) Clone() (EchoRequest, error)

func (*EchoRequest) Init

func (this *EchoRequest) Init()

func (EchoRequest) Size

func (this EchoRequest) Size() int

type EchoRequestConn

type EchoRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewEchoRequestConn

func NewEchoRequestConn(c net.Conn) EchoRequestConn

func (*EchoRequestConn) Flush

func (c *EchoRequestConn) Flush() error

func (*EchoRequestConn) ReadEchoRequest

func (c *EchoRequestConn) ReadEchoRequest() (EchoRequest, error)

func (*EchoRequestConn) ReadEchoRequests

func (c *EchoRequestConn) ReadEchoRequests(pkts []EchoRequest) (int, error)

func (*EchoRequestConn) WriteEchoRequest

func (c *EchoRequestConn) WriteEchoRequest(pkt EchoRequest) error

func (*EchoRequestConn) WriteEchoRequests

func (c *EchoRequestConn) WriteEchoRequests(pkts []EchoRequest) error

type ErrorMsg

type ErrorMsg struct {
	Header12
}

func NewErrorMsg

func NewErrorMsg() ErrorMsg

func NewErrorMsgWithBuf

func NewErrorMsgWithBuf(b []byte) ErrorMsg

func ToErrorMsg

func ToErrorMsg(p Header12) (ErrorMsg, error)

func (*ErrorMsg) AddData

func (this *ErrorMsg) AddData(d uint8)

func (ErrorMsg) Clone

func (this ErrorMsg) Clone() (ErrorMsg, error)

func (ErrorMsg) Code

func (this ErrorMsg) Code() uint16

func (ErrorMsg) CodeOffset

func (this ErrorMsg) CodeOffset() int

func (ErrorMsg) Data

func (this ErrorMsg) Data() []uint8

func (ErrorMsg) DataOffset

func (this ErrorMsg) DataOffset() int

func (ErrorMsg) DataSize

func (this ErrorMsg) DataSize() int

func (ErrorMsg) ErrType

func (this ErrorMsg) ErrType() uint16

func (ErrorMsg) ErrTypeOffset

func (this ErrorMsg) ErrTypeOffset() int

func (*ErrorMsg) Init

func (this *ErrorMsg) Init()

func (*ErrorMsg) SetCode

func (this *ErrorMsg) SetCode(c uint16)

func (*ErrorMsg) SetErrType

func (this *ErrorMsg) SetErrType(e uint16)

func (ErrorMsg) Size

func (this ErrorMsg) Size() int

type ErrorMsgConn

type ErrorMsgConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewErrorMsgConn

func NewErrorMsgConn(c net.Conn) ErrorMsgConn

func (*ErrorMsgConn) Flush

func (c *ErrorMsgConn) Flush() error

func (*ErrorMsgConn) ReadErrorMsg

func (c *ErrorMsgConn) ReadErrorMsg() (ErrorMsg, error)

func (*ErrorMsgConn) ReadErrorMsgs

func (c *ErrorMsgConn) ReadErrorMsgs(pkts []ErrorMsg) (int, error)

func (*ErrorMsgConn) WriteErrorMsg

func (c *ErrorMsgConn) WriteErrorMsg(pkt ErrorMsg) error

func (*ErrorMsgConn) WriteErrorMsgs

func (c *ErrorMsgConn) WriteErrorMsgs(pkts []ErrorMsg) error

type ErrorType

type ErrorType int
const (
	PET_HELLO_FAILED    ErrorType = 0
	PET_BAD_REQUEST     ErrorType = 1
	PET_BAD_ACTION      ErrorType = 2
	PET_FLOW_MOD_FAILED ErrorType = 3
	PET_PORT_MOD_FAILED ErrorType = 4
	PET_QUEUE_OP_FAILED ErrorType = 5
)

type FeaturesReply

type FeaturesReply struct {
	Header12
}

func NewFeaturesReply

func NewFeaturesReply() FeaturesReply

func NewFeaturesReplyWithBuf

func NewFeaturesReplyWithBuf(b []byte) FeaturesReply

func ToFeaturesReply

func ToFeaturesReply(p Header12) (FeaturesReply, error)

func (FeaturesReply) Actions

func (this FeaturesReply) Actions() uint32

func (FeaturesReply) ActionsOffset

func (this FeaturesReply) ActionsOffset() int

func (*FeaturesReply) AddPorts

func (this *FeaturesReply) AddPorts(p Port)

func (FeaturesReply) Capabilities

func (this FeaturesReply) Capabilities() uint32

func (FeaturesReply) CapabilitiesOffset

func (this FeaturesReply) CapabilitiesOffset() int

func (FeaturesReply) Clone

func (this FeaturesReply) Clone() (FeaturesReply, error)

func (FeaturesReply) DatapathId

func (this FeaturesReply) DatapathId() uint64

func (FeaturesReply) DatapathIdOffset

func (this FeaturesReply) DatapathIdOffset() int

func (*FeaturesReply) Init

func (this *FeaturesReply) Init()

func (FeaturesReply) NBuffers

func (this FeaturesReply) NBuffers() uint32

func (FeaturesReply) NBuffersOffset

func (this FeaturesReply) NBuffersOffset() int

func (FeaturesReply) NTables

func (this FeaturesReply) NTables() uint8

func (FeaturesReply) NTablesOffset

func (this FeaturesReply) NTablesOffset() int

func (FeaturesReply) Pad

func (this FeaturesReply) Pad() [3]uint8

func (FeaturesReply) PadOffset

func (this FeaturesReply) PadOffset() int

func (FeaturesReply) Ports

func (this FeaturesReply) Ports() []Port

func (FeaturesReply) PortsOffset

func (this FeaturesReply) PortsOffset() int

func (FeaturesReply) PortsSize

func (this FeaturesReply) PortsSize() int

func (*FeaturesReply) SetActions

func (this *FeaturesReply) SetActions(a uint32)

func (*FeaturesReply) SetCapabilities

func (this *FeaturesReply) SetCapabilities(c uint32)

func (*FeaturesReply) SetDatapathId

func (this *FeaturesReply) SetDatapathId(d uint64)

func (*FeaturesReply) SetNBuffers

func (this *FeaturesReply) SetNBuffers(n uint32)

func (*FeaturesReply) SetNTables

func (this *FeaturesReply) SetNTables(n uint8)

func (*FeaturesReply) SetPad

func (this *FeaturesReply) SetPad(p [3]uint8)

func (FeaturesReply) Size

func (this FeaturesReply) Size() int

type FeaturesReplyConn

type FeaturesReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewFeaturesReplyConn

func NewFeaturesReplyConn(c net.Conn) FeaturesReplyConn

func (*FeaturesReplyConn) Flush

func (c *FeaturesReplyConn) Flush() error

func (*FeaturesReplyConn) ReadFeaturesReply

func (c *FeaturesReplyConn) ReadFeaturesReply() (FeaturesReply, error)

func (*FeaturesReplyConn) ReadFeaturesReplys

func (c *FeaturesReplyConn) ReadFeaturesReplys(pkts []FeaturesReply) (int, error)

func (*FeaturesReplyConn) WriteFeaturesReply

func (c *FeaturesReplyConn) WriteFeaturesReply(pkt FeaturesReply) error

func (*FeaturesReplyConn) WriteFeaturesReplys

func (c *FeaturesReplyConn) WriteFeaturesReplys(pkts []FeaturesReply) error

type FeaturesRequest

type FeaturesRequest struct {
	Header12
}

func NewFeaturesRequest

func NewFeaturesRequest() FeaturesRequest

func NewFeaturesRequestWithBuf

func NewFeaturesRequestWithBuf(b []byte) FeaturesRequest

func ToFeaturesRequest

func ToFeaturesRequest(p Header12) (FeaturesRequest, error)

func (FeaturesRequest) Clone

func (this FeaturesRequest) Clone() (FeaturesRequest, error)

func (*FeaturesRequest) Init

func (this *FeaturesRequest) Init()

func (FeaturesRequest) Size

func (this FeaturesRequest) Size() int

type FeaturesRequestConn

type FeaturesRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewFeaturesRequestConn

func NewFeaturesRequestConn(c net.Conn) FeaturesRequestConn

func (*FeaturesRequestConn) Flush

func (c *FeaturesRequestConn) Flush() error

func (*FeaturesRequestConn) ReadFeaturesRequest

func (c *FeaturesRequestConn) ReadFeaturesRequest() (FeaturesRequest, error)

func (*FeaturesRequestConn) ReadFeaturesRequests

func (c *FeaturesRequestConn) ReadFeaturesRequests(pkts []FeaturesRequest) (int, error)

func (*FeaturesRequestConn) WriteFeaturesRequest

func (c *FeaturesRequestConn) WriteFeaturesRequest(pkt FeaturesRequest) error

func (*FeaturesRequestConn) WriteFeaturesRequests

func (c *FeaturesRequestConn) WriteFeaturesRequests(pkts []FeaturesRequest) error

type FlowMod

type FlowMod struct {
	Header12
}

func NewFlowMod

func NewFlowMod() FlowMod

func NewFlowModWithBuf

func NewFlowModWithBuf(b []byte) FlowMod

func ToFlowMod

func ToFlowMod(p Header12) (FlowMod, error)

func (*FlowMod) AddInstructions

func (this *FlowMod) AddInstructions(i Instruction)

func (FlowMod) BufferId

func (this FlowMod) BufferId() uint32

func (FlowMod) BufferIdOffset

func (this FlowMod) BufferIdOffset() int

func (FlowMod) Clone

func (this FlowMod) Clone() (FlowMod, error)

func (FlowMod) Command

func (this FlowMod) Command() uint8

func (FlowMod) CommandOffset

func (this FlowMod) CommandOffset() int

func (FlowMod) Cookie

func (this FlowMod) Cookie() uint64

func (FlowMod) CookieMask

func (this FlowMod) CookieMask() uint64

func (FlowMod) CookieMaskOffset

func (this FlowMod) CookieMaskOffset() int

func (FlowMod) CookieOffset

func (this FlowMod) CookieOffset() int

func (FlowMod) Flags

func (this FlowMod) Flags() uint16

func (FlowMod) FlagsOffset

func (this FlowMod) FlagsOffset() int

func (FlowMod) HardTimeout

func (this FlowMod) HardTimeout() uint16

func (FlowMod) HardTimeoutOffset

func (this FlowMod) HardTimeoutOffset() int

func (FlowMod) IdleTimeout

func (this FlowMod) IdleTimeout() uint16

func (FlowMod) IdleTimeoutOffset

func (this FlowMod) IdleTimeoutOffset() int

func (*FlowMod) Init

func (this *FlowMod) Init()

func (FlowMod) Instructions

func (this FlowMod) Instructions() []Instruction

func (FlowMod) InstructionsOffset

func (this FlowMod) InstructionsOffset() int

func (FlowMod) InstructionsSize

func (this FlowMod) InstructionsSize() int

func (FlowMod) Match

func (this FlowMod) Match() Match

func (FlowMod) MatchOffset

func (this FlowMod) MatchOffset() int

func (FlowMod) MatchSize

func (this FlowMod) MatchSize() int

func (FlowMod) OutGroup

func (this FlowMod) OutGroup() uint32

func (FlowMod) OutGroupOffset

func (this FlowMod) OutGroupOffset() int

func (FlowMod) OutPort

func (this FlowMod) OutPort() uint32

func (FlowMod) OutPortOffset

func (this FlowMod) OutPortOffset() int

func (FlowMod) Pad

func (this FlowMod) Pad() [2]uint8

func (FlowMod) PadOffset

func (this FlowMod) PadOffset() int

func (FlowMod) Priority

func (this FlowMod) Priority() uint16

func (FlowMod) PriorityOffset

func (this FlowMod) PriorityOffset() int

func (*FlowMod) SetBufferId

func (this *FlowMod) SetBufferId(b uint32)

func (*FlowMod) SetCommand

func (this *FlowMod) SetCommand(c uint8)

func (*FlowMod) SetCookie

func (this *FlowMod) SetCookie(c uint64)

func (*FlowMod) SetCookieMask

func (this *FlowMod) SetCookieMask(c uint64)

func (*FlowMod) SetFlags

func (this *FlowMod) SetFlags(f uint16)

func (*FlowMod) SetHardTimeout

func (this *FlowMod) SetHardTimeout(h uint16)

func (*FlowMod) SetIdleTimeout

func (this *FlowMod) SetIdleTimeout(i uint16)

func (*FlowMod) SetMatch

func (this *FlowMod) SetMatch(m Match)

func (*FlowMod) SetOutGroup

func (this *FlowMod) SetOutGroup(o uint32)

func (*FlowMod) SetOutPort

func (this *FlowMod) SetOutPort(o uint32)

func (*FlowMod) SetPad

func (this *FlowMod) SetPad(p [2]uint8)

func (*FlowMod) SetPriority

func (this *FlowMod) SetPriority(p uint16)

func (*FlowMod) SetTableId

func (this *FlowMod) SetTableId(t uint8)

func (FlowMod) Size

func (this FlowMod) Size() int

func (FlowMod) TableId

func (this FlowMod) TableId() uint8

func (FlowMod) TableIdOffset

func (this FlowMod) TableIdOffset() int

type FlowModCommand

type FlowModCommand int
const (
	PFC_ADD           FlowModCommand = 0
	PFC_MODIFY        FlowModCommand = 1
	PFC_MODIFY_STRICT FlowModCommand = 2
	PFC_DELETE        FlowModCommand = 3
	PFC_DELETE_STRICT FlowModCommand = 4
)

type FlowModConn

type FlowModConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewFlowModConn

func NewFlowModConn(c net.Conn) FlowModConn

func (*FlowModConn) Flush

func (c *FlowModConn) Flush() error

func (*FlowModConn) ReadFlowMod

func (c *FlowModConn) ReadFlowMod() (FlowMod, error)

func (*FlowModConn) ReadFlowMods

func (c *FlowModConn) ReadFlowMods(pkts []FlowMod) (int, error)

func (*FlowModConn) WriteFlowMod

func (c *FlowModConn) WriteFlowMod(pkt FlowMod) error

func (*FlowModConn) WriteFlowMods

func (c *FlowModConn) WriteFlowMods(pkts []FlowMod) error

type FlowModFlags

type FlowModFlags int
const (
	PFF_SEND_FLOW_REM FlowModFlags = 1
	PFF_CHECK_OVERLAP FlowModFlags = 2
	PFF_EMERG         FlowModFlags = 4
)

type FlowRemoved

type FlowRemoved struct {
	Header12
}

func NewFlowRemoved

func NewFlowRemoved() FlowRemoved

func NewFlowRemovedWithBuf

func NewFlowRemovedWithBuf(b []byte) FlowRemoved

func ToFlowRemoved

func ToFlowRemoved(p Header12) (FlowRemoved, error)

func (FlowRemoved) ByteCount

func (this FlowRemoved) ByteCount() uint64

func (FlowRemoved) ByteCountOffset

func (this FlowRemoved) ByteCountOffset() int

func (FlowRemoved) Clone

func (this FlowRemoved) Clone() (FlowRemoved, error)

func (FlowRemoved) Cookie

func (this FlowRemoved) Cookie() uint64

func (FlowRemoved) CookieOffset

func (this FlowRemoved) CookieOffset() int

func (FlowRemoved) DurationNsec

func (this FlowRemoved) DurationNsec() uint32

func (FlowRemoved) DurationNsecOffset

func (this FlowRemoved) DurationNsecOffset() int

func (FlowRemoved) DurationSec

func (this FlowRemoved) DurationSec() uint32

func (FlowRemoved) DurationSecOffset

func (this FlowRemoved) DurationSecOffset() int

func (FlowRemoved) IdleTimeout

func (this FlowRemoved) IdleTimeout() uint16

func (FlowRemoved) IdleTimeoutOffset

func (this FlowRemoved) IdleTimeoutOffset() int

func (*FlowRemoved) Init

func (this *FlowRemoved) Init()

func (FlowRemoved) Match

func (this FlowRemoved) Match() Match

func (FlowRemoved) MatchOffset

func (this FlowRemoved) MatchOffset() int

func (FlowRemoved) MatchSize

func (this FlowRemoved) MatchSize() int

func (FlowRemoved) PacketCount

func (this FlowRemoved) PacketCount() uint64

func (FlowRemoved) PacketCountOffset

func (this FlowRemoved) PacketCountOffset() int

func (FlowRemoved) Pad

func (this FlowRemoved) Pad() [1]uint8

func (FlowRemoved) Pad2

func (this FlowRemoved) Pad2() [2]uint8

func (FlowRemoved) Pad2Offset

func (this FlowRemoved) Pad2Offset() int

func (FlowRemoved) PadOffset

func (this FlowRemoved) PadOffset() int

func (FlowRemoved) Priority

func (this FlowRemoved) Priority() uint16

func (FlowRemoved) PriorityOffset

func (this FlowRemoved) PriorityOffset() int

func (FlowRemoved) Reason

func (this FlowRemoved) Reason() uint8

func (FlowRemoved) ReasonOffset

func (this FlowRemoved) ReasonOffset() int

func (*FlowRemoved) SetByteCount

func (this *FlowRemoved) SetByteCount(b uint64)

func (*FlowRemoved) SetCookie

func (this *FlowRemoved) SetCookie(c uint64)

func (*FlowRemoved) SetDurationNsec

func (this *FlowRemoved) SetDurationNsec(d uint32)

func (*FlowRemoved) SetDurationSec

func (this *FlowRemoved) SetDurationSec(d uint32)

func (*FlowRemoved) SetIdleTimeout

func (this *FlowRemoved) SetIdleTimeout(i uint16)

func (*FlowRemoved) SetMatch

func (this *FlowRemoved) SetMatch(m Match)

func (*FlowRemoved) SetPacketCount

func (this *FlowRemoved) SetPacketCount(p uint64)

func (*FlowRemoved) SetPad

func (this *FlowRemoved) SetPad(p [1]uint8)

func (*FlowRemoved) SetPad2

func (this *FlowRemoved) SetPad2(p [2]uint8)

func (*FlowRemoved) SetPriority

func (this *FlowRemoved) SetPriority(p uint16)

func (*FlowRemoved) SetReason

func (this *FlowRemoved) SetReason(r uint8)

func (FlowRemoved) Size

func (this FlowRemoved) Size() int

type FlowRemovedConn

type FlowRemovedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewFlowRemovedConn

func NewFlowRemovedConn(c net.Conn) FlowRemovedConn

func (*FlowRemovedConn) Flush

func (c *FlowRemovedConn) Flush() error

func (*FlowRemovedConn) ReadFlowRemoved

func (c *FlowRemovedConn) ReadFlowRemoved() (FlowRemoved, error)

func (*FlowRemovedConn) ReadFlowRemoveds

func (c *FlowRemovedConn) ReadFlowRemoveds(pkts []FlowRemoved) (int, error)

func (*FlowRemovedConn) WriteFlowRemoved

func (c *FlowRemovedConn) WriteFlowRemoved(pkt FlowRemoved) error

func (*FlowRemovedConn) WriteFlowRemoveds

func (c *FlowRemovedConn) WriteFlowRemoveds(pkts []FlowRemoved) error

type FlowRemovedReason

type FlowRemovedReason int
const (
	PRR_IDLE_TIMEOUT FlowRemovedReason = 0
	PRR_HARD_TIMEOUT FlowRemovedReason = 1
	PRR_DELETE       FlowRemovedReason = 2
)

type FlowStats

type FlowStats struct {
	packet.Packet
}

func NewFlowStats

func NewFlowStats() FlowStats

func NewFlowStatsWithBuf

func NewFlowStatsWithBuf(b []byte) FlowStats

func ToFlowStats

func ToFlowStats(p packet.Packet) (FlowStats, error)

func (*FlowStats) AddInstructions

func (this *FlowStats) AddInstructions(i Instruction)

func (FlowStats) ByteCount

func (this FlowStats) ByteCount() uint64

func (FlowStats) ByteCountOffset

func (this FlowStats) ByteCountOffset() int

func (FlowStats) Clone

func (this FlowStats) Clone() (FlowStats, error)

func (FlowStats) Cookie

func (this FlowStats) Cookie() uint64

func (FlowStats) CookieOffset

func (this FlowStats) CookieOffset() int

func (FlowStats) DurationNsec

func (this FlowStats) DurationNsec() uint32

func (FlowStats) DurationNsecOffset

func (this FlowStats) DurationNsecOffset() int

func (FlowStats) DurationSec

func (this FlowStats) DurationSec() uint32

func (FlowStats) DurationSecOffset

func (this FlowStats) DurationSecOffset() int

func (FlowStats) HardTimeout

func (this FlowStats) HardTimeout() uint16

func (FlowStats) HardTimeoutOffset

func (this FlowStats) HardTimeoutOffset() int

func (FlowStats) IdleTimeout

func (this FlowStats) IdleTimeout() uint16

func (FlowStats) IdleTimeoutOffset

func (this FlowStats) IdleTimeoutOffset() int

func (*FlowStats) Init

func (this *FlowStats) Init()

func (FlowStats) Instructions

func (this FlowStats) Instructions() []Instruction

func (FlowStats) InstructionsOffset

func (this FlowStats) InstructionsOffset() int

func (FlowStats) InstructionsSize

func (this FlowStats) InstructionsSize() int

func (FlowStats) Length

func (this FlowStats) Length() uint16

func (FlowStats) LengthOffset

func (this FlowStats) LengthOffset() int

func (FlowStats) Match

func (this FlowStats) Match() Match

func (FlowStats) MatchOffset

func (this FlowStats) MatchOffset() int

func (FlowStats) MatchSize

func (this FlowStats) MatchSize() int

func (FlowStats) PacketCount

func (this FlowStats) PacketCount() uint64

func (FlowStats) PacketCountOffset

func (this FlowStats) PacketCountOffset() int

func (FlowStats) Pad

func (this FlowStats) Pad() uint8

func (FlowStats) Pad2

func (this FlowStats) Pad2() [6]uint8

func (FlowStats) Pad2Offset

func (this FlowStats) Pad2Offset() int

func (FlowStats) PadOffset

func (this FlowStats) PadOffset() int

func (FlowStats) Priority

func (this FlowStats) Priority() uint16

func (FlowStats) PriorityOffset

func (this FlowStats) PriorityOffset() int

func (*FlowStats) SetByteCount

func (this *FlowStats) SetByteCount(b uint64)

func (*FlowStats) SetCookie

func (this *FlowStats) SetCookie(c uint64)

func (*FlowStats) SetDurationNsec

func (this *FlowStats) SetDurationNsec(d uint32)

func (*FlowStats) SetDurationSec

func (this *FlowStats) SetDurationSec(d uint32)

func (*FlowStats) SetHardTimeout

func (this *FlowStats) SetHardTimeout(h uint16)

func (*FlowStats) SetIdleTimeout

func (this *FlowStats) SetIdleTimeout(i uint16)

func (*FlowStats) SetLength

func (this *FlowStats) SetLength(l uint16)

func (*FlowStats) SetMatch

func (this *FlowStats) SetMatch(m Match)

func (*FlowStats) SetPacketCount

func (this *FlowStats) SetPacketCount(p uint64)

func (*FlowStats) SetPad

func (this *FlowStats) SetPad(p uint8)

func (*FlowStats) SetPad2

func (this *FlowStats) SetPad2(p [6]uint8)

func (*FlowStats) SetPriority

func (this *FlowStats) SetPriority(p uint16)

func (*FlowStats) SetTableId

func (this *FlowStats) SetTableId(t uint8)

func (FlowStats) Size

func (this FlowStats) Size() int

func (FlowStats) TableId

func (this FlowStats) TableId() uint8

func (FlowStats) TableIdOffset

func (this FlowStats) TableIdOffset() int

type FlowStatsConn

type FlowStatsConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewFlowStatsConn

func NewFlowStatsConn(c net.Conn) FlowStatsConn

func (*FlowStatsConn) Flush

func (c *FlowStatsConn) Flush() error

func (*FlowStatsConn) ReadFlowStats

func (c *FlowStatsConn) ReadFlowStats() (FlowStats, error)

func (*FlowStatsConn) ReadFlowStatss

func (c *FlowStatsConn) ReadFlowStatss(pkts []FlowStats) (int, error)

func (*FlowStatsConn) WriteFlowStats

func (c *FlowStatsConn) WriteFlowStats(pkt FlowStats) error

func (*FlowStatsConn) WriteFlowStatss

func (c *FlowStatsConn) WriteFlowStatss(pkts []FlowStats) error

type FlowStatsReply

type FlowStatsReply struct {
	StatsReply
}

func NewFlowStatsReply

func NewFlowStatsReply() FlowStatsReply

func NewFlowStatsReplyWithBuf

func NewFlowStatsReplyWithBuf(b []byte) FlowStatsReply

func ToFlowStatsReply

func ToFlowStatsReply(p StatsReply) (FlowStatsReply, error)

func (*FlowStatsReply) AddFlowStats

func (this *FlowStatsReply) AddFlowStats(f FlowStats)

func (FlowStatsReply) Clone

func (this FlowStatsReply) Clone() (FlowStatsReply, error)

func (FlowStatsReply) FlowStats

func (this FlowStatsReply) FlowStats() []FlowStats

func (FlowStatsReply) FlowStatsOffset

func (this FlowStatsReply) FlowStatsOffset() int

func (FlowStatsReply) FlowStatsSize

func (this FlowStatsReply) FlowStatsSize() int

func (*FlowStatsReply) Init

func (this *FlowStatsReply) Init()

func (FlowStatsReply) Size

func (this FlowStatsReply) Size() int

type FlowStatsReplyConn

type FlowStatsReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewFlowStatsReplyConn

func NewFlowStatsReplyConn(c net.Conn) FlowStatsReplyConn

func (*FlowStatsReplyConn) Flush

func (c *FlowStatsReplyConn) Flush() error

func (*FlowStatsReplyConn) ReadFlowStatsReply

func (c *FlowStatsReplyConn) ReadFlowStatsReply() (FlowStatsReply, error)

func (*FlowStatsReplyConn) ReadFlowStatsReplys

func (c *FlowStatsReplyConn) ReadFlowStatsReplys(pkts []FlowStatsReply) (int, error)

func (*FlowStatsReplyConn) WriteFlowStatsReply

func (c *FlowStatsReplyConn) WriteFlowStatsReply(pkt FlowStatsReply) error

func (*FlowStatsReplyConn) WriteFlowStatsReplys

func (c *FlowStatsReplyConn) WriteFlowStatsReplys(pkts []FlowStatsReply) error

type FlowStatsRequest

type FlowStatsRequest struct {
	StatsRequest
}

func NewFlowStatsRequest

func NewFlowStatsRequest() FlowStatsRequest

func NewFlowStatsRequestWithBuf

func NewFlowStatsRequestWithBuf(b []byte) FlowStatsRequest

func ToFlowStatsRequest

func ToFlowStatsRequest(p StatsRequest) (FlowStatsRequest, error)

func (FlowStatsRequest) Clone

func (this FlowStatsRequest) Clone() (FlowStatsRequest, error)

func (FlowStatsRequest) Cookie

func (this FlowStatsRequest) Cookie() uint64

func (FlowStatsRequest) CookieMask

func (this FlowStatsRequest) CookieMask() uint64

func (FlowStatsRequest) CookieMaskOffset

func (this FlowStatsRequest) CookieMaskOffset() int

func (FlowStatsRequest) CookieOffset

func (this FlowStatsRequest) CookieOffset() int

func (*FlowStatsRequest) Init

func (this *FlowStatsRequest) Init()

func (FlowStatsRequest) Match

func (this FlowStatsRequest) Match() Match

func (FlowStatsRequest) MatchOffset

func (this FlowStatsRequest) MatchOffset() int

func (FlowStatsRequest) MatchSize

func (this FlowStatsRequest) MatchSize() int

func (FlowStatsRequest) OutGroup

func (this FlowStatsRequest) OutGroup() uint32

func (FlowStatsRequest) OutGroupOffset

func (this FlowStatsRequest) OutGroupOffset() int

func (FlowStatsRequest) OutPort

func (this FlowStatsRequest) OutPort() uint32

func (FlowStatsRequest) OutPortOffset

func (this FlowStatsRequest) OutPortOffset() int

func (FlowStatsRequest) Pad1

func (this FlowStatsRequest) Pad1() [3]uint8

func (FlowStatsRequest) Pad1Offset

func (this FlowStatsRequest) Pad1Offset() int

func (FlowStatsRequest) Pad2

func (this FlowStatsRequest) Pad2() [4]uint8

func (FlowStatsRequest) Pad2Offset

func (this FlowStatsRequest) Pad2Offset() int

func (*FlowStatsRequest) SetCookie

func (this *FlowStatsRequest) SetCookie(c uint64)

func (*FlowStatsRequest) SetCookieMask

func (this *FlowStatsRequest) SetCookieMask(c uint64)

func (*FlowStatsRequest) SetMatch

func (this *FlowStatsRequest) SetMatch(m Match)

func (*FlowStatsRequest) SetOutGroup

func (this *FlowStatsRequest) SetOutGroup(o uint32)

func (*FlowStatsRequest) SetOutPort

func (this *FlowStatsRequest) SetOutPort(o uint32)

func (*FlowStatsRequest) SetPad1

func (this *FlowStatsRequest) SetPad1(p [3]uint8)

func (*FlowStatsRequest) SetPad2

func (this *FlowStatsRequest) SetPad2(p [4]uint8)

func (*FlowStatsRequest) SetTableId

func (this *FlowStatsRequest) SetTableId(t uint8)

func (FlowStatsRequest) Size

func (this FlowStatsRequest) Size() int

func (FlowStatsRequest) TableId

func (this FlowStatsRequest) TableId() uint8

func (FlowStatsRequest) TableIdOffset

func (this FlowStatsRequest) TableIdOffset() int

type FlowStatsRequestConn

type FlowStatsRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewFlowStatsRequestConn

func NewFlowStatsRequestConn(c net.Conn) FlowStatsRequestConn

func (*FlowStatsRequestConn) Flush

func (c *FlowStatsRequestConn) Flush() error

func (*FlowStatsRequestConn) ReadFlowStatsRequest

func (c *FlowStatsRequestConn) ReadFlowStatsRequest() (FlowStatsRequest, error)

func (*FlowStatsRequestConn) ReadFlowStatsRequests

func (c *FlowStatsRequestConn) ReadFlowStatsRequests(pkts []FlowStatsRequest) (int, error)

func (*FlowStatsRequestConn) WriteFlowStatsRequest

func (c *FlowStatsRequestConn) WriteFlowStatsRequest(pkt FlowStatsRequest) error

func (*FlowStatsRequestConn) WriteFlowStatsRequests

func (c *FlowStatsRequestConn) WriteFlowStatsRequests(pkts []FlowStatsRequest) error

type FlowWildcards

type FlowWildcards int
const (
	PFW_IN_PORT      FlowWildcards = 1
	PFW_DL_VLAN      FlowWildcards = 2
	PFW_DL_SRC       FlowWildcards = 4
	PFW_DL_DST       FlowWildcards = 8
	PFW_DL_TYPE      FlowWildcards = 16
	PFW_NW_PROTO     FlowWildcards = 32
	PFW_TP_SRC       FlowWildcards = 64
	PFW_TP_DST       FlowWildcards = 128
	PFW_NW_SRC_SHIFT FlowWildcards = 8
	PFW_NW_SRC_BITS  FlowWildcards = 5
	PFW_NW_SRC_MASK  FlowWildcards = 7936
	PFW_NW_SRC_ALL   FlowWildcards = 8192
	PFW_NW_DST_SHIFT FlowWildcards = 14
	PFW_NW_DST_BITS  FlowWildcards = 6
	PFW_NW_DST_MASK  FlowWildcards = 1032192
	PFW_NW_DST_ALL   FlowWildcards = 524288
	PFW_DL_VLAN_PCP  FlowWildcards = 1048576
	PFW_NW_TOS       FlowWildcards = 2097152
	PFW_ALL          FlowWildcards = 4194303
)

type Flow_modFailedCode

type Flow_modFailedCode int
const (
	PFMFC_ALL_TABLES_FULL   Flow_modFailedCode = 0
	PFMFC_OVERLAP           Flow_modFailedCode = 1
	PFMFC_EPERM             Flow_modFailedCode = 2
	PFMFC_BAD_EMERG_TIMEOUT Flow_modFailedCode = 3
	PFMFC_BAD_COMMAND       Flow_modFailedCode = 4
	PFMFC_UNSUPPORTED       Flow_modFailedCode = 5
)

type GetConfigRequest

type GetConfigRequest struct {
	Header12
}

func NewGetConfigRequest

func NewGetConfigRequest() GetConfigRequest

func NewGetConfigRequestWithBuf

func NewGetConfigRequestWithBuf(b []byte) GetConfigRequest

func ToGetConfigRequest

func ToGetConfigRequest(p Header12) (GetConfigRequest, error)

func (GetConfigRequest) Clone

func (this GetConfigRequest) Clone() (GetConfigRequest, error)

func (*GetConfigRequest) Init

func (this *GetConfigRequest) Init()

func (GetConfigRequest) Size

func (this GetConfigRequest) Size() int

type GetConfigRequestConn

type GetConfigRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewGetConfigRequestConn

func NewGetConfigRequestConn(c net.Conn) GetConfigRequestConn

func (*GetConfigRequestConn) Flush

func (c *GetConfigRequestConn) Flush() error

func (*GetConfigRequestConn) ReadGetConfigRequest

func (c *GetConfigRequestConn) ReadGetConfigRequest() (GetConfigRequest, error)

func (*GetConfigRequestConn) ReadGetConfigRequests

func (c *GetConfigRequestConn) ReadGetConfigRequests(pkts []GetConfigRequest) (int, error)

func (*GetConfigRequestConn) WriteGetConfigRequest

func (c *GetConfigRequestConn) WriteGetConfigRequest(pkt GetConfigRequest) error

func (*GetConfigRequestConn) WriteGetConfigRequests

func (c *GetConfigRequestConn) WriteGetConfigRequests(pkts []GetConfigRequest) error

type Groups

type Groups int
const (
	PG_MAX Groups = 4294967040
	PG_ALL Groups = 4294967292
	PG_ANY Groups = 4294967295
)

type Header12

type Header12 struct {
	of.Header
}

func NewHeader12

func NewHeader12() Header12

func NewHeader12WithBuf

func NewHeader12WithBuf(b []byte) Header12

func ToHeader12

func ToHeader12(p of.Header) (Header12, error)

func (Header12) Clone

func (this Header12) Clone() (Header12, error)

func (*Header12) Init

func (this *Header12) Init()

func (Header12) Size

func (this Header12) Size() int

type Header12Conn

type Header12Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewHeader12Conn

func NewHeader12Conn(c net.Conn) Header12Conn

func (*Header12Conn) Flush

func (c *Header12Conn) Flush() error

func (*Header12Conn) ReadHeader12

func (c *Header12Conn) ReadHeader12() (Header12, error)

func (*Header12Conn) ReadHeader12s

func (c *Header12Conn) ReadHeader12s(pkts []Header12) (int, error)

func (*Header12Conn) WriteHeader12

func (c *Header12Conn) WriteHeader12(pkt Header12) error

func (*Header12Conn) WriteHeader12s

func (c *Header12Conn) WriteHeader12s(pkts []Header12) error

type Hello

type Hello struct {
	of.Hello
}

func NewHello

func NewHello() Hello

func NewHelloWithBuf

func NewHelloWithBuf(b []byte) Hello

func ToHello

func ToHello(p of.Hello) (Hello, error)

func (Hello) Clone

func (this Hello) Clone() (Hello, error)

func (*Hello) Init

func (this *Hello) Init()

func (Hello) Size

func (this Hello) Size() int

type HelloConn

type HelloConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewHelloConn

func NewHelloConn(c net.Conn) HelloConn

func (*HelloConn) Flush

func (c *HelloConn) Flush() error

func (*HelloConn) ReadHello

func (c *HelloConn) ReadHello() (Hello, error)

func (*HelloConn) ReadHellos

func (c *HelloConn) ReadHellos(pkts []Hello) (int, error)

func (*HelloConn) WriteHello

func (c *HelloConn) WriteHello(pkt Hello) error

func (*HelloConn) WriteHellos

func (c *HelloConn) WriteHellos(pkts []Hello) error

type HelloFailedCode

type HelloFailedCode int
const (
	PHFC_INCOMPATIBLE HelloFailedCode = 0
	PHFC_EPERM        HelloFailedCode = 1
)

type Instruction

type Instruction struct {
	packet.Packet
}

func NewInstruction

func NewInstruction() Instruction

func NewInstructionWithBuf

func NewInstructionWithBuf(b []byte) Instruction

func ToInstruction

func ToInstruction(p packet.Packet) (Instruction, error)

func (Instruction) Clone

func (this Instruction) Clone() (Instruction, error)

func (*Instruction) Init

func (this *Instruction) Init()

func (Instruction) Len

func (this Instruction) Len() uint16

func (Instruction) LenOffset

func (this Instruction) LenOffset() int

func (*Instruction) SetLen

func (this *Instruction) SetLen(l uint16)

func (*Instruction) SetType

func (this *Instruction) SetType(t uint16)

func (Instruction) Size

func (this Instruction) Size() int

func (Instruction) Type

func (this Instruction) Type() uint16

func (Instruction) TypeOffset

func (this Instruction) TypeOffset() int

type InstructionConn

type InstructionConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewInstructionConn

func NewInstructionConn(c net.Conn) InstructionConn

func (*InstructionConn) Flush

func (c *InstructionConn) Flush() error

func (*InstructionConn) ReadInstruction

func (c *InstructionConn) ReadInstruction() (Instruction, error)

func (*InstructionConn) ReadInstructions

func (c *InstructionConn) ReadInstructions(pkts []Instruction) (int, error)

func (*InstructionConn) WriteInstruction

func (c *InstructionConn) WriteInstruction(pkt Instruction) error

func (*InstructionConn) WriteInstructions

func (c *InstructionConn) WriteInstructions(pkts []Instruction) error

type InstructionType

type InstructionType int
const (
	PIT_GOTO_TABLE     InstructionType = 1
	PIT_WRITE_METADATA InstructionType = 2
	PIT_WRITE_ACTIONS  InstructionType = 3
	PIT_APPLY_ACTIONS  InstructionType = 4
	PIT_CLEAR_ACTIONS  InstructionType = 5
	PIT_EXPERIMENTER   InstructionType = 65535
)

type Match

type Match struct {
	packet.Packet
}

func NewMatch

func NewMatch() Match

func NewMatchWithBuf

func NewMatchWithBuf(b []byte) Match

func ToMatch

func ToMatch(p packet.Packet) (Match, error)

func (Match) Clone

func (this Match) Clone() (Match, error)

func (*Match) Init

func (this *Match) Init()

func (Match) Length

func (this Match) Length() uint16

func (Match) LengthOffset

func (this Match) LengthOffset() int

func (*Match) SetLength

func (this *Match) SetLength(l uint16)

func (*Match) SetType

func (this *Match) SetType(t uint16)

func (Match) Size

func (this Match) Size() int

func (Match) Type

func (this Match) Type() uint16

func (Match) TypeOffset

func (this Match) TypeOffset() int

type MatchConn

type MatchConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewMatchConn

func NewMatchConn(c net.Conn) MatchConn

func (*MatchConn) Flush

func (c *MatchConn) Flush() error

func (*MatchConn) ReadMatch

func (c *MatchConn) ReadMatch() (Match, error)

func (*MatchConn) ReadMatchs

func (c *MatchConn) ReadMatchs(pkts []Match) (int, error)

func (*MatchConn) WriteMatch

func (c *MatchConn) WriteMatch(pkt Match) error

func (*MatchConn) WriteMatchs

func (c *MatchConn) WriteMatchs(pkts []Match) error

type MatchType

type MatchType int
const (
	PMT_STANDARD MatchType = 0
	PMT_OXM      MatchType = 1
)

type OXMatch

type OXMatch struct {
	Match
}

func NewOXMatch

func NewOXMatch() OXMatch

func NewOXMatchWithBuf

func NewOXMatchWithBuf(b []byte) OXMatch

func ToOXMatch

func ToOXMatch(p Match) (OXMatch, error)

func (*OXMatch) AddFields

func (this *OXMatch) AddFields(f OxmField)

func (OXMatch) Clone

func (this OXMatch) Clone() (OXMatch, error)

func (OXMatch) Fields

func (this OXMatch) Fields() []OxmField

func (OXMatch) FieldsOffset

func (this OXMatch) FieldsOffset() int

func (OXMatch) FieldsSize

func (this OXMatch) FieldsSize() int

func (*OXMatch) Init

func (this *OXMatch) Init()

func (OXMatch) Size

func (this OXMatch) Size() int

type OXMatchConn

type OXMatchConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOXMatchConn

func NewOXMatchConn(c net.Conn) OXMatchConn

func (*OXMatchConn) Flush

func (c *OXMatchConn) Flush() error

func (*OXMatchConn) ReadOXMatch

func (c *OXMatchConn) ReadOXMatch() (OXMatch, error)

func (*OXMatchConn) ReadOXMatchs

func (c *OXMatchConn) ReadOXMatchs(pkts []OXMatch) (int, error)

func (*OXMatchConn) WriteOXMatch

func (c *OXMatchConn) WriteOXMatch(pkt OXMatch) error

func (*OXMatchConn) WriteOXMatchs

func (c *OXMatchConn) WriteOXMatchs(pkts []OXMatch) error

type OXMatchFields

type OXMatchFields int
const (
	PXMT_IN_PORT         OXMatchFields = 0
	PXMT_IN_PHY_PORT     OXMatchFields = 2
	PXMT_METADATA        OXMatchFields = 4
	PXMT_ETH_DST         OXMatchFields = 6
	PXMT_ETH_DST_MASKED  OXMatchFields = 7
	PXMT_ETH_SRC         OXMatchFields = 8
	PXMT_ETH_SRC_MASKED  OXMatchFields = 9
	PXMT_ETH_TYPE        OXMatchFields = 10
	PXMT_VLAN_VID        OXMatchFields = 12
	PXMT_VLAN_PCP        OXMatchFields = 14
	PXMT_IP_DSCP         OXMatchFields = 16
	PXMT_IP_ECN          OXMatchFields = 18
	PXMT_IP_PROTO        OXMatchFields = 20
	PXMT_IPV4_SRC        OXMatchFields = 22
	PXMT_IPV4_SRC_MASKED OXMatchFields = 23
	PXMT_IPV4_DST        OXMatchFields = 24
	PXMT_IPV4_DST_MASKED OXMatchFields = 25
	PXMT_TCP_SRC         OXMatchFields = 26
	PXMT_TCP_DST         OXMatchFields = 28
	PXMT_UDP_SRC         OXMatchFields = 30
	PXMT_UDP_DST         OXMatchFields = 32
	PXMT_SCTP_SRC        OXMatchFields = 34
	PXMT_SCTP_DST        OXMatchFields = 36
	PXMT_ICMPV4_TYPE     OXMatchFields = 38
	PXMT_ICMPV4_CODE     OXMatchFields = 40
	PXMT_ARP_OP          OXMatchFields = 42
	PXMT_ARP_SPA         OXMatchFields = 44
	PXMT_ARP_TPA         OXMatchFields = 46
	PXMT_ARP_SHA         OXMatchFields = 48
	PXMT_ARP_THA         OXMatchFields = 50
	PXMT_IPV6_SRC        OXMatchFields = 52
	PXMT_IPV6_SRC_MASKED OXMatchFields = 53
	PXMT_IPV6_DST        OXMatchFields = 54
	PXMT_IPV6_DST_MASKED OXMatchFields = 55
	PXMT_IPV6_FLABEL     OXMatchFields = 56
	PXMT_ICMPV6_TYPE     OXMatchFields = 58
	PXMT_ICMPV6_CODE     OXMatchFields = 60
	PXMT_IPV6_ND_TARGET  OXMatchFields = 62
	PXMT_IPV6_ND_SLL     OXMatchFields = 64
	PXMT_IPV6_ND_TLL     OXMatchFields = 66
	PXMT_MPLS_LABEL      OXMatchFields = 68
	PXMT_MPLS_TC         OXMatchFields = 70
)

type OxmClass

type OxmClass int
const (
	PXMC_NXM_0          OxmClass = 0
	PXMC_NXM_1          OxmClass = 1
	PXMC_OPENFLOW_BASIC OxmClass = 32768
	PXMC_EXPERIMENTER   OxmClass = 65535
)

type OxmEthDst

type OxmEthDst struct {
	OxmField
}

func NewOxmEthDst

func NewOxmEthDst() OxmEthDst

func NewOxmEthDstWithBuf

func NewOxmEthDstWithBuf(b []byte) OxmEthDst

func ToOxmEthDst

func ToOxmEthDst(p OxmField) (OxmEthDst, error)

func (OxmEthDst) Clone

func (this OxmEthDst) Clone() (OxmEthDst, error)

func (*OxmEthDst) Init

func (this *OxmEthDst) Init()

func (OxmEthDst) MacAddr

func (this OxmEthDst) MacAddr() [6]uint8

func (OxmEthDst) MacAddrOffset

func (this OxmEthDst) MacAddrOffset() int

func (*OxmEthDst) SetMacAddr

func (this *OxmEthDst) SetMacAddr(m [6]uint8)

func (OxmEthDst) Size

func (this OxmEthDst) Size() int

type OxmEthDstConn

type OxmEthDstConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmEthDstConn

func NewOxmEthDstConn(c net.Conn) OxmEthDstConn

func (*OxmEthDstConn) Flush

func (c *OxmEthDstConn) Flush() error

func (*OxmEthDstConn) ReadOxmEthDst

func (c *OxmEthDstConn) ReadOxmEthDst() (OxmEthDst, error)

func (*OxmEthDstConn) ReadOxmEthDsts

func (c *OxmEthDstConn) ReadOxmEthDsts(pkts []OxmEthDst) (int, error)

func (*OxmEthDstConn) WriteOxmEthDst

func (c *OxmEthDstConn) WriteOxmEthDst(pkt OxmEthDst) error

func (*OxmEthDstConn) WriteOxmEthDsts

func (c *OxmEthDstConn) WriteOxmEthDsts(pkts []OxmEthDst) error

type OxmEthDstMasked

type OxmEthDstMasked struct {
	OxmField
}

func NewOxmEthDstMasked

func NewOxmEthDstMasked() OxmEthDstMasked

func NewOxmEthDstMaskedWithBuf

func NewOxmEthDstMaskedWithBuf(b []byte) OxmEthDstMasked

func ToOxmEthDstMasked

func ToOxmEthDstMasked(p OxmField) (OxmEthDstMasked, error)

func (OxmEthDstMasked) Clone

func (this OxmEthDstMasked) Clone() (OxmEthDstMasked, error)

func (*OxmEthDstMasked) Init

func (this *OxmEthDstMasked) Init()

func (OxmEthDstMasked) MacAddr

func (this OxmEthDstMasked) MacAddr() [6]uint8

func (OxmEthDstMasked) MacAddrOffset

func (this OxmEthDstMasked) MacAddrOffset() int

func (OxmEthDstMasked) Mask

func (this OxmEthDstMasked) Mask() [6]uint8

func (OxmEthDstMasked) MaskOffset

func (this OxmEthDstMasked) MaskOffset() int

func (*OxmEthDstMasked) SetMacAddr

func (this *OxmEthDstMasked) SetMacAddr(m [6]uint8)

func (*OxmEthDstMasked) SetMask

func (this *OxmEthDstMasked) SetMask(m [6]uint8)

func (OxmEthDstMasked) Size

func (this OxmEthDstMasked) Size() int

type OxmEthDstMaskedConn

type OxmEthDstMaskedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmEthDstMaskedConn

func NewOxmEthDstMaskedConn(c net.Conn) OxmEthDstMaskedConn

func (*OxmEthDstMaskedConn) Flush

func (c *OxmEthDstMaskedConn) Flush() error

func (*OxmEthDstMaskedConn) ReadOxmEthDstMasked

func (c *OxmEthDstMaskedConn) ReadOxmEthDstMasked() (OxmEthDstMasked, error)

func (*OxmEthDstMaskedConn) ReadOxmEthDstMaskeds

func (c *OxmEthDstMaskedConn) ReadOxmEthDstMaskeds(pkts []OxmEthDstMasked) (int, error)

func (*OxmEthDstMaskedConn) WriteOxmEthDstMasked

func (c *OxmEthDstMaskedConn) WriteOxmEthDstMasked(pkt OxmEthDstMasked) error

func (*OxmEthDstMaskedConn) WriteOxmEthDstMaskeds

func (c *OxmEthDstMaskedConn) WriteOxmEthDstMaskeds(pkts []OxmEthDstMasked) error

type OxmEthSrc

type OxmEthSrc struct {
	OxmField
}

func NewOxmEthSrc

func NewOxmEthSrc() OxmEthSrc

func NewOxmEthSrcWithBuf

func NewOxmEthSrcWithBuf(b []byte) OxmEthSrc

func ToOxmEthSrc

func ToOxmEthSrc(p OxmField) (OxmEthSrc, error)

func (OxmEthSrc) Clone

func (this OxmEthSrc) Clone() (OxmEthSrc, error)

func (*OxmEthSrc) Init

func (this *OxmEthSrc) Init()

func (OxmEthSrc) MacAddr

func (this OxmEthSrc) MacAddr() [6]uint8

func (OxmEthSrc) MacAddrOffset

func (this OxmEthSrc) MacAddrOffset() int

func (*OxmEthSrc) SetMacAddr

func (this *OxmEthSrc) SetMacAddr(m [6]uint8)

func (OxmEthSrc) Size

func (this OxmEthSrc) Size() int

type OxmEthSrcConn

type OxmEthSrcConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmEthSrcConn

func NewOxmEthSrcConn(c net.Conn) OxmEthSrcConn

func (*OxmEthSrcConn) Flush

func (c *OxmEthSrcConn) Flush() error

func (*OxmEthSrcConn) ReadOxmEthSrc

func (c *OxmEthSrcConn) ReadOxmEthSrc() (OxmEthSrc, error)

func (*OxmEthSrcConn) ReadOxmEthSrcs

func (c *OxmEthSrcConn) ReadOxmEthSrcs(pkts []OxmEthSrc) (int, error)

func (*OxmEthSrcConn) WriteOxmEthSrc

func (c *OxmEthSrcConn) WriteOxmEthSrc(pkt OxmEthSrc) error

func (*OxmEthSrcConn) WriteOxmEthSrcs

func (c *OxmEthSrcConn) WriteOxmEthSrcs(pkts []OxmEthSrc) error

type OxmEthSrcMasked

type OxmEthSrcMasked struct {
	OxmField
}

func NewOxmEthSrcMasked

func NewOxmEthSrcMasked() OxmEthSrcMasked

func NewOxmEthSrcMaskedWithBuf

func NewOxmEthSrcMaskedWithBuf(b []byte) OxmEthSrcMasked

func ToOxmEthSrcMasked

func ToOxmEthSrcMasked(p OxmField) (OxmEthSrcMasked, error)

func (OxmEthSrcMasked) Clone

func (this OxmEthSrcMasked) Clone() (OxmEthSrcMasked, error)

func (*OxmEthSrcMasked) Init

func (this *OxmEthSrcMasked) Init()

func (OxmEthSrcMasked) MacAddr

func (this OxmEthSrcMasked) MacAddr() [6]uint8

func (OxmEthSrcMasked) MacAddrOffset

func (this OxmEthSrcMasked) MacAddrOffset() int

func (OxmEthSrcMasked) Mask

func (this OxmEthSrcMasked) Mask() [6]uint8

func (OxmEthSrcMasked) MaskOffset

func (this OxmEthSrcMasked) MaskOffset() int

func (*OxmEthSrcMasked) SetMacAddr

func (this *OxmEthSrcMasked) SetMacAddr(m [6]uint8)

func (*OxmEthSrcMasked) SetMask

func (this *OxmEthSrcMasked) SetMask(m [6]uint8)

func (OxmEthSrcMasked) Size

func (this OxmEthSrcMasked) Size() int

type OxmEthSrcMaskedConn

type OxmEthSrcMaskedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmEthSrcMaskedConn

func NewOxmEthSrcMaskedConn(c net.Conn) OxmEthSrcMaskedConn

func (*OxmEthSrcMaskedConn) Flush

func (c *OxmEthSrcMaskedConn) Flush() error

func (*OxmEthSrcMaskedConn) ReadOxmEthSrcMasked

func (c *OxmEthSrcMaskedConn) ReadOxmEthSrcMasked() (OxmEthSrcMasked, error)

func (*OxmEthSrcMaskedConn) ReadOxmEthSrcMaskeds

func (c *OxmEthSrcMaskedConn) ReadOxmEthSrcMaskeds(pkts []OxmEthSrcMasked) (int, error)

func (*OxmEthSrcMaskedConn) WriteOxmEthSrcMasked

func (c *OxmEthSrcMaskedConn) WriteOxmEthSrcMasked(pkt OxmEthSrcMasked) error

func (*OxmEthSrcMaskedConn) WriteOxmEthSrcMaskeds

func (c *OxmEthSrcMaskedConn) WriteOxmEthSrcMaskeds(pkts []OxmEthSrcMasked) error

type OxmEthType

type OxmEthType struct {
	OxmField
}

func NewOxmEthType

func NewOxmEthType() OxmEthType

func NewOxmEthTypeWithBuf

func NewOxmEthTypeWithBuf(b []byte) OxmEthType

func ToOxmEthType

func ToOxmEthType(p OxmField) (OxmEthType, error)

func (OxmEthType) Clone

func (this OxmEthType) Clone() (OxmEthType, error)

func (*OxmEthType) Init

func (this *OxmEthType) Init()

func (*OxmEthType) SetType

func (this *OxmEthType) SetType(t uint16)

func (OxmEthType) Size

func (this OxmEthType) Size() int

func (OxmEthType) Type

func (this OxmEthType) Type() uint16

func (OxmEthType) TypeOffset

func (this OxmEthType) TypeOffset() int

type OxmEthTypeConn

type OxmEthTypeConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmEthTypeConn

func NewOxmEthTypeConn(c net.Conn) OxmEthTypeConn

func (*OxmEthTypeConn) Flush

func (c *OxmEthTypeConn) Flush() error

func (*OxmEthTypeConn) ReadOxmEthType

func (c *OxmEthTypeConn) ReadOxmEthType() (OxmEthType, error)

func (*OxmEthTypeConn) ReadOxmEthTypes

func (c *OxmEthTypeConn) ReadOxmEthTypes(pkts []OxmEthType) (int, error)

func (*OxmEthTypeConn) WriteOxmEthType

func (c *OxmEthTypeConn) WriteOxmEthType(pkt OxmEthType) error

func (*OxmEthTypeConn) WriteOxmEthTypes

func (c *OxmEthTypeConn) WriteOxmEthTypes(pkts []OxmEthType) error

type OxmField

type OxmField struct {
	packet.Packet
}

func NewOxmField

func NewOxmField() OxmField

func NewOxmFieldWithBuf

func NewOxmFieldWithBuf(b []byte) OxmField

func ToOxmField

func ToOxmField(p packet.Packet) (OxmField, error)

func (OxmField) Clone

func (this OxmField) Clone() (OxmField, error)

func (*OxmField) Init

func (this *OxmField) Init()

func (OxmField) OxmClass

func (this OxmField) OxmClass() uint16

func (OxmField) OxmClassOffset

func (this OxmField) OxmClassOffset() int

func (OxmField) OxmField

func (this OxmField) OxmField() uint8

func (OxmField) OxmFieldOffset

func (this OxmField) OxmFieldOffset() int

func (OxmField) OxmLength

func (this OxmField) OxmLength() uint8

func (OxmField) OxmLengthOffset

func (this OxmField) OxmLengthOffset() int

func (*OxmField) SetOxmClass

func (this *OxmField) SetOxmClass(o uint16)

func (*OxmField) SetOxmField

func (this *OxmField) SetOxmField(o uint8)

func (*OxmField) SetOxmLength

func (this *OxmField) SetOxmLength(o uint8)

func (OxmField) Size

func (this OxmField) Size() int

type OxmFieldConn

type OxmFieldConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmFieldConn

func NewOxmFieldConn(c net.Conn) OxmFieldConn

func (*OxmFieldConn) Flush

func (c *OxmFieldConn) Flush() error

func (*OxmFieldConn) ReadOxmField

func (c *OxmFieldConn) ReadOxmField() (OxmField, error)

func (*OxmFieldConn) ReadOxmFields

func (c *OxmFieldConn) ReadOxmFields(pkts []OxmField) (int, error)

func (*OxmFieldConn) WriteOxmField

func (c *OxmFieldConn) WriteOxmField(pkt OxmField) error

func (*OxmFieldConn) WriteOxmFields

func (c *OxmFieldConn) WriteOxmFields(pkts []OxmField) error

type OxmInPort

type OxmInPort struct {
	OxmField
}

func NewOxmInPort

func NewOxmInPort() OxmInPort

func NewOxmInPortWithBuf

func NewOxmInPortWithBuf(b []byte) OxmInPort

func ToOxmInPort

func ToOxmInPort(p OxmField) (OxmInPort, error)

func (OxmInPort) Clone

func (this OxmInPort) Clone() (OxmInPort, error)

func (OxmInPort) InPort

func (this OxmInPort) InPort() uint32

func (OxmInPort) InPortOffset

func (this OxmInPort) InPortOffset() int

func (*OxmInPort) Init

func (this *OxmInPort) Init()

func (*OxmInPort) SetInPort

func (this *OxmInPort) SetInPort(i uint32)

func (OxmInPort) Size

func (this OxmInPort) Size() int

type OxmInPortConn

type OxmInPortConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmInPortConn

func NewOxmInPortConn(c net.Conn) OxmInPortConn

func (*OxmInPortConn) Flush

func (c *OxmInPortConn) Flush() error

func (*OxmInPortConn) ReadOxmInPort

func (c *OxmInPortConn) ReadOxmInPort() (OxmInPort, error)

func (*OxmInPortConn) ReadOxmInPorts

func (c *OxmInPortConn) ReadOxmInPorts(pkts []OxmInPort) (int, error)

func (*OxmInPortConn) WriteOxmInPort

func (c *OxmInPortConn) WriteOxmInPort(pkt OxmInPort) error

func (*OxmInPortConn) WriteOxmInPorts

func (c *OxmInPortConn) WriteOxmInPorts(pkts []OxmInPort) error

type OxmIpProto

type OxmIpProto struct {
	OxmField
}

func NewOxmIpProto

func NewOxmIpProto() OxmIpProto

func NewOxmIpProtoWithBuf

func NewOxmIpProtoWithBuf(b []byte) OxmIpProto

func ToOxmIpProto

func ToOxmIpProto(p OxmField) (OxmIpProto, error)

func (OxmIpProto) Clone

func (this OxmIpProto) Clone() (OxmIpProto, error)

func (*OxmIpProto) Init

func (this *OxmIpProto) Init()

func (OxmIpProto) Proto

func (this OxmIpProto) Proto() uint8

func (OxmIpProto) ProtoOffset

func (this OxmIpProto) ProtoOffset() int

func (*OxmIpProto) SetProto

func (this *OxmIpProto) SetProto(p uint8)

func (OxmIpProto) Size

func (this OxmIpProto) Size() int

type OxmIpProtoConn

type OxmIpProtoConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpProtoConn

func NewOxmIpProtoConn(c net.Conn) OxmIpProtoConn

func (*OxmIpProtoConn) Flush

func (c *OxmIpProtoConn) Flush() error

func (*OxmIpProtoConn) ReadOxmIpProto

func (c *OxmIpProtoConn) ReadOxmIpProto() (OxmIpProto, error)

func (*OxmIpProtoConn) ReadOxmIpProtos

func (c *OxmIpProtoConn) ReadOxmIpProtos(pkts []OxmIpProto) (int, error)

func (*OxmIpProtoConn) WriteOxmIpProto

func (c *OxmIpProtoConn) WriteOxmIpProto(pkt OxmIpProto) error

func (*OxmIpProtoConn) WriteOxmIpProtos

func (c *OxmIpProtoConn) WriteOxmIpProtos(pkts []OxmIpProto) error

type OxmIpV4Dst

type OxmIpV4Dst struct {
	OxmField
}

func NewOxmIpV4Dst

func NewOxmIpV4Dst() OxmIpV4Dst

func NewOxmIpV4DstWithBuf

func NewOxmIpV4DstWithBuf(b []byte) OxmIpV4Dst

func ToOxmIpV4Dst

func ToOxmIpV4Dst(p OxmField) (OxmIpV4Dst, error)

func (OxmIpV4Dst) Addr

func (this OxmIpV4Dst) Addr() [4]uint8

func (OxmIpV4Dst) AddrOffset

func (this OxmIpV4Dst) AddrOffset() int

func (OxmIpV4Dst) Clone

func (this OxmIpV4Dst) Clone() (OxmIpV4Dst, error)

func (*OxmIpV4Dst) Init

func (this *OxmIpV4Dst) Init()

func (*OxmIpV4Dst) SetAddr

func (this *OxmIpV4Dst) SetAddr(a [4]uint8)

func (OxmIpV4Dst) Size

func (this OxmIpV4Dst) Size() int

type OxmIpV4DstConn

type OxmIpV4DstConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV4DstConn

func NewOxmIpV4DstConn(c net.Conn) OxmIpV4DstConn

func (*OxmIpV4DstConn) Flush

func (c *OxmIpV4DstConn) Flush() error

func (*OxmIpV4DstConn) ReadOxmIpV4Dst

func (c *OxmIpV4DstConn) ReadOxmIpV4Dst() (OxmIpV4Dst, error)

func (*OxmIpV4DstConn) ReadOxmIpV4Dsts

func (c *OxmIpV4DstConn) ReadOxmIpV4Dsts(pkts []OxmIpV4Dst) (int, error)

func (*OxmIpV4DstConn) WriteOxmIpV4Dst

func (c *OxmIpV4DstConn) WriteOxmIpV4Dst(pkt OxmIpV4Dst) error

func (*OxmIpV4DstConn) WriteOxmIpV4Dsts

func (c *OxmIpV4DstConn) WriteOxmIpV4Dsts(pkts []OxmIpV4Dst) error

type OxmIpV4DstMasked

type OxmIpV4DstMasked struct {
	OxmField
}

func NewOxmIpV4DstMasked

func NewOxmIpV4DstMasked() OxmIpV4DstMasked

func NewOxmIpV4DstMaskedWithBuf

func NewOxmIpV4DstMaskedWithBuf(b []byte) OxmIpV4DstMasked

func ToOxmIpV4DstMasked

func ToOxmIpV4DstMasked(p OxmField) (OxmIpV4DstMasked, error)

func (OxmIpV4DstMasked) Addr

func (this OxmIpV4DstMasked) Addr() [4]uint8

func (OxmIpV4DstMasked) AddrOffset

func (this OxmIpV4DstMasked) AddrOffset() int

func (OxmIpV4DstMasked) Clone

func (this OxmIpV4DstMasked) Clone() (OxmIpV4DstMasked, error)

func (*OxmIpV4DstMasked) Init

func (this *OxmIpV4DstMasked) Init()

func (OxmIpV4DstMasked) Mask

func (this OxmIpV4DstMasked) Mask() [4]uint8

func (OxmIpV4DstMasked) MaskOffset

func (this OxmIpV4DstMasked) MaskOffset() int

func (*OxmIpV4DstMasked) SetAddr

func (this *OxmIpV4DstMasked) SetAddr(a [4]uint8)

func (*OxmIpV4DstMasked) SetMask

func (this *OxmIpV4DstMasked) SetMask(m [4]uint8)

func (OxmIpV4DstMasked) Size

func (this OxmIpV4DstMasked) Size() int

type OxmIpV4DstMaskedConn

type OxmIpV4DstMaskedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV4DstMaskedConn

func NewOxmIpV4DstMaskedConn(c net.Conn) OxmIpV4DstMaskedConn

func (*OxmIpV4DstMaskedConn) Flush

func (c *OxmIpV4DstMaskedConn) Flush() error

func (*OxmIpV4DstMaskedConn) ReadOxmIpV4DstMasked

func (c *OxmIpV4DstMaskedConn) ReadOxmIpV4DstMasked() (OxmIpV4DstMasked, error)

func (*OxmIpV4DstMaskedConn) ReadOxmIpV4DstMaskeds

func (c *OxmIpV4DstMaskedConn) ReadOxmIpV4DstMaskeds(pkts []OxmIpV4DstMasked) (int, error)

func (*OxmIpV4DstMaskedConn) WriteOxmIpV4DstMasked

func (c *OxmIpV4DstMaskedConn) WriteOxmIpV4DstMasked(pkt OxmIpV4DstMasked) error

func (*OxmIpV4DstMaskedConn) WriteOxmIpV4DstMaskeds

func (c *OxmIpV4DstMaskedConn) WriteOxmIpV4DstMaskeds(pkts []OxmIpV4DstMasked) error

type OxmIpV4Src

type OxmIpV4Src struct {
	OxmField
}

func NewOxmIpV4Src

func NewOxmIpV4Src() OxmIpV4Src

func NewOxmIpV4SrcWithBuf

func NewOxmIpV4SrcWithBuf(b []byte) OxmIpV4Src

func ToOxmIpV4Src

func ToOxmIpV4Src(p OxmField) (OxmIpV4Src, error)

func (OxmIpV4Src) Addr

func (this OxmIpV4Src) Addr() [4]uint8

func (OxmIpV4Src) AddrOffset

func (this OxmIpV4Src) AddrOffset() int

func (OxmIpV4Src) Clone

func (this OxmIpV4Src) Clone() (OxmIpV4Src, error)

func (*OxmIpV4Src) Init

func (this *OxmIpV4Src) Init()

func (OxmIpV4Src) Mask

func (this OxmIpV4Src) Mask() [4]uint8

func (OxmIpV4Src) MaskOffset

func (this OxmIpV4Src) MaskOffset() int

func (*OxmIpV4Src) SetAddr

func (this *OxmIpV4Src) SetAddr(a [4]uint8)

func (*OxmIpV4Src) SetMask

func (this *OxmIpV4Src) SetMask(m [4]uint8)

func (OxmIpV4Src) Size

func (this OxmIpV4Src) Size() int

type OxmIpV4SrcConn

type OxmIpV4SrcConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV4SrcConn

func NewOxmIpV4SrcConn(c net.Conn) OxmIpV4SrcConn

func (*OxmIpV4SrcConn) Flush

func (c *OxmIpV4SrcConn) Flush() error

func (*OxmIpV4SrcConn) ReadOxmIpV4Src

func (c *OxmIpV4SrcConn) ReadOxmIpV4Src() (OxmIpV4Src, error)

func (*OxmIpV4SrcConn) ReadOxmIpV4Srcs

func (c *OxmIpV4SrcConn) ReadOxmIpV4Srcs(pkts []OxmIpV4Src) (int, error)

func (*OxmIpV4SrcConn) WriteOxmIpV4Src

func (c *OxmIpV4SrcConn) WriteOxmIpV4Src(pkt OxmIpV4Src) error

func (*OxmIpV4SrcConn) WriteOxmIpV4Srcs

func (c *OxmIpV4SrcConn) WriteOxmIpV4Srcs(pkts []OxmIpV4Src) error

type OxmIpV4SrcMasked

type OxmIpV4SrcMasked struct {
	OxmField
}

func NewOxmIpV4SrcMasked

func NewOxmIpV4SrcMasked() OxmIpV4SrcMasked

func NewOxmIpV4SrcMaskedWithBuf

func NewOxmIpV4SrcMaskedWithBuf(b []byte) OxmIpV4SrcMasked

func ToOxmIpV4SrcMasked

func ToOxmIpV4SrcMasked(p OxmField) (OxmIpV4SrcMasked, error)

func (OxmIpV4SrcMasked) Addr

func (this OxmIpV4SrcMasked) Addr() [4]uint8

func (OxmIpV4SrcMasked) AddrOffset

func (this OxmIpV4SrcMasked) AddrOffset() int

func (OxmIpV4SrcMasked) Clone

func (this OxmIpV4SrcMasked) Clone() (OxmIpV4SrcMasked, error)

func (*OxmIpV4SrcMasked) Init

func (this *OxmIpV4SrcMasked) Init()

func (OxmIpV4SrcMasked) Mask

func (this OxmIpV4SrcMasked) Mask() [4]uint8

func (OxmIpV4SrcMasked) MaskOffset

func (this OxmIpV4SrcMasked) MaskOffset() int

func (*OxmIpV4SrcMasked) SetAddr

func (this *OxmIpV4SrcMasked) SetAddr(a [4]uint8)

func (*OxmIpV4SrcMasked) SetMask

func (this *OxmIpV4SrcMasked) SetMask(m [4]uint8)

func (OxmIpV4SrcMasked) Size

func (this OxmIpV4SrcMasked) Size() int

type OxmIpV4SrcMaskedConn

type OxmIpV4SrcMaskedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV4SrcMaskedConn

func NewOxmIpV4SrcMaskedConn(c net.Conn) OxmIpV4SrcMaskedConn

func (*OxmIpV4SrcMaskedConn) Flush

func (c *OxmIpV4SrcMaskedConn) Flush() error

func (*OxmIpV4SrcMaskedConn) ReadOxmIpV4SrcMasked

func (c *OxmIpV4SrcMaskedConn) ReadOxmIpV4SrcMasked() (OxmIpV4SrcMasked, error)

func (*OxmIpV4SrcMaskedConn) ReadOxmIpV4SrcMaskeds

func (c *OxmIpV4SrcMaskedConn) ReadOxmIpV4SrcMaskeds(pkts []OxmIpV4SrcMasked) (int, error)

func (*OxmIpV4SrcMaskedConn) WriteOxmIpV4SrcMasked

func (c *OxmIpV4SrcMaskedConn) WriteOxmIpV4SrcMasked(pkt OxmIpV4SrcMasked) error

func (*OxmIpV4SrcMaskedConn) WriteOxmIpV4SrcMaskeds

func (c *OxmIpV4SrcMaskedConn) WriteOxmIpV4SrcMaskeds(pkts []OxmIpV4SrcMasked) error

type OxmIpV6Dst

type OxmIpV6Dst struct {
	OxmField
}

func NewOxmIpV6Dst

func NewOxmIpV6Dst() OxmIpV6Dst

func NewOxmIpV6DstWithBuf

func NewOxmIpV6DstWithBuf(b []byte) OxmIpV6Dst

func ToOxmIpV6Dst

func ToOxmIpV6Dst(p OxmField) (OxmIpV6Dst, error)

func (OxmIpV6Dst) Addr

func (this OxmIpV6Dst) Addr() [16]uint8

func (OxmIpV6Dst) AddrOffset

func (this OxmIpV6Dst) AddrOffset() int

func (OxmIpV6Dst) Clone

func (this OxmIpV6Dst) Clone() (OxmIpV6Dst, error)

func (*OxmIpV6Dst) Init

func (this *OxmIpV6Dst) Init()

func (*OxmIpV6Dst) SetAddr

func (this *OxmIpV6Dst) SetAddr(a [16]uint8)

func (OxmIpV6Dst) Size

func (this OxmIpV6Dst) Size() int

type OxmIpV6DstConn

type OxmIpV6DstConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV6DstConn

func NewOxmIpV6DstConn(c net.Conn) OxmIpV6DstConn

func (*OxmIpV6DstConn) Flush

func (c *OxmIpV6DstConn) Flush() error

func (*OxmIpV6DstConn) ReadOxmIpV6Dst

func (c *OxmIpV6DstConn) ReadOxmIpV6Dst() (OxmIpV6Dst, error)

func (*OxmIpV6DstConn) ReadOxmIpV6Dsts

func (c *OxmIpV6DstConn) ReadOxmIpV6Dsts(pkts []OxmIpV6Dst) (int, error)

func (*OxmIpV6DstConn) WriteOxmIpV6Dst

func (c *OxmIpV6DstConn) WriteOxmIpV6Dst(pkt OxmIpV6Dst) error

func (*OxmIpV6DstConn) WriteOxmIpV6Dsts

func (c *OxmIpV6DstConn) WriteOxmIpV6Dsts(pkts []OxmIpV6Dst) error

type OxmIpV6DstMasked

type OxmIpV6DstMasked struct {
	OxmField
}

func NewOxmIpV6DstMasked

func NewOxmIpV6DstMasked() OxmIpV6DstMasked

func NewOxmIpV6DstMaskedWithBuf

func NewOxmIpV6DstMaskedWithBuf(b []byte) OxmIpV6DstMasked

func ToOxmIpV6DstMasked

func ToOxmIpV6DstMasked(p OxmField) (OxmIpV6DstMasked, error)

func (OxmIpV6DstMasked) Addr

func (this OxmIpV6DstMasked) Addr() [16]uint8

func (OxmIpV6DstMasked) AddrOffset

func (this OxmIpV6DstMasked) AddrOffset() int

func (OxmIpV6DstMasked) Clone

func (this OxmIpV6DstMasked) Clone() (OxmIpV6DstMasked, error)

func (*OxmIpV6DstMasked) Init

func (this *OxmIpV6DstMasked) Init()

func (OxmIpV6DstMasked) Mask

func (this OxmIpV6DstMasked) Mask() [16]uint8

func (OxmIpV6DstMasked) MaskOffset

func (this OxmIpV6DstMasked) MaskOffset() int

func (*OxmIpV6DstMasked) SetAddr

func (this *OxmIpV6DstMasked) SetAddr(a [16]uint8)

func (*OxmIpV6DstMasked) SetMask

func (this *OxmIpV6DstMasked) SetMask(m [16]uint8)

func (OxmIpV6DstMasked) Size

func (this OxmIpV6DstMasked) Size() int

type OxmIpV6DstMaskedConn

type OxmIpV6DstMaskedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV6DstMaskedConn

func NewOxmIpV6DstMaskedConn(c net.Conn) OxmIpV6DstMaskedConn

func (*OxmIpV6DstMaskedConn) Flush

func (c *OxmIpV6DstMaskedConn) Flush() error

func (*OxmIpV6DstMaskedConn) ReadOxmIpV6DstMasked

func (c *OxmIpV6DstMaskedConn) ReadOxmIpV6DstMasked() (OxmIpV6DstMasked, error)

func (*OxmIpV6DstMaskedConn) ReadOxmIpV6DstMaskeds

func (c *OxmIpV6DstMaskedConn) ReadOxmIpV6DstMaskeds(pkts []OxmIpV6DstMasked) (int, error)

func (*OxmIpV6DstMaskedConn) WriteOxmIpV6DstMasked

func (c *OxmIpV6DstMaskedConn) WriteOxmIpV6DstMasked(pkt OxmIpV6DstMasked) error

func (*OxmIpV6DstMaskedConn) WriteOxmIpV6DstMaskeds

func (c *OxmIpV6DstMaskedConn) WriteOxmIpV6DstMaskeds(pkts []OxmIpV6DstMasked) error

type OxmIpV6Src

type OxmIpV6Src struct {
	OxmField
}

func NewOxmIpV6Src

func NewOxmIpV6Src() OxmIpV6Src

func NewOxmIpV6SrcWithBuf

func NewOxmIpV6SrcWithBuf(b []byte) OxmIpV6Src

func ToOxmIpV6Src

func ToOxmIpV6Src(p OxmField) (OxmIpV6Src, error)

func (OxmIpV6Src) Addr

func (this OxmIpV6Src) Addr() [16]uint8

func (OxmIpV6Src) AddrOffset

func (this OxmIpV6Src) AddrOffset() int

func (OxmIpV6Src) Clone

func (this OxmIpV6Src) Clone() (OxmIpV6Src, error)

func (*OxmIpV6Src) Init

func (this *OxmIpV6Src) Init()

func (*OxmIpV6Src) SetAddr

func (this *OxmIpV6Src) SetAddr(a [16]uint8)

func (OxmIpV6Src) Size

func (this OxmIpV6Src) Size() int

type OxmIpV6SrcConn

type OxmIpV6SrcConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV6SrcConn

func NewOxmIpV6SrcConn(c net.Conn) OxmIpV6SrcConn

func (*OxmIpV6SrcConn) Flush

func (c *OxmIpV6SrcConn) Flush() error

func (*OxmIpV6SrcConn) ReadOxmIpV6Src

func (c *OxmIpV6SrcConn) ReadOxmIpV6Src() (OxmIpV6Src, error)

func (*OxmIpV6SrcConn) ReadOxmIpV6Srcs

func (c *OxmIpV6SrcConn) ReadOxmIpV6Srcs(pkts []OxmIpV6Src) (int, error)

func (*OxmIpV6SrcConn) WriteOxmIpV6Src

func (c *OxmIpV6SrcConn) WriteOxmIpV6Src(pkt OxmIpV6Src) error

func (*OxmIpV6SrcConn) WriteOxmIpV6Srcs

func (c *OxmIpV6SrcConn) WriteOxmIpV6Srcs(pkts []OxmIpV6Src) error

type OxmIpV6SrcMasked

type OxmIpV6SrcMasked struct {
	OxmField
}

func NewOxmIpV6SrcMasked

func NewOxmIpV6SrcMasked() OxmIpV6SrcMasked

func NewOxmIpV6SrcMaskedWithBuf

func NewOxmIpV6SrcMaskedWithBuf(b []byte) OxmIpV6SrcMasked

func ToOxmIpV6SrcMasked

func ToOxmIpV6SrcMasked(p OxmField) (OxmIpV6SrcMasked, error)

func (OxmIpV6SrcMasked) Addr

func (this OxmIpV6SrcMasked) Addr() [16]uint8

func (OxmIpV6SrcMasked) AddrOffset

func (this OxmIpV6SrcMasked) AddrOffset() int

func (OxmIpV6SrcMasked) Clone

func (this OxmIpV6SrcMasked) Clone() (OxmIpV6SrcMasked, error)

func (*OxmIpV6SrcMasked) Init

func (this *OxmIpV6SrcMasked) Init()

func (OxmIpV6SrcMasked) Mask

func (this OxmIpV6SrcMasked) Mask() [16]uint8

func (OxmIpV6SrcMasked) MaskOffset

func (this OxmIpV6SrcMasked) MaskOffset() int

func (*OxmIpV6SrcMasked) SetAddr

func (this *OxmIpV6SrcMasked) SetAddr(a [16]uint8)

func (*OxmIpV6SrcMasked) SetMask

func (this *OxmIpV6SrcMasked) SetMask(m [16]uint8)

func (OxmIpV6SrcMasked) Size

func (this OxmIpV6SrcMasked) Size() int

type OxmIpV6SrcMaskedConn

type OxmIpV6SrcMaskedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmIpV6SrcMaskedConn

func NewOxmIpV6SrcMaskedConn(c net.Conn) OxmIpV6SrcMaskedConn

func (*OxmIpV6SrcMaskedConn) Flush

func (c *OxmIpV6SrcMaskedConn) Flush() error

func (*OxmIpV6SrcMaskedConn) ReadOxmIpV6SrcMasked

func (c *OxmIpV6SrcMaskedConn) ReadOxmIpV6SrcMasked() (OxmIpV6SrcMasked, error)

func (*OxmIpV6SrcMaskedConn) ReadOxmIpV6SrcMaskeds

func (c *OxmIpV6SrcMaskedConn) ReadOxmIpV6SrcMaskeds(pkts []OxmIpV6SrcMasked) (int, error)

func (*OxmIpV6SrcMaskedConn) WriteOxmIpV6SrcMasked

func (c *OxmIpV6SrcMaskedConn) WriteOxmIpV6SrcMasked(pkt OxmIpV6SrcMasked) error

func (*OxmIpV6SrcMaskedConn) WriteOxmIpV6SrcMaskeds

func (c *OxmIpV6SrcMaskedConn) WriteOxmIpV6SrcMaskeds(pkts []OxmIpV6SrcMasked) error

type OxmTcpDst

type OxmTcpDst struct {
	OxmField
}

func NewOxmTcpDst

func NewOxmTcpDst() OxmTcpDst

func NewOxmTcpDstWithBuf

func NewOxmTcpDstWithBuf(b []byte) OxmTcpDst

func ToOxmTcpDst

func ToOxmTcpDst(p OxmField) (OxmTcpDst, error)

func (OxmTcpDst) Clone

func (this OxmTcpDst) Clone() (OxmTcpDst, error)

func (*OxmTcpDst) Init

func (this *OxmTcpDst) Init()

func (OxmTcpDst) Port

func (this OxmTcpDst) Port() uint16

func (OxmTcpDst) PortOffset

func (this OxmTcpDst) PortOffset() int

func (*OxmTcpDst) SetPort

func (this *OxmTcpDst) SetPort(p uint16)

func (OxmTcpDst) Size

func (this OxmTcpDst) Size() int

type OxmTcpDstConn

type OxmTcpDstConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmTcpDstConn

func NewOxmTcpDstConn(c net.Conn) OxmTcpDstConn

func (*OxmTcpDstConn) Flush

func (c *OxmTcpDstConn) Flush() error

func (*OxmTcpDstConn) ReadOxmTcpDst

func (c *OxmTcpDstConn) ReadOxmTcpDst() (OxmTcpDst, error)

func (*OxmTcpDstConn) ReadOxmTcpDsts

func (c *OxmTcpDstConn) ReadOxmTcpDsts(pkts []OxmTcpDst) (int, error)

func (*OxmTcpDstConn) WriteOxmTcpDst

func (c *OxmTcpDstConn) WriteOxmTcpDst(pkt OxmTcpDst) error

func (*OxmTcpDstConn) WriteOxmTcpDsts

func (c *OxmTcpDstConn) WriteOxmTcpDsts(pkts []OxmTcpDst) error

type OxmTcpSrc

type OxmTcpSrc struct {
	OxmField
}

func NewOxmTcpSrc

func NewOxmTcpSrc() OxmTcpSrc

func NewOxmTcpSrcWithBuf

func NewOxmTcpSrcWithBuf(b []byte) OxmTcpSrc

func ToOxmTcpSrc

func ToOxmTcpSrc(p OxmField) (OxmTcpSrc, error)

func (OxmTcpSrc) Clone

func (this OxmTcpSrc) Clone() (OxmTcpSrc, error)

func (*OxmTcpSrc) Init

func (this *OxmTcpSrc) Init()

func (OxmTcpSrc) Port

func (this OxmTcpSrc) Port() uint16

func (OxmTcpSrc) PortOffset

func (this OxmTcpSrc) PortOffset() int

func (*OxmTcpSrc) SetPort

func (this *OxmTcpSrc) SetPort(p uint16)

func (OxmTcpSrc) Size

func (this OxmTcpSrc) Size() int

type OxmTcpSrcConn

type OxmTcpSrcConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewOxmTcpSrcConn

func NewOxmTcpSrcConn(c net.Conn) OxmTcpSrcConn

func (*OxmTcpSrcConn) Flush

func (c *OxmTcpSrcConn) Flush() error

func (*OxmTcpSrcConn) ReadOxmTcpSrc

func (c *OxmTcpSrcConn) ReadOxmTcpSrc() (OxmTcpSrc, error)

func (*OxmTcpSrcConn) ReadOxmTcpSrcs

func (c *OxmTcpSrcConn) ReadOxmTcpSrcs(pkts []OxmTcpSrc) (int, error)

func (*OxmTcpSrcConn) WriteOxmTcpSrc

func (c *OxmTcpSrcConn) WriteOxmTcpSrc(pkt OxmTcpSrc) error

func (*OxmTcpSrcConn) WriteOxmTcpSrcs

func (c *OxmTcpSrcConn) WriteOxmTcpSrcs(pkts []OxmTcpSrc) error

type PacketIn

type PacketIn struct {
	Header12
}

func NewPacketIn

func NewPacketIn() PacketIn

func NewPacketInWithBuf

func NewPacketInWithBuf(b []byte) PacketIn

func ToPacketIn

func ToPacketIn(p Header12) (PacketIn, error)

func (*PacketIn) AddData

func (this *PacketIn) AddData(d uint8)

func (PacketIn) BufferId

func (this PacketIn) BufferId() uint32

func (PacketIn) BufferIdOffset

func (this PacketIn) BufferIdOffset() int

func (PacketIn) Clone

func (this PacketIn) Clone() (PacketIn, error)

func (PacketIn) Data

func (this PacketIn) Data() []uint8

func (PacketIn) DataOffset

func (this PacketIn) DataOffset() int

func (PacketIn) DataSize

func (this PacketIn) DataSize() int

func (*PacketIn) Init

func (this *PacketIn) Init()

func (PacketIn) Match

func (this PacketIn) Match() Match

func (PacketIn) MatchOffset

func (this PacketIn) MatchOffset() int

func (PacketIn) MatchSize

func (this PacketIn) MatchSize() int

func (PacketIn) Pad

func (this PacketIn) Pad() [2]uint8

func (PacketIn) PadOffset

func (this PacketIn) PadOffset() int

func (PacketIn) Reason

func (this PacketIn) Reason() uint8

func (PacketIn) ReasonOffset

func (this PacketIn) ReasonOffset() int

func (*PacketIn) SetBufferId

func (this *PacketIn) SetBufferId(b uint32)

func (*PacketIn) SetMatch

func (this *PacketIn) SetMatch(m Match)

func (*PacketIn) SetPad

func (this *PacketIn) SetPad(p [2]uint8)

func (*PacketIn) SetReason

func (this *PacketIn) SetReason(r uint8)

func (*PacketIn) SetTableId

func (this *PacketIn) SetTableId(t uint8)

func (*PacketIn) SetTotalLen

func (this *PacketIn) SetTotalLen(t uint16)

func (PacketIn) Size

func (this PacketIn) Size() int

func (PacketIn) TableId

func (this PacketIn) TableId() uint8

func (PacketIn) TableIdOffset

func (this PacketIn) TableIdOffset() int

func (PacketIn) TotalLen

func (this PacketIn) TotalLen() uint16

func (PacketIn) TotalLenOffset

func (this PacketIn) TotalLenOffset() int

type PacketInConn

type PacketInConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPacketInConn

func NewPacketInConn(c net.Conn) PacketInConn

func (*PacketInConn) Flush

func (c *PacketInConn) Flush() error

func (*PacketInConn) ReadPacketIn

func (c *PacketInConn) ReadPacketIn() (PacketIn, error)

func (*PacketInConn) ReadPacketIns

func (c *PacketInConn) ReadPacketIns(pkts []PacketIn) (int, error)

func (*PacketInConn) WritePacketIn

func (c *PacketInConn) WritePacketIn(pkt PacketIn) error

func (*PacketInConn) WritePacketIns

func (c *PacketInConn) WritePacketIns(pkts []PacketIn) error

type PacketInReason

type PacketInReason int
const (
	PR_NO_MATCH PacketInReason = 0
	PR_ACTION   PacketInReason = 1
)

type PacketOut

type PacketOut struct {
	Header12
}

func NewPacketOut

func NewPacketOut() PacketOut

func NewPacketOutWithBuf

func NewPacketOutWithBuf(b []byte) PacketOut

func ToPacketOut

func ToPacketOut(p Header12) (PacketOut, error)

func (PacketOut) Actions

func (this PacketOut) Actions() []Action

func (PacketOut) ActionsLen

func (this PacketOut) ActionsLen() uint16

func (PacketOut) ActionsLenOffset

func (this PacketOut) ActionsLenOffset() int

func (PacketOut) ActionsOffset

func (this PacketOut) ActionsOffset() int

func (PacketOut) ActionsSize

func (this PacketOut) ActionsSize() int

func (*PacketOut) AddActions

func (this *PacketOut) AddActions(a Action)

func (*PacketOut) AddData

func (this *PacketOut) AddData(d uint8)

func (PacketOut) BufferId

func (this PacketOut) BufferId() uint32

func (PacketOut) BufferIdOffset

func (this PacketOut) BufferIdOffset() int

func (PacketOut) Clone

func (this PacketOut) Clone() (PacketOut, error)

func (PacketOut) Data

func (this PacketOut) Data() []uint8

func (PacketOut) DataOffset

func (this PacketOut) DataOffset() int

func (PacketOut) DataSize

func (this PacketOut) DataSize() int

func (PacketOut) InPort

func (this PacketOut) InPort() uint32

func (PacketOut) InPortOffset

func (this PacketOut) InPortOffset() int

func (*PacketOut) Init

func (this *PacketOut) Init()

func (PacketOut) Pad

func (this PacketOut) Pad() [6]uint8

func (PacketOut) PadOffset

func (this PacketOut) PadOffset() int

func (*PacketOut) SetActionsLen

func (this *PacketOut) SetActionsLen(a uint16)

func (*PacketOut) SetBufferId

func (this *PacketOut) SetBufferId(b uint32)

func (*PacketOut) SetInPort

func (this *PacketOut) SetInPort(i uint32)

func (*PacketOut) SetPad

func (this *PacketOut) SetPad(p [6]uint8)

func (PacketOut) Size

func (this PacketOut) Size() int

type PacketOutConn

type PacketOutConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPacketOutConn

func NewPacketOutConn(c net.Conn) PacketOutConn

func (*PacketOutConn) Flush

func (c *PacketOutConn) Flush() error

func (*PacketOutConn) ReadPacketOut

func (c *PacketOutConn) ReadPacketOut() (PacketOut, error)

func (*PacketOutConn) ReadPacketOuts

func (c *PacketOutConn) ReadPacketOuts(pkts []PacketOut) (int, error)

func (*PacketOutConn) WritePacketOut

func (c *PacketOutConn) WritePacketOut(pkt PacketOut) error

func (*PacketOutConn) WritePacketOuts

func (c *PacketOutConn) WritePacketOuts(pkts []PacketOut) error

type PacketQueue

type PacketQueue struct {
	packet.Packet
}

func NewPacketQueue

func NewPacketQueue() PacketQueue

func NewPacketQueueWithBuf

func NewPacketQueueWithBuf(b []byte) PacketQueue

func ToPacketQueue

func ToPacketQueue(p packet.Packet) (PacketQueue, error)

func (*PacketQueue) AddProperties

func (this *PacketQueue) AddProperties(p QueuePropHeader)

func (PacketQueue) Clone

func (this PacketQueue) Clone() (PacketQueue, error)

func (*PacketQueue) Init

func (this *PacketQueue) Init()

func (PacketQueue) Len

func (this PacketQueue) Len() uint16

func (PacketQueue) LenOffset

func (this PacketQueue) LenOffset() int

func (PacketQueue) Pad

func (this PacketQueue) Pad() [2]uint8

func (PacketQueue) PadOffset

func (this PacketQueue) PadOffset() int

func (PacketQueue) Properties

func (this PacketQueue) Properties() []QueuePropHeader

func (PacketQueue) PropertiesOffset

func (this PacketQueue) PropertiesOffset() int

func (PacketQueue) PropertiesSize

func (this PacketQueue) PropertiesSize() int

func (PacketQueue) QueueId

func (this PacketQueue) QueueId() uint32

func (PacketQueue) QueueIdOffset

func (this PacketQueue) QueueIdOffset() int

func (*PacketQueue) SetLen

func (this *PacketQueue) SetLen(l uint16)

func (*PacketQueue) SetPad

func (this *PacketQueue) SetPad(p [2]uint8)

func (*PacketQueue) SetQueueId

func (this *PacketQueue) SetQueueId(q uint32)

func (PacketQueue) Size

func (this PacketQueue) Size() int

type PacketQueueConn

type PacketQueueConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPacketQueueConn

func NewPacketQueueConn(c net.Conn) PacketQueueConn

func (*PacketQueueConn) Flush

func (c *PacketQueueConn) Flush() error

func (*PacketQueueConn) ReadPacketQueue

func (c *PacketQueueConn) ReadPacketQueue() (PacketQueue, error)

func (*PacketQueueConn) ReadPacketQueues

func (c *PacketQueueConn) ReadPacketQueues(pkts []PacketQueue) (int, error)

func (*PacketQueueConn) WritePacketQueue

func (c *PacketQueueConn) WritePacketQueue(pkt PacketQueue) error

func (*PacketQueueConn) WritePacketQueues

func (c *PacketQueueConn) WritePacketQueues(pkts []PacketQueue) error

type Port

type Port struct {
	packet.Packet
}

func NewPort

func NewPort() Port

func NewPortWithBuf

func NewPortWithBuf(b []byte) Port

func ToPort

func ToPort(p packet.Packet) (Port, error)

func (Port) Advertised

func (this Port) Advertised() uint32

func (Port) AdvertisedOffset

func (this Port) AdvertisedOffset() int

func (Port) Clone

func (this Port) Clone() (Port, error)

func (Port) Config

func (this Port) Config() uint32

func (Port) ConfigOffset

func (this Port) ConfigOffset() int

func (Port) Curr

func (this Port) Curr() uint32

func (Port) CurrOffset

func (this Port) CurrOffset() int

func (Port) CurrSpeed

func (this Port) CurrSpeed() uint32

func (Port) CurrSpeedOffset

func (this Port) CurrSpeedOffset() int

func (Port) HwAddr

func (this Port) HwAddr() [6]uint8

func (Port) HwAddrOffset

func (this Port) HwAddrOffset() int

func (*Port) Init

func (this *Port) Init()

func (Port) MaxSpeed

func (this Port) MaxSpeed() uint32

func (Port) MaxSpeedOffset

func (this Port) MaxSpeedOffset() int

func (Port) Name

func (this Port) Name() [16]byte

func (Port) NameOffset

func (this Port) NameOffset() int

func (Port) Pad

func (this Port) Pad() [4]uint8

func (Port) Pad2

func (this Port) Pad2() [2]uint8

func (Port) Pad2Offset

func (this Port) Pad2Offset() int

func (Port) PadOffset

func (this Port) PadOffset() int

func (Port) Peer

func (this Port) Peer() uint32

func (Port) PeerOffset

func (this Port) PeerOffset() int

func (Port) PortNo

func (this Port) PortNo() uint32

func (Port) PortNoOffset

func (this Port) PortNoOffset() int

func (*Port) SetAdvertised

func (this *Port) SetAdvertised(a uint32)

func (*Port) SetConfig

func (this *Port) SetConfig(c uint32)

func (*Port) SetCurr

func (this *Port) SetCurr(c uint32)

func (*Port) SetCurrSpeed

func (this *Port) SetCurrSpeed(c uint32)

func (*Port) SetHwAddr

func (this *Port) SetHwAddr(h [6]uint8)

func (*Port) SetMaxSpeed

func (this *Port) SetMaxSpeed(m uint32)

func (*Port) SetName

func (this *Port) SetName(n [16]byte)

func (*Port) SetPad

func (this *Port) SetPad(p [4]uint8)

func (*Port) SetPad2

func (this *Port) SetPad2(p [2]uint8)

func (*Port) SetPeer

func (this *Port) SetPeer(p uint32)

func (*Port) SetPortNo

func (this *Port) SetPortNo(p uint32)

func (*Port) SetState

func (this *Port) SetState(s uint32)

func (*Port) SetSupported

func (this *Port) SetSupported(s uint32)

func (Port) Size

func (this Port) Size() int

func (Port) State

func (this Port) State() uint32

func (Port) StateOffset

func (this Port) StateOffset() int

func (Port) Supported

func (this Port) Supported() uint32

func (Port) SupportedOffset

func (this Port) SupportedOffset() int

type PortConfig

type PortConfig int
const (
	PPC_PORT_DOWN    PortConfig = 1
	PPC_NO_RECV      PortConfig = 4
	PPC_NO_FWD       PortConfig = 32
	PPC_NO_PACKET_IN PortConfig = 64
)

type PortConn

type PortConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPortConn

func NewPortConn(c net.Conn) PortConn

func (*PortConn) Flush

func (c *PortConn) Flush() error

func (*PortConn) ReadPort

func (c *PortConn) ReadPort() (Port, error)

func (*PortConn) ReadPorts

func (c *PortConn) ReadPorts(pkts []Port) (int, error)

func (*PortConn) WritePort

func (c *PortConn) WritePort(pkt Port) error

func (*PortConn) WritePorts

func (c *PortConn) WritePorts(pkts []Port) error

type PortFeatures

type PortFeatures int
const (
	PPF_10MB_HD    PortFeatures = 1
	PPF_10MB_FD    PortFeatures = 2
	PPF_100MB_HD   PortFeatures = 4
	PPF_100MB_FD   PortFeatures = 8
	PPF_1GB_HD     PortFeatures = 16
	PPF_1GB_FD     PortFeatures = 32
	PPF_10GB_FD    PortFeatures = 64
	PPF_40GB_FD    PortFeatures = 128
	PPF_100GB_FD   PortFeatures = 256
	PPF_1TB_FD     PortFeatures = 512
	PPF_OTHER      PortFeatures = 1024
	PPF_COPPER     PortFeatures = 2048
	PPF_FIBER      PortFeatures = 4096
	PPF_AUTONEG    PortFeatures = 8192
	PPF_PAUSE      PortFeatures = 16384
	PPF_PAUSE_ASYM PortFeatures = 32768
)

type PortMod

type PortMod struct {
	Header12
}

func NewPortMod

func NewPortMod() PortMod

func NewPortModWithBuf

func NewPortModWithBuf(b []byte) PortMod

func ToPortMod

func ToPortMod(p Header12) (PortMod, error)

func (PortMod) Advertise

func (this PortMod) Advertise() uint32

func (PortMod) AdvertiseOffset

func (this PortMod) AdvertiseOffset() int

func (PortMod) Clone

func (this PortMod) Clone() (PortMod, error)

func (PortMod) Config

func (this PortMod) Config() uint32

func (PortMod) ConfigOffset

func (this PortMod) ConfigOffset() int

func (PortMod) HwAddr

func (this PortMod) HwAddr() [6]uint8

func (PortMod) HwAddrOffset

func (this PortMod) HwAddrOffset() int

func (*PortMod) Init

func (this *PortMod) Init()

func (PortMod) Mask

func (this PortMod) Mask() uint32

func (PortMod) MaskOffset

func (this PortMod) MaskOffset() int

func (PortMod) Pad

func (this PortMod) Pad() [4]uint8

func (PortMod) PadOffset

func (this PortMod) PadOffset() int

func (PortMod) PortNo

func (this PortMod) PortNo() uint16

func (PortMod) PortNoOffset

func (this PortMod) PortNoOffset() int

func (*PortMod) SetAdvertise

func (this *PortMod) SetAdvertise(a uint32)

func (*PortMod) SetConfig

func (this *PortMod) SetConfig(c uint32)

func (*PortMod) SetHwAddr

func (this *PortMod) SetHwAddr(h [6]uint8)

func (*PortMod) SetMask

func (this *PortMod) SetMask(m uint32)

func (*PortMod) SetPad

func (this *PortMod) SetPad(p [4]uint8)

func (*PortMod) SetPortNo

func (this *PortMod) SetPortNo(p uint16)

func (PortMod) Size

func (this PortMod) Size() int

type PortModConn

type PortModConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPortModConn

func NewPortModConn(c net.Conn) PortModConn

func (*PortModConn) Flush

func (c *PortModConn) Flush() error

func (*PortModConn) ReadPortMod

func (c *PortModConn) ReadPortMod() (PortMod, error)

func (*PortModConn) ReadPortMods

func (c *PortModConn) ReadPortMods(pkts []PortMod) (int, error)

func (*PortModConn) WritePortMod

func (c *PortModConn) WritePortMod(pkt PortMod) error

func (*PortModConn) WritePortMods

func (c *PortModConn) WritePortMods(pkts []PortMod) error

type PortReason

type PortReason int
const (
	PPR_ADD    PortReason = 0
	PPR_DELETE PortReason = 1
	PPR_MODIFY PortReason = 2
)

type PortState

type PortState int
const (
	PPS_LINK_DOWN PortState = 1
	PPS_BLOCKED   PortState = 2
	PPS_LIVE      PortState = 4
)

type PortStats

type PortStats struct {
	StatsReply
}

func NewPortStats

func NewPortStats() PortStats

func NewPortStatsWithBuf

func NewPortStatsWithBuf(b []byte) PortStats

func ToPortStats

func ToPortStats(p StatsReply) (PortStats, error)

func (PortStats) Clone

func (this PortStats) Clone() (PortStats, error)

func (PortStats) Collisions

func (this PortStats) Collisions() uint64

func (PortStats) CollisionsOffset

func (this PortStats) CollisionsOffset() int

func (*PortStats) Init

func (this *PortStats) Init()

func (PortStats) Pad

func (this PortStats) Pad() [6]uint8

func (PortStats) PadOffset

func (this PortStats) PadOffset() int

func (PortStats) PortNo

func (this PortStats) PortNo() uint16

func (PortStats) PortNoOffset

func (this PortStats) PortNoOffset() int

func (PortStats) RxBytes

func (this PortStats) RxBytes() uint64

func (PortStats) RxBytesOffset

func (this PortStats) RxBytesOffset() int

func (PortStats) RxCrcErr

func (this PortStats) RxCrcErr() uint64

func (PortStats) RxCrcErrOffset

func (this PortStats) RxCrcErrOffset() int

func (PortStats) RxDropped

func (this PortStats) RxDropped() uint64

func (PortStats) RxDroppedOffset

func (this PortStats) RxDroppedOffset() int

func (PortStats) RxErrors

func (this PortStats) RxErrors() uint64

func (PortStats) RxErrorsOffset

func (this PortStats) RxErrorsOffset() int

func (PortStats) RxFrameErr

func (this PortStats) RxFrameErr() uint64

func (PortStats) RxFrameErrOffset

func (this PortStats) RxFrameErrOffset() int

func (PortStats) RxOverErr

func (this PortStats) RxOverErr() uint64

func (PortStats) RxOverErrOffset

func (this PortStats) RxOverErrOffset() int

func (PortStats) RxPackets

func (this PortStats) RxPackets() uint64

func (PortStats) RxPacketsOffset

func (this PortStats) RxPacketsOffset() int

func (*PortStats) SetCollisions

func (this *PortStats) SetCollisions(c uint64)

func (*PortStats) SetPad

func (this *PortStats) SetPad(p [6]uint8)

func (*PortStats) SetPortNo

func (this *PortStats) SetPortNo(p uint16)

func (*PortStats) SetRxBytes

func (this *PortStats) SetRxBytes(r uint64)

func (*PortStats) SetRxCrcErr

func (this *PortStats) SetRxCrcErr(r uint64)

func (*PortStats) SetRxDropped

func (this *PortStats) SetRxDropped(r uint64)

func (*PortStats) SetRxErrors

func (this *PortStats) SetRxErrors(r uint64)

func (*PortStats) SetRxFrameErr

func (this *PortStats) SetRxFrameErr(r uint64)

func (*PortStats) SetRxOverErr

func (this *PortStats) SetRxOverErr(r uint64)

func (*PortStats) SetRxPackets

func (this *PortStats) SetRxPackets(r uint64)

func (*PortStats) SetTxBytes

func (this *PortStats) SetTxBytes(t uint64)

func (*PortStats) SetTxDropped

func (this *PortStats) SetTxDropped(t uint64)

func (*PortStats) SetTxErrors

func (this *PortStats) SetTxErrors(t uint64)

func (*PortStats) SetTxPackets

func (this *PortStats) SetTxPackets(t uint64)

func (PortStats) Size

func (this PortStats) Size() int

func (PortStats) TxBytes

func (this PortStats) TxBytes() uint64

func (PortStats) TxBytesOffset

func (this PortStats) TxBytesOffset() int

func (PortStats) TxDropped

func (this PortStats) TxDropped() uint64

func (PortStats) TxDroppedOffset

func (this PortStats) TxDroppedOffset() int

func (PortStats) TxErrors

func (this PortStats) TxErrors() uint64

func (PortStats) TxErrorsOffset

func (this PortStats) TxErrorsOffset() int

func (PortStats) TxPackets

func (this PortStats) TxPackets() uint64

func (PortStats) TxPacketsOffset

func (this PortStats) TxPacketsOffset() int

type PortStatsConn

type PortStatsConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPortStatsConn

func NewPortStatsConn(c net.Conn) PortStatsConn

func (*PortStatsConn) Flush

func (c *PortStatsConn) Flush() error

func (*PortStatsConn) ReadPortStats

func (c *PortStatsConn) ReadPortStats() (PortStats, error)

func (*PortStatsConn) ReadPortStatss

func (c *PortStatsConn) ReadPortStatss(pkts []PortStats) (int, error)

func (*PortStatsConn) WritePortStats

func (c *PortStatsConn) WritePortStats(pkt PortStats) error

func (*PortStatsConn) WritePortStatss

func (c *PortStatsConn) WritePortStatss(pkts []PortStats) error

type PortStatsRequest

type PortStatsRequest struct {
	StatsRequest
}

func NewPortStatsRequest

func NewPortStatsRequest() PortStatsRequest

func NewPortStatsRequestWithBuf

func NewPortStatsRequestWithBuf(b []byte) PortStatsRequest

func ToPortStatsRequest

func ToPortStatsRequest(p StatsRequest) (PortStatsRequest, error)

func (PortStatsRequest) Clone

func (this PortStatsRequest) Clone() (PortStatsRequest, error)

func (*PortStatsRequest) Init

func (this *PortStatsRequest) Init()

func (PortStatsRequest) Pad

func (this PortStatsRequest) Pad() [6]uint8

func (PortStatsRequest) PadOffset

func (this PortStatsRequest) PadOffset() int

func (PortStatsRequest) PortNo

func (this PortStatsRequest) PortNo() uint16

func (PortStatsRequest) PortNoOffset

func (this PortStatsRequest) PortNoOffset() int

func (*PortStatsRequest) SetPad

func (this *PortStatsRequest) SetPad(p [6]uint8)

func (*PortStatsRequest) SetPortNo

func (this *PortStatsRequest) SetPortNo(p uint16)

func (PortStatsRequest) Size

func (this PortStatsRequest) Size() int

type PortStatsRequestConn

type PortStatsRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPortStatsRequestConn

func NewPortStatsRequestConn(c net.Conn) PortStatsRequestConn

func (*PortStatsRequestConn) Flush

func (c *PortStatsRequestConn) Flush() error

func (*PortStatsRequestConn) ReadPortStatsRequest

func (c *PortStatsRequestConn) ReadPortStatsRequest() (PortStatsRequest, error)

func (*PortStatsRequestConn) ReadPortStatsRequests

func (c *PortStatsRequestConn) ReadPortStatsRequests(pkts []PortStatsRequest) (int, error)

func (*PortStatsRequestConn) WritePortStatsRequest

func (c *PortStatsRequestConn) WritePortStatsRequest(pkt PortStatsRequest) error

func (*PortStatsRequestConn) WritePortStatsRequests

func (c *PortStatsRequestConn) WritePortStatsRequests(pkts []PortStatsRequest) error

type PortStatus

type PortStatus struct {
	Header12
}

func NewPortStatus

func NewPortStatus() PortStatus

func NewPortStatusWithBuf

func NewPortStatusWithBuf(b []byte) PortStatus

func ToPortStatus

func ToPortStatus(p Header12) (PortStatus, error)

func (PortStatus) Clone

func (this PortStatus) Clone() (PortStatus, error)

func (PortStatus) Desc

func (this PortStatus) Desc() Port

func (PortStatus) DescOffset

func (this PortStatus) DescOffset() int

func (*PortStatus) Init

func (this *PortStatus) Init()

func (PortStatus) Pad

func (this PortStatus) Pad() [7]uint8

func (PortStatus) PadOffset

func (this PortStatus) PadOffset() int

func (PortStatus) Reason

func (this PortStatus) Reason() uint8

func (PortStatus) ReasonOffset

func (this PortStatus) ReasonOffset() int

func (*PortStatus) SetDesc

func (this *PortStatus) SetDesc(d Port)

func (*PortStatus) SetPad

func (this *PortStatus) SetPad(p [7]uint8)

func (*PortStatus) SetReason

func (this *PortStatus) SetReason(r uint8)

func (PortStatus) Size

func (this PortStatus) Size() int

type PortStatusConn

type PortStatusConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewPortStatusConn

func NewPortStatusConn(c net.Conn) PortStatusConn

func (*PortStatusConn) Flush

func (c *PortStatusConn) Flush() error

func (*PortStatusConn) ReadPortStatus

func (c *PortStatusConn) ReadPortStatus() (PortStatus, error)

func (*PortStatusConn) ReadPortStatuss

func (c *PortStatusConn) ReadPortStatuss(pkts []PortStatus) (int, error)

func (*PortStatusConn) WritePortStatus

func (c *PortStatusConn) WritePortStatus(pkt PortStatus) error

func (*PortStatusConn) WritePortStatuss

func (c *PortStatusConn) WritePortStatuss(pkts []PortStatus) error

type Port_modFailedCode

type Port_modFailedCode int
const (
	PPMFC_BAD_PORT    Port_modFailedCode = 0
	PPMFC_BAD_HW_ADDR Port_modFailedCode = 1
)

type Ports

type Ports int
const (
	PP_MAX        Ports = 4294967040
	PP_IN_PORT    Ports = 4294967288
	PP_TABLE      Ports = 4294967289
	PP_NORMAL     Ports = 4294967290
	PP_FLOOD      Ports = 4294967291
	PP_ALL        Ports = 4294967292
	PP_CONTROLLER Ports = 4294967293
	PP_LOCAL      Ports = 4294967294
	PP_ANY        Ports = 4294967295
)

type QueueGetConfigReply

type QueueGetConfigReply struct {
	Header12
}

func NewQueueGetConfigReply

func NewQueueGetConfigReply() QueueGetConfigReply

func NewQueueGetConfigReplyWithBuf

func NewQueueGetConfigReplyWithBuf(b []byte) QueueGetConfigReply

func ToQueueGetConfigReply

func ToQueueGetConfigReply(p Header12) (QueueGetConfigReply, error)

func (*QueueGetConfigReply) AddQueues

func (this *QueueGetConfigReply) AddQueues(q PacketQueue)

func (QueueGetConfigReply) Clone

func (*QueueGetConfigReply) Init

func (this *QueueGetConfigReply) Init()

func (QueueGetConfigReply) Pad

func (this QueueGetConfigReply) Pad() [6]uint8

func (QueueGetConfigReply) PadOffset

func (this QueueGetConfigReply) PadOffset() int

func (QueueGetConfigReply) Port

func (this QueueGetConfigReply) Port() uint16

func (QueueGetConfigReply) PortOffset

func (this QueueGetConfigReply) PortOffset() int

func (QueueGetConfigReply) Queues

func (this QueueGetConfigReply) Queues() []PacketQueue

func (QueueGetConfigReply) QueuesOffset

func (this QueueGetConfigReply) QueuesOffset() int

func (QueueGetConfigReply) QueuesSize

func (this QueueGetConfigReply) QueuesSize() int

func (*QueueGetConfigReply) SetPad

func (this *QueueGetConfigReply) SetPad(p [6]uint8)

func (*QueueGetConfigReply) SetPort

func (this *QueueGetConfigReply) SetPort(p uint16)

func (QueueGetConfigReply) Size

func (this QueueGetConfigReply) Size() int

type QueueGetConfigReplyConn

type QueueGetConfigReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewQueueGetConfigReplyConn

func NewQueueGetConfigReplyConn(c net.Conn) QueueGetConfigReplyConn

func (*QueueGetConfigReplyConn) Flush

func (c *QueueGetConfigReplyConn) Flush() error

func (*QueueGetConfigReplyConn) ReadQueueGetConfigReply

func (c *QueueGetConfigReplyConn) ReadQueueGetConfigReply() (QueueGetConfigReply, error)

func (*QueueGetConfigReplyConn) ReadQueueGetConfigReplys

func (c *QueueGetConfigReplyConn) ReadQueueGetConfigReplys(pkts []QueueGetConfigReply) (int, error)

func (*QueueGetConfigReplyConn) WriteQueueGetConfigReply

func (c *QueueGetConfigReplyConn) WriteQueueGetConfigReply(pkt QueueGetConfigReply) error

func (*QueueGetConfigReplyConn) WriteQueueGetConfigReplys

func (c *QueueGetConfigReplyConn) WriteQueueGetConfigReplys(pkts []QueueGetConfigReply) error

type QueueGetConfigRequest

type QueueGetConfigRequest struct {
	Header12
}

func NewQueueGetConfigRequest

func NewQueueGetConfigRequest() QueueGetConfigRequest

func NewQueueGetConfigRequestWithBuf

func NewQueueGetConfigRequestWithBuf(b []byte) QueueGetConfigRequest

func ToQueueGetConfigRequest

func ToQueueGetConfigRequest(p Header12) (QueueGetConfigRequest, error)

func (*QueueGetConfigRequest) AddPad

func (this *QueueGetConfigRequest) AddPad(p uint8)

func (QueueGetConfigRequest) Clone

func (*QueueGetConfigRequest) Init

func (this *QueueGetConfigRequest) Init()

func (QueueGetConfigRequest) Pad

func (this QueueGetConfigRequest) Pad() []uint8

func (QueueGetConfigRequest) PadOffset

func (this QueueGetConfigRequest) PadOffset() int

func (QueueGetConfigRequest) PadSize

func (this QueueGetConfigRequest) PadSize() int

func (QueueGetConfigRequest) Port

func (this QueueGetConfigRequest) Port() uint16

func (QueueGetConfigRequest) PortOffset

func (this QueueGetConfigRequest) PortOffset() int

func (*QueueGetConfigRequest) SetPort

func (this *QueueGetConfigRequest) SetPort(p uint16)

func (QueueGetConfigRequest) Size

func (this QueueGetConfigRequest) Size() int

type QueueGetConfigRequestConn

type QueueGetConfigRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewQueueGetConfigRequestConn

func NewQueueGetConfigRequestConn(c net.Conn) QueueGetConfigRequestConn

func (*QueueGetConfigRequestConn) Flush

func (c *QueueGetConfigRequestConn) Flush() error

func (*QueueGetConfigRequestConn) ReadQueueGetConfigRequest

func (c *QueueGetConfigRequestConn) ReadQueueGetConfigRequest() (QueueGetConfigRequest, error)

func (*QueueGetConfigRequestConn) ReadQueueGetConfigRequests

func (c *QueueGetConfigRequestConn) ReadQueueGetConfigRequests(pkts []QueueGetConfigRequest) (int, error)

func (*QueueGetConfigRequestConn) WriteQueueGetConfigRequest

func (c *QueueGetConfigRequestConn) WriteQueueGetConfigRequest(pkt QueueGetConfigRequest) error

func (*QueueGetConfigRequestConn) WriteQueueGetConfigRequests

func (c *QueueGetConfigRequestConn) WriteQueueGetConfigRequests(pkts []QueueGetConfigRequest) error

type QueueOpFailedCode

type QueueOpFailedCode int
const (
	PQC_BAD_PORT  QueueOpFailedCode = 0
	PQC_BAD_QUEUE QueueOpFailedCode = 1
	PQC_EPERM     QueueOpFailedCode = 2
)

type QueuePropHeader

type QueuePropHeader struct {
	packet.Packet
}

func NewQueuePropHeader

func NewQueuePropHeader() QueuePropHeader

func NewQueuePropHeaderWithBuf

func NewQueuePropHeaderWithBuf(b []byte) QueuePropHeader

func ToQueuePropHeader

func ToQueuePropHeader(p packet.Packet) (QueuePropHeader, error)

func (QueuePropHeader) Clone

func (this QueuePropHeader) Clone() (QueuePropHeader, error)

func (*QueuePropHeader) Init

func (this *QueuePropHeader) Init()

func (QueuePropHeader) Len

func (this QueuePropHeader) Len() uint16

func (QueuePropHeader) LenOffset

func (this QueuePropHeader) LenOffset() int

func (QueuePropHeader) Pad

func (this QueuePropHeader) Pad() [4]uint8

func (QueuePropHeader) PadOffset

func (this QueuePropHeader) PadOffset() int

func (QueuePropHeader) Property

func (this QueuePropHeader) Property() uint16

func (QueuePropHeader) PropertyOffset

func (this QueuePropHeader) PropertyOffset() int

func (*QueuePropHeader) SetLen

func (this *QueuePropHeader) SetLen(l uint16)

func (*QueuePropHeader) SetPad

func (this *QueuePropHeader) SetPad(p [4]uint8)

func (*QueuePropHeader) SetProperty

func (this *QueuePropHeader) SetProperty(p uint16)

func (QueuePropHeader) Size

func (this QueuePropHeader) Size() int

type QueuePropHeaderConn

type QueuePropHeaderConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewQueuePropHeaderConn

func NewQueuePropHeaderConn(c net.Conn) QueuePropHeaderConn

func (*QueuePropHeaderConn) Flush

func (c *QueuePropHeaderConn) Flush() error

func (*QueuePropHeaderConn) ReadQueuePropHeader

func (c *QueuePropHeaderConn) ReadQueuePropHeader() (QueuePropHeader, error)

func (*QueuePropHeaderConn) ReadQueuePropHeaders

func (c *QueuePropHeaderConn) ReadQueuePropHeaders(pkts []QueuePropHeader) (int, error)

func (*QueuePropHeaderConn) WriteQueuePropHeader

func (c *QueuePropHeaderConn) WriteQueuePropHeader(pkt QueuePropHeader) error

func (*QueuePropHeaderConn) WriteQueuePropHeaders

func (c *QueuePropHeaderConn) WriteQueuePropHeaders(pkts []QueuePropHeader) error

type QueuePropMinRate

type QueuePropMinRate struct {
	QueuePropHeader
}

func NewQueuePropMinRate

func NewQueuePropMinRate() QueuePropMinRate

func NewQueuePropMinRateWithBuf

func NewQueuePropMinRateWithBuf(b []byte) QueuePropMinRate

func ToQueuePropMinRate

func ToQueuePropMinRate(p QueuePropHeader) (QueuePropMinRate, error)

func (QueuePropMinRate) Clone

func (this QueuePropMinRate) Clone() (QueuePropMinRate, error)

func (*QueuePropMinRate) Init

func (this *QueuePropMinRate) Init()

func (QueuePropMinRate) Pad

func (this QueuePropMinRate) Pad() [6]uint8

func (QueuePropMinRate) PadOffset

func (this QueuePropMinRate) PadOffset() int

func (QueuePropMinRate) Rate

func (this QueuePropMinRate) Rate() uint16

func (QueuePropMinRate) RateOffset

func (this QueuePropMinRate) RateOffset() int

func (*QueuePropMinRate) SetPad

func (this *QueuePropMinRate) SetPad(p [6]uint8)

func (*QueuePropMinRate) SetRate

func (this *QueuePropMinRate) SetRate(r uint16)

func (QueuePropMinRate) Size

func (this QueuePropMinRate) Size() int

type QueuePropMinRateConn

type QueuePropMinRateConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewQueuePropMinRateConn

func NewQueuePropMinRateConn(c net.Conn) QueuePropMinRateConn

func (*QueuePropMinRateConn) Flush

func (c *QueuePropMinRateConn) Flush() error

func (*QueuePropMinRateConn) ReadQueuePropMinRate

func (c *QueuePropMinRateConn) ReadQueuePropMinRate() (QueuePropMinRate, error)

func (*QueuePropMinRateConn) ReadQueuePropMinRates

func (c *QueuePropMinRateConn) ReadQueuePropMinRates(pkts []QueuePropMinRate) (int, error)

func (*QueuePropMinRateConn) WriteQueuePropMinRate

func (c *QueuePropMinRateConn) WriteQueuePropMinRate(pkt QueuePropMinRate) error

func (*QueuePropMinRateConn) WriteQueuePropMinRates

func (c *QueuePropMinRateConn) WriteQueuePropMinRates(pkts []QueuePropMinRate) error

type QueueProperties

type QueueProperties int
const (
	PQT_NONE     QueueProperties = 0
	PQT_MIN_RATE QueueProperties = 1
)

type QueueStats

type QueueStats struct {
	StatsReply
}

func NewQueueStats

func NewQueueStats() QueueStats

func NewQueueStatsWithBuf

func NewQueueStatsWithBuf(b []byte) QueueStats

func ToQueueStats

func ToQueueStats(p StatsReply) (QueueStats, error)

func (QueueStats) Clone

func (this QueueStats) Clone() (QueueStats, error)

func (*QueueStats) Init

func (this *QueueStats) Init()

func (QueueStats) Pad

func (this QueueStats) Pad() [2]uint8

func (QueueStats) PadOffset

func (this QueueStats) PadOffset() int

func (QueueStats) PortNo

func (this QueueStats) PortNo() uint16

func (QueueStats) PortNoOffset

func (this QueueStats) PortNoOffset() int

func (QueueStats) QueueId

func (this QueueStats) QueueId() uint32

func (QueueStats) QueueIdOffset

func (this QueueStats) QueueIdOffset() int

func (*QueueStats) SetPad

func (this *QueueStats) SetPad(p [2]uint8)

func (*QueueStats) SetPortNo

func (this *QueueStats) SetPortNo(p uint16)

func (*QueueStats) SetQueueId

func (this *QueueStats) SetQueueId(q uint32)

func (*QueueStats) SetTxBytes

func (this *QueueStats) SetTxBytes(t uint64)

func (*QueueStats) SetTxErrors

func (this *QueueStats) SetTxErrors(t uint64)

func (*QueueStats) SetTxPackets

func (this *QueueStats) SetTxPackets(t uint64)

func (QueueStats) Size

func (this QueueStats) Size() int

func (QueueStats) TxBytes

func (this QueueStats) TxBytes() uint64

func (QueueStats) TxBytesOffset

func (this QueueStats) TxBytesOffset() int

func (QueueStats) TxErrors

func (this QueueStats) TxErrors() uint64

func (QueueStats) TxErrorsOffset

func (this QueueStats) TxErrorsOffset() int

func (QueueStats) TxPackets

func (this QueueStats) TxPackets() uint64

func (QueueStats) TxPacketsOffset

func (this QueueStats) TxPacketsOffset() int

type QueueStatsConn

type QueueStatsConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewQueueStatsConn

func NewQueueStatsConn(c net.Conn) QueueStatsConn

func (*QueueStatsConn) Flush

func (c *QueueStatsConn) Flush() error

func (*QueueStatsConn) ReadQueueStats

func (c *QueueStatsConn) ReadQueueStats() (QueueStats, error)

func (*QueueStatsConn) ReadQueueStatss

func (c *QueueStatsConn) ReadQueueStatss(pkts []QueueStats) (int, error)

func (*QueueStatsConn) WriteQueueStats

func (c *QueueStatsConn) WriteQueueStats(pkt QueueStats) error

func (*QueueStatsConn) WriteQueueStatss

func (c *QueueStatsConn) WriteQueueStatss(pkts []QueueStats) error

type QueueStatsRequest

type QueueStatsRequest struct {
	StatsRequest
}

func NewQueueStatsRequest

func NewQueueStatsRequest() QueueStatsRequest

func NewQueueStatsRequestWithBuf

func NewQueueStatsRequestWithBuf(b []byte) QueueStatsRequest

func ToQueueStatsRequest

func ToQueueStatsRequest(p StatsRequest) (QueueStatsRequest, error)

func (QueueStatsRequest) Clone

func (this QueueStatsRequest) Clone() (QueueStatsRequest, error)

func (*QueueStatsRequest) Init

func (this *QueueStatsRequest) Init()

func (QueueStatsRequest) Pad

func (this QueueStatsRequest) Pad() [2]uint8

func (QueueStatsRequest) PadOffset

func (this QueueStatsRequest) PadOffset() int

func (QueueStatsRequest) PortNo

func (this QueueStatsRequest) PortNo() uint16

func (QueueStatsRequest) PortNoOffset

func (this QueueStatsRequest) PortNoOffset() int

func (QueueStatsRequest) QueueId

func (this QueueStatsRequest) QueueId() uint32

func (QueueStatsRequest) QueueIdOffset

func (this QueueStatsRequest) QueueIdOffset() int

func (*QueueStatsRequest) SetPad

func (this *QueueStatsRequest) SetPad(p [2]uint8)

func (*QueueStatsRequest) SetPortNo

func (this *QueueStatsRequest) SetPortNo(p uint16)

func (*QueueStatsRequest) SetQueueId

func (this *QueueStatsRequest) SetQueueId(q uint32)

func (QueueStatsRequest) Size

func (this QueueStatsRequest) Size() int

type QueueStatsRequestConn

type QueueStatsRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewQueueStatsRequestConn

func NewQueueStatsRequestConn(c net.Conn) QueueStatsRequestConn

func (*QueueStatsRequestConn) Flush

func (c *QueueStatsRequestConn) Flush() error

func (*QueueStatsRequestConn) ReadQueueStatsRequest

func (c *QueueStatsRequestConn) ReadQueueStatsRequest() (QueueStatsRequest, error)

func (*QueueStatsRequestConn) ReadQueueStatsRequests

func (c *QueueStatsRequestConn) ReadQueueStatsRequests(pkts []QueueStatsRequest) (int, error)

func (*QueueStatsRequestConn) WriteQueueStatsRequest

func (c *QueueStatsRequestConn) WriteQueueStatsRequest(pkt QueueStatsRequest) error

func (*QueueStatsRequestConn) WriteQueueStatsRequests

func (c *QueueStatsRequestConn) WriteQueueStatsRequests(pkts []QueueStatsRequest) error

type RoleReply

type RoleReply struct {
	Header12
}

func NewRoleReply

func NewRoleReply() RoleReply

func NewRoleReplyWithBuf

func NewRoleReplyWithBuf(b []byte) RoleReply

func ToRoleReply

func ToRoleReply(p Header12) (RoleReply, error)

func (RoleReply) Clone

func (this RoleReply) Clone() (RoleReply, error)

func (RoleReply) GenerationId

func (this RoleReply) GenerationId() uint64

func (RoleReply) GenerationIdOffset

func (this RoleReply) GenerationIdOffset() int

func (*RoleReply) Init

func (this *RoleReply) Init()

func (RoleReply) Pad

func (this RoleReply) Pad() [4]uint8

func (RoleReply) PadOffset

func (this RoleReply) PadOffset() int

func (RoleReply) Role

func (this RoleReply) Role() uint32

func (RoleReply) RoleOffset

func (this RoleReply) RoleOffset() int

func (*RoleReply) SetGenerationId

func (this *RoleReply) SetGenerationId(g uint64)

func (*RoleReply) SetPad

func (this *RoleReply) SetPad(p [4]uint8)

func (*RoleReply) SetRole

func (this *RoleReply) SetRole(r uint32)

func (RoleReply) Size

func (this RoleReply) Size() int

type RoleReplyConn

type RoleReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewRoleReplyConn

func NewRoleReplyConn(c net.Conn) RoleReplyConn

func (*RoleReplyConn) Flush

func (c *RoleReplyConn) Flush() error

func (*RoleReplyConn) ReadRoleReply

func (c *RoleReplyConn) ReadRoleReply() (RoleReply, error)

func (*RoleReplyConn) ReadRoleReplys

func (c *RoleReplyConn) ReadRoleReplys(pkts []RoleReply) (int, error)

func (*RoleReplyConn) WriteRoleReply

func (c *RoleReplyConn) WriteRoleReply(pkt RoleReply) error

func (*RoleReplyConn) WriteRoleReplys

func (c *RoleReplyConn) WriteRoleReplys(pkts []RoleReply) error

type RoleRequest

type RoleRequest struct {
	Header12
}

func NewRoleRequest

func NewRoleRequest() RoleRequest

func NewRoleRequestWithBuf

func NewRoleRequestWithBuf(b []byte) RoleRequest

func ToRoleRequest

func ToRoleRequest(p Header12) (RoleRequest, error)

func (RoleRequest) Clone

func (this RoleRequest) Clone() (RoleRequest, error)

func (RoleRequest) GenerationId

func (this RoleRequest) GenerationId() uint64

func (RoleRequest) GenerationIdOffset

func (this RoleRequest) GenerationIdOffset() int

func (*RoleRequest) Init

func (this *RoleRequest) Init()

func (RoleRequest) Pad

func (this RoleRequest) Pad() [4]uint8

func (RoleRequest) PadOffset

func (this RoleRequest) PadOffset() int

func (RoleRequest) Role

func (this RoleRequest) Role() uint32

func (RoleRequest) RoleOffset

func (this RoleRequest) RoleOffset() int

func (*RoleRequest) SetGenerationId

func (this *RoleRequest) SetGenerationId(g uint64)

func (*RoleRequest) SetPad

func (this *RoleRequest) SetPad(p [4]uint8)

func (*RoleRequest) SetRole

func (this *RoleRequest) SetRole(r uint32)

func (RoleRequest) Size

func (this RoleRequest) Size() int

type RoleRequestConn

type RoleRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewRoleRequestConn

func NewRoleRequestConn(c net.Conn) RoleRequestConn

func (*RoleRequestConn) Flush

func (c *RoleRequestConn) Flush() error

func (*RoleRequestConn) ReadRoleRequest

func (c *RoleRequestConn) ReadRoleRequest() (RoleRequest, error)

func (*RoleRequestConn) ReadRoleRequests

func (c *RoleRequestConn) ReadRoleRequests(pkts []RoleRequest) (int, error)

func (*RoleRequestConn) WriteRoleRequest

func (c *RoleRequestConn) WriteRoleRequest(pkt RoleRequest) error

func (*RoleRequestConn) WriteRoleRequests

func (c *RoleRequestConn) WriteRoleRequests(pkts []RoleRequest) error

type StatsReply

type StatsReply struct {
	Header12
}

func NewStatsReply

func NewStatsReply() StatsReply

func NewStatsReplyWithBuf

func NewStatsReplyWithBuf(b []byte) StatsReply

func ToStatsReply

func ToStatsReply(p Header12) (StatsReply, error)

func (StatsReply) Clone

func (this StatsReply) Clone() (StatsReply, error)

func (StatsReply) Flags

func (this StatsReply) Flags() uint16

func (StatsReply) FlagsOffset

func (this StatsReply) FlagsOffset() int

func (*StatsReply) Init

func (this *StatsReply) Init()

func (StatsReply) Pad

func (this StatsReply) Pad() [4]uint8

func (StatsReply) PadOffset

func (this StatsReply) PadOffset() int

func (*StatsReply) SetFlags

func (this *StatsReply) SetFlags(f uint16)

func (*StatsReply) SetPad

func (this *StatsReply) SetPad(p [4]uint8)

func (*StatsReply) SetStatsType

func (this *StatsReply) SetStatsType(s uint16)

func (StatsReply) Size

func (this StatsReply) Size() int

func (StatsReply) StatsType

func (this StatsReply) StatsType() uint16

func (StatsReply) StatsTypeOffset

func (this StatsReply) StatsTypeOffset() int

type StatsReplyConn

type StatsReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewStatsReplyConn

func NewStatsReplyConn(c net.Conn) StatsReplyConn

func (*StatsReplyConn) Flush

func (c *StatsReplyConn) Flush() error

func (*StatsReplyConn) ReadStatsReply

func (c *StatsReplyConn) ReadStatsReply() (StatsReply, error)

func (*StatsReplyConn) ReadStatsReplys

func (c *StatsReplyConn) ReadStatsReplys(pkts []StatsReply) (int, error)

func (*StatsReplyConn) WriteStatsReply

func (c *StatsReplyConn) WriteStatsReply(pkt StatsReply) error

func (*StatsReplyConn) WriteStatsReplys

func (c *StatsReplyConn) WriteStatsReplys(pkts []StatsReply) error

type StatsReplyFlags

type StatsReplyFlags int
const (
	PSF_REPLY_MORE StatsReplyFlags = 1
)

type StatsRequest

type StatsRequest struct {
	Header12
}

func NewStatsRequest

func NewStatsRequest() StatsRequest

func NewStatsRequestWithBuf

func NewStatsRequestWithBuf(b []byte) StatsRequest

func ToStatsRequest

func ToStatsRequest(p Header12) (StatsRequest, error)

func (StatsRequest) Clone

func (this StatsRequest) Clone() (StatsRequest, error)

func (StatsRequest) Flags

func (this StatsRequest) Flags() uint16

func (StatsRequest) FlagsOffset

func (this StatsRequest) FlagsOffset() int

func (*StatsRequest) Init

func (this *StatsRequest) Init()

func (StatsRequest) Pad

func (this StatsRequest) Pad() [4]uint8

func (StatsRequest) PadOffset

func (this StatsRequest) PadOffset() int

func (*StatsRequest) SetFlags

func (this *StatsRequest) SetFlags(f uint16)

func (*StatsRequest) SetPad

func (this *StatsRequest) SetPad(p [4]uint8)

func (*StatsRequest) SetStatsType

func (this *StatsRequest) SetStatsType(s uint16)

func (StatsRequest) Size

func (this StatsRequest) Size() int

func (StatsRequest) StatsType

func (this StatsRequest) StatsType() uint16

func (StatsRequest) StatsTypeOffset

func (this StatsRequest) StatsTypeOffset() int

type StatsRequestConn

type StatsRequestConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewStatsRequestConn

func NewStatsRequestConn(c net.Conn) StatsRequestConn

func (*StatsRequestConn) Flush

func (c *StatsRequestConn) Flush() error

func (*StatsRequestConn) ReadStatsRequest

func (c *StatsRequestConn) ReadStatsRequest() (StatsRequest, error)

func (*StatsRequestConn) ReadStatsRequests

func (c *StatsRequestConn) ReadStatsRequests(pkts []StatsRequest) (int, error)

func (*StatsRequestConn) WriteStatsRequest

func (c *StatsRequestConn) WriteStatsRequest(pkt StatsRequest) error

func (*StatsRequestConn) WriteStatsRequests

func (c *StatsRequestConn) WriteStatsRequests(pkts []StatsRequest) error

type StatsTypes

type StatsTypes int
const (
	PST_DESC         StatsTypes = 0
	PST_FLOW         StatsTypes = 1
	PST_AGGREGATE    StatsTypes = 2
	PST_TABLE        StatsTypes = 3
	PST_PORT         StatsTypes = 4
	PST_QUEUE        StatsTypes = 5
	OFPST_GROUP      StatsTypes = 6
	OFPST_GROUP_DESC StatsTypes = 7
	PST_EXPERIMENTER StatsTypes = 65535
)

type StdMatch

type StdMatch struct {
	Match
}

func NewStdMatch

func NewStdMatch() StdMatch

func NewStdMatchWithBuf

func NewStdMatchWithBuf(b []byte) StdMatch

func ToStdMatch

func ToStdMatch(p Match) (StdMatch, error)

func (StdMatch) Clone

func (this StdMatch) Clone() (StdMatch, error)

func (StdMatch) DlDst

func (this StdMatch) DlDst() [6]uint8

func (StdMatch) DlDstMask

func (this StdMatch) DlDstMask() [6]uint8

func (StdMatch) DlDstMaskOffset

func (this StdMatch) DlDstMaskOffset() int

func (StdMatch) DlDstOffset

func (this StdMatch) DlDstOffset() int

func (StdMatch) DlSrc

func (this StdMatch) DlSrc() [6]uint8

func (StdMatch) DlSrcMask

func (this StdMatch) DlSrcMask() [6]uint8

func (StdMatch) DlSrcMaskOffset

func (this StdMatch) DlSrcMaskOffset() int

func (StdMatch) DlSrcOffset

func (this StdMatch) DlSrcOffset() int

func (StdMatch) DlType

func (this StdMatch) DlType() uint16

func (StdMatch) DlTypeOffset

func (this StdMatch) DlTypeOffset() int

func (StdMatch) DlVlan

func (this StdMatch) DlVlan() uint16

func (StdMatch) DlVlanOffset

func (this StdMatch) DlVlanOffset() int

func (StdMatch) DlVlanPcp

func (this StdMatch) DlVlanPcp() uint8

func (StdMatch) DlVlanPcpOffset

func (this StdMatch) DlVlanPcpOffset() int

func (StdMatch) InPort

func (this StdMatch) InPort() uint32

func (StdMatch) InPortOffset

func (this StdMatch) InPortOffset() int

func (*StdMatch) Init

func (this *StdMatch) Init()

func (StdMatch) Metadata

func (this StdMatch) Metadata() uint64

func (StdMatch) MetadataMask

func (this StdMatch) MetadataMask() uint64

func (StdMatch) MetadataMaskOffset

func (this StdMatch) MetadataMaskOffset() int

func (StdMatch) MetadataOffset

func (this StdMatch) MetadataOffset() int

func (StdMatch) MplsLabel

func (this StdMatch) MplsLabel() uint32

func (StdMatch) MplsLabelOffset

func (this StdMatch) MplsLabelOffset() int

func (StdMatch) MplsTc

func (this StdMatch) MplsTc() uint8

func (StdMatch) MplsTcOffset

func (this StdMatch) MplsTcOffset() int

func (StdMatch) NwDst

func (this StdMatch) NwDst() uint32

func (StdMatch) NwDstMask

func (this StdMatch) NwDstMask() uint32

func (StdMatch) NwDstMaskOffset

func (this StdMatch) NwDstMaskOffset() int

func (StdMatch) NwDstOffset

func (this StdMatch) NwDstOffset() int

func (StdMatch) NwProto

func (this StdMatch) NwProto() uint8

func (StdMatch) NwProtoOffset

func (this StdMatch) NwProtoOffset() int

func (StdMatch) NwSrc

func (this StdMatch) NwSrc() uint32

func (StdMatch) NwSrcMask

func (this StdMatch) NwSrcMask() uint32

func (StdMatch) NwSrcMaskOffset

func (this StdMatch) NwSrcMaskOffset() int

func (StdMatch) NwSrcOffset

func (this StdMatch) NwSrcOffset() int

func (StdMatch) NwTos

func (this StdMatch) NwTos() uint8

func (StdMatch) NwTosOffset

func (this StdMatch) NwTosOffset() int

func (StdMatch) Pad1

func (this StdMatch) Pad1() uint8

func (StdMatch) Pad1Offset

func (this StdMatch) Pad1Offset() int

func (StdMatch) Pad2

func (this StdMatch) Pad2() [3]uint8

func (StdMatch) Pad2Offset

func (this StdMatch) Pad2Offset() int

func (*StdMatch) SetDlDst

func (this *StdMatch) SetDlDst(d [6]uint8)

func (*StdMatch) SetDlDstMask

func (this *StdMatch) SetDlDstMask(d [6]uint8)

func (*StdMatch) SetDlSrc

func (this *StdMatch) SetDlSrc(d [6]uint8)

func (*StdMatch) SetDlSrcMask

func (this *StdMatch) SetDlSrcMask(d [6]uint8)

func (*StdMatch) SetDlType

func (this *StdMatch) SetDlType(d uint16)

func (*StdMatch) SetDlVlan

func (this *StdMatch) SetDlVlan(d uint16)

func (*StdMatch) SetDlVlanPcp

func (this *StdMatch) SetDlVlanPcp(d uint8)

func (*StdMatch) SetInPort

func (this *StdMatch) SetInPort(i uint32)

func (*StdMatch) SetMetadata

func (this *StdMatch) SetMetadata(m uint64)

func (*StdMatch) SetMetadataMask

func (this *StdMatch) SetMetadataMask(m uint64)

func (*StdMatch) SetMplsLabel

func (this *StdMatch) SetMplsLabel(m uint32)

func (*StdMatch) SetMplsTc

func (this *StdMatch) SetMplsTc(m uint8)

func (*StdMatch) SetNwDst

func (this *StdMatch) SetNwDst(n uint32)

func (*StdMatch) SetNwDstMask

func (this *StdMatch) SetNwDstMask(n uint32)

func (*StdMatch) SetNwProto

func (this *StdMatch) SetNwProto(n uint8)

func (*StdMatch) SetNwSrc

func (this *StdMatch) SetNwSrc(n uint32)

func (*StdMatch) SetNwSrcMask

func (this *StdMatch) SetNwSrcMask(n uint32)

func (*StdMatch) SetNwTos

func (this *StdMatch) SetNwTos(n uint8)

func (*StdMatch) SetPad1

func (this *StdMatch) SetPad1(p uint8)

func (*StdMatch) SetPad2

func (this *StdMatch) SetPad2(p [3]uint8)

func (*StdMatch) SetTpDst

func (this *StdMatch) SetTpDst(t uint16)

func (*StdMatch) SetTpSrc

func (this *StdMatch) SetTpSrc(t uint16)

func (*StdMatch) SetWildcards

func (this *StdMatch) SetWildcards(w uint32)

func (StdMatch) Size

func (this StdMatch) Size() int

func (StdMatch) TpDst

func (this StdMatch) TpDst() uint16

func (StdMatch) TpDstOffset

func (this StdMatch) TpDstOffset() int

func (StdMatch) TpSrc

func (this StdMatch) TpSrc() uint16

func (StdMatch) TpSrcOffset

func (this StdMatch) TpSrcOffset() int

func (StdMatch) Wildcards

func (this StdMatch) Wildcards() uint32

func (StdMatch) WildcardsOffset

func (this StdMatch) WildcardsOffset() int

type StdMatchConn

type StdMatchConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewStdMatchConn

func NewStdMatchConn(c net.Conn) StdMatchConn

func (*StdMatchConn) Flush

func (c *StdMatchConn) Flush() error

func (*StdMatchConn) ReadStdMatch

func (c *StdMatchConn) ReadStdMatch() (StdMatch, error)

func (*StdMatchConn) ReadStdMatchs

func (c *StdMatchConn) ReadStdMatchs(pkts []StdMatch) (int, error)

func (*StdMatchConn) WriteStdMatch

func (c *StdMatchConn) WriteStdMatch(pkt StdMatch) error

func (*StdMatchConn) WriteStdMatchs

func (c *StdMatchConn) WriteStdMatchs(pkts []StdMatch) error

type SwitchGetConfigReply

type SwitchGetConfigReply struct {
	Header12
}

func NewSwitchGetConfigReply

func NewSwitchGetConfigReply() SwitchGetConfigReply

func NewSwitchGetConfigReplyWithBuf

func NewSwitchGetConfigReplyWithBuf(b []byte) SwitchGetConfigReply

func ToSwitchGetConfigReply

func ToSwitchGetConfigReply(p Header12) (SwitchGetConfigReply, error)

func (SwitchGetConfigReply) Clone

func (SwitchGetConfigReply) Flags

func (this SwitchGetConfigReply) Flags() uint16

func (SwitchGetConfigReply) FlagsOffset

func (this SwitchGetConfigReply) FlagsOffset() int

func (*SwitchGetConfigReply) Init

func (this *SwitchGetConfigReply) Init()

func (SwitchGetConfigReply) MissSendLen

func (this SwitchGetConfigReply) MissSendLen() uint16

func (SwitchGetConfigReply) MissSendLenOffset

func (this SwitchGetConfigReply) MissSendLenOffset() int

func (*SwitchGetConfigReply) SetFlags

func (this *SwitchGetConfigReply) SetFlags(f uint16)

func (*SwitchGetConfigReply) SetMissSendLen

func (this *SwitchGetConfigReply) SetMissSendLen(m uint16)

func (SwitchGetConfigReply) Size

func (this SwitchGetConfigReply) Size() int

type SwitchGetConfigReplyConn

type SwitchGetConfigReplyConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewSwitchGetConfigReplyConn

func NewSwitchGetConfigReplyConn(c net.Conn) SwitchGetConfigReplyConn

func (*SwitchGetConfigReplyConn) Flush

func (c *SwitchGetConfigReplyConn) Flush() error

func (*SwitchGetConfigReplyConn) ReadSwitchGetConfigReply

func (c *SwitchGetConfigReplyConn) ReadSwitchGetConfigReply() (SwitchGetConfigReply, error)

func (*SwitchGetConfigReplyConn) ReadSwitchGetConfigReplys

func (c *SwitchGetConfigReplyConn) ReadSwitchGetConfigReplys(pkts []SwitchGetConfigReply) (int, error)

func (*SwitchGetConfigReplyConn) WriteSwitchGetConfigReply

func (c *SwitchGetConfigReplyConn) WriteSwitchGetConfigReply(pkt SwitchGetConfigReply) error

func (*SwitchGetConfigReplyConn) WriteSwitchGetConfigReplys

func (c *SwitchGetConfigReplyConn) WriteSwitchGetConfigReplys(pkts []SwitchGetConfigReply) error

type SwitchSetConfig

type SwitchSetConfig struct {
	Header12
}

func NewSwitchSetConfig

func NewSwitchSetConfig() SwitchSetConfig

func NewSwitchSetConfigWithBuf

func NewSwitchSetConfigWithBuf(b []byte) SwitchSetConfig

func ToSwitchSetConfig

func ToSwitchSetConfig(p Header12) (SwitchSetConfig, error)

func (SwitchSetConfig) Clone

func (this SwitchSetConfig) Clone() (SwitchSetConfig, error)

func (SwitchSetConfig) Flags

func (this SwitchSetConfig) Flags() uint16

func (SwitchSetConfig) FlagsOffset

func (this SwitchSetConfig) FlagsOffset() int

func (*SwitchSetConfig) Init

func (this *SwitchSetConfig) Init()

func (SwitchSetConfig) MissSendLen

func (this SwitchSetConfig) MissSendLen() uint16

func (SwitchSetConfig) MissSendLenOffset

func (this SwitchSetConfig) MissSendLenOffset() int

func (*SwitchSetConfig) SetFlags

func (this *SwitchSetConfig) SetFlags(f uint16)

func (*SwitchSetConfig) SetMissSendLen

func (this *SwitchSetConfig) SetMissSendLen(m uint16)

func (SwitchSetConfig) Size

func (this SwitchSetConfig) Size() int

type SwitchSetConfigConn

type SwitchSetConfigConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewSwitchSetConfigConn

func NewSwitchSetConfigConn(c net.Conn) SwitchSetConfigConn

func (*SwitchSetConfigConn) Flush

func (c *SwitchSetConfigConn) Flush() error

func (*SwitchSetConfigConn) ReadSwitchSetConfig

func (c *SwitchSetConfigConn) ReadSwitchSetConfig() (SwitchSetConfig, error)

func (*SwitchSetConfigConn) ReadSwitchSetConfigs

func (c *SwitchSetConfigConn) ReadSwitchSetConfigs(pkts []SwitchSetConfig) (int, error)

func (*SwitchSetConfigConn) WriteSwitchSetConfig

func (c *SwitchSetConfigConn) WriteSwitchSetConfig(pkt SwitchSetConfig) error

func (*SwitchSetConfigConn) WriteSwitchSetConfigs

func (c *SwitchSetConfigConn) WriteSwitchSetConfigs(pkts []SwitchSetConfig) error

type TableStats

type TableStats struct {
	StatsReply
}

func NewTableStats

func NewTableStats() TableStats

func NewTableStatsWithBuf

func NewTableStatsWithBuf(b []byte) TableStats

func ToTableStats

func ToTableStats(p StatsReply) (TableStats, error)

func (TableStats) ActiveCount

func (this TableStats) ActiveCount() uint32

func (TableStats) ActiveCountOffset

func (this TableStats) ActiveCountOffset() int

func (TableStats) Clone

func (this TableStats) Clone() (TableStats, error)

func (*TableStats) Init

func (this *TableStats) Init()

func (TableStats) LookupCount

func (this TableStats) LookupCount() uint64

func (TableStats) LookupCountOffset

func (this TableStats) LookupCountOffset() int

func (TableStats) MatchedCount

func (this TableStats) MatchedCount() uint64

func (TableStats) MatchedCountOffset

func (this TableStats) MatchedCountOffset() int

func (TableStats) MaxEntries

func (this TableStats) MaxEntries() uint32

func (TableStats) MaxEntriesOffset

func (this TableStats) MaxEntriesOffset() int

func (TableStats) Name

func (this TableStats) Name() [32]byte

func (TableStats) NameOffset

func (this TableStats) NameOffset() int

func (TableStats) Pad

func (this TableStats) Pad() [3]uint8

func (TableStats) PadOffset

func (this TableStats) PadOffset() int

func (*TableStats) SetActiveCount

func (this *TableStats) SetActiveCount(a uint32)

func (*TableStats) SetLookupCount

func (this *TableStats) SetLookupCount(l uint64)

func (*TableStats) SetMatchedCount

func (this *TableStats) SetMatchedCount(m uint64)

func (*TableStats) SetMaxEntries

func (this *TableStats) SetMaxEntries(m uint32)

func (*TableStats) SetName

func (this *TableStats) SetName(n [32]byte)

func (*TableStats) SetPad

func (this *TableStats) SetPad(p [3]uint8)

func (*TableStats) SetTableId

func (this *TableStats) SetTableId(t uint8)

func (*TableStats) SetWildcards

func (this *TableStats) SetWildcards(w uint32)

func (TableStats) Size

func (this TableStats) Size() int

func (TableStats) TableId

func (this TableStats) TableId() uint8

func (TableStats) TableIdOffset

func (this TableStats) TableIdOffset() int

func (TableStats) Wildcards

func (this TableStats) Wildcards() uint32

func (TableStats) WildcardsOffset

func (this TableStats) WildcardsOffset() int

type TableStatsConn

type TableStatsConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewTableStatsConn

func NewTableStatsConn(c net.Conn) TableStatsConn

func (*TableStatsConn) Flush

func (c *TableStatsConn) Flush() error

func (*TableStatsConn) ReadTableStats

func (c *TableStatsConn) ReadTableStats() (TableStats, error)

func (*TableStatsConn) ReadTableStatss

func (c *TableStatsConn) ReadTableStatss(pkts []TableStats) (int, error)

func (*TableStatsConn) WriteTableStats

func (c *TableStatsConn) WriteTableStats(pkt TableStats) error

func (*TableStatsConn) WriteTableStatss

func (c *TableStatsConn) WriteTableStatss(pkts []TableStats) error

type Type

type Type int
const (
	PT_PACKET_IN                Type = 10
	PT_FLOW_REMOVED             Type = 11
	PT_PORT_STATUS              Type = 12
	PT_PACKET_OUT               Type = 13
	PT_FLOW_MOD                 Type = 14
	PT_GROUP_MOD                Type = 15
	PT_PORT_MOD                 Type = 16
	PT_TABLE_MOD                Type = 17
	PT_STATS_REQUEST            Type = 18
	PT_STATS_REPLY              Type = 19
	PT_BARRIER_REQUEST          Type = 20
	PT_BARRIER_REPLY            Type = 21
	PT_QUEUE_GET_CONFIG_REQUEST Type = 22
	PT_QUEUE_GET_CONFIG_REPLY   Type = 23
	PT_ROLE_REQUEST             Type = 24
	PT_ROLE_REPLY               Type = 25
)

type VendorHeader

type VendorHeader struct {
	Header12
}

func NewVendorHeader

func NewVendorHeader() VendorHeader

func NewVendorHeaderWithBuf

func NewVendorHeaderWithBuf(b []byte) VendorHeader

func ToVendorHeader

func ToVendorHeader(p Header12) (VendorHeader, error)

func (VendorHeader) Clone

func (this VendorHeader) Clone() (VendorHeader, error)

func (*VendorHeader) Init

func (this *VendorHeader) Init()

func (*VendorHeader) SetVendor

func (this *VendorHeader) SetVendor(v uint32)

func (VendorHeader) Size

func (this VendorHeader) Size() int

func (VendorHeader) Vendor

func (this VendorHeader) Vendor() uint32

func (VendorHeader) VendorOffset

func (this VendorHeader) VendorOffset() int

type VendorHeaderConn

type VendorHeaderConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewVendorHeaderConn

func NewVendorHeaderConn(c net.Conn) VendorHeaderConn

func (*VendorHeaderConn) Flush

func (c *VendorHeaderConn) Flush() error

func (*VendorHeaderConn) ReadVendorHeader

func (c *VendorHeaderConn) ReadVendorHeader() (VendorHeader, error)

func (*VendorHeaderConn) ReadVendorHeaders

func (c *VendorHeaderConn) ReadVendorHeaders(pkts []VendorHeader) (int, error)

func (*VendorHeaderConn) WriteVendorHeader

func (c *VendorHeaderConn) WriteVendorHeader(pkt VendorHeader) error

func (*VendorHeaderConn) WriteVendorHeaders

func (c *VendorHeaderConn) WriteVendorHeaders(pkts []VendorHeader) error

Jump to

Keyboard shortcuts

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