Documentation
¶
Overview ¶
Automatically generated by Packet Go code generator.
Index ¶
- func IsChassisMacTLV(p ChassisTLV) bool
- func IsChassisTLV(p packet.Packet) bool
- func IsLinkDiscoveryProtocol(p ethernet.Ethernet) bool
- func IsLinkDiscoveryTLV(p packet.Packet) bool
- type ChassisMacTLV
- type ChassisMacTLVConn
- func (c *ChassisMacTLVConn) Flush() error
- func (c *ChassisMacTLVConn) ReadChassisMacTLV() (ChassisMacTLV, error)
- func (c *ChassisMacTLVConn) ReadChassisMacTLVs(pkts []ChassisMacTLV) (int, error)
- func (c *ChassisMacTLVConn) WriteChassisMacTLV(pkt ChassisMacTLV) error
- func (c *ChassisMacTLVConn) WriteChassisMacTLVs(pkts []ChassisMacTLV) error
- type ChassisTLV
- func (this ChassisTLV) Clone() (ChassisTLV, error)
- func (this *ChassisTLV) Init()
- func (this *ChassisTLV) SetSubtype(s uint8)
- func (this *ChassisTLV) SetTypeAndLen(t uint16)
- func (this ChassisTLV) Size() int
- func (this ChassisTLV) Subtype() uint8
- func (this ChassisTLV) SubtypeOffset() int
- func (this ChassisTLV) TypeAndLen() uint16
- func (this ChassisTLV) TypeAndLenOffset() int
- type ChassisTLVConn
- func (c *ChassisTLVConn) Flush() error
- func (c *ChassisTLVConn) ReadChassisTLV() (ChassisTLV, error)
- func (c *ChassisTLVConn) ReadChassisTLVs(pkts []ChassisTLV) (int, error)
- func (c *ChassisTLVConn) WriteChassisTLV(pkt ChassisTLV) error
- func (c *ChassisTLVConn) WriteChassisTLVs(pkts []ChassisTLV) error
- type LinkDiscoveryProtocol
- type LinkDiscoveryProtocolConn
- func (c *LinkDiscoveryProtocolConn) Flush() error
- func (c *LinkDiscoveryProtocolConn) ReadLinkDiscoveryProtocol() (LinkDiscoveryProtocol, error)
- func (c *LinkDiscoveryProtocolConn) ReadLinkDiscoveryProtocols(pkts []LinkDiscoveryProtocol) (int, error)
- func (c *LinkDiscoveryProtocolConn) WriteLinkDiscoveryProtocol(pkt LinkDiscoveryProtocol) error
- func (c *LinkDiscoveryProtocolConn) WriteLinkDiscoveryProtocols(pkts []LinkDiscoveryProtocol) error
- type LinkDiscoveryTLV
- func (this *LinkDiscoveryTLV) AddValue(v uint8)
- func (this LinkDiscoveryTLV) Clone() (LinkDiscoveryTLV, error)
- func (this *LinkDiscoveryTLV) Init()
- func (this LinkDiscoveryTLV) MergeTypeAndLen(t uint8, l uint16)
- func (this LinkDiscoveryTLV) SetSize(s int)
- func (this LinkDiscoveryTLV) SetType(t uint8)
- func (this *LinkDiscoveryTLV) SetTypeAndLen(t uint16)
- func (this LinkDiscoveryTLV) Size() int
- func (this LinkDiscoveryTLV) Type() uint8
- func (this LinkDiscoveryTLV) TypeAndLen() uint16
- func (this LinkDiscoveryTLV) TypeAndLenOffset() int
- func (this LinkDiscoveryTLV) Value() []uint8
- func (this LinkDiscoveryTLV) ValueOffset() int
- func (this LinkDiscoveryTLV) ValueSize() int
- type LinkDiscoveryTLVConn
- func (c *LinkDiscoveryTLVConn) Flush() error
- func (c *LinkDiscoveryTLVConn) ReadLinkDiscoveryTLV() (LinkDiscoveryTLV, error)
- func (c *LinkDiscoveryTLVConn) ReadLinkDiscoveryTLVs(pkts []LinkDiscoveryTLV) (int, error)
- func (c *LinkDiscoveryTLVConn) WriteLinkDiscoveryTLV(pkt LinkDiscoveryTLV) error
- func (c *LinkDiscoveryTLVConn) WriteLinkDiscoveryTLVs(pkts []LinkDiscoveryTLV) error
- type LinkDiscoveryTLVType
- type PortTLVSubtype
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsChassisMacTLV ¶
func IsChassisMacTLV(p ChassisTLV) bool
func IsChassisTLV ¶
func IsLinkDiscoveryProtocol ¶
func IsLinkDiscoveryTLV ¶
Types ¶
type ChassisMacTLV ¶
type ChassisMacTLV struct {
ChassisTLV
}
func NewChassisMacTLV ¶
func NewChassisMacTLV() ChassisMacTLV
func NewChassisMacTLVWithBuf ¶
func NewChassisMacTLVWithBuf(b []byte) ChassisMacTLV
func ToChassisMacTLV ¶
func ToChassisMacTLV(p ChassisTLV) (ChassisMacTLV, error)
func (ChassisMacTLV) Clone ¶
func (this ChassisMacTLV) Clone() (ChassisMacTLV, error)
func (*ChassisMacTLV) Init ¶
func (this *ChassisMacTLV) Init()
func (ChassisMacTLV) MacAddr ¶
func (this ChassisMacTLV) MacAddr() [6]uint8
func (ChassisMacTLV) MacAddrOffset ¶
func (this ChassisMacTLV) MacAddrOffset() int
func (*ChassisMacTLV) SetMacAddr ¶
func (this *ChassisMacTLV) SetMacAddr(m [6]uint8)
func (ChassisMacTLV) Size ¶
func (this ChassisMacTLV) Size() int
type ChassisMacTLVConn ¶
func NewChassisMacTLVConn ¶
func NewChassisMacTLVConn(c net.Conn) ChassisMacTLVConn
func (*ChassisMacTLVConn) Flush ¶
func (c *ChassisMacTLVConn) Flush() error
func (*ChassisMacTLVConn) ReadChassisMacTLV ¶
func (c *ChassisMacTLVConn) ReadChassisMacTLV() (ChassisMacTLV, error)
func (*ChassisMacTLVConn) ReadChassisMacTLVs ¶
func (c *ChassisMacTLVConn) ReadChassisMacTLVs(pkts []ChassisMacTLV) (int, error)
func (*ChassisMacTLVConn) WriteChassisMacTLV ¶
func (c *ChassisMacTLVConn) WriteChassisMacTLV(pkt ChassisMacTLV) error
func (*ChassisMacTLVConn) WriteChassisMacTLVs ¶
func (c *ChassisMacTLVConn) WriteChassisMacTLVs(pkts []ChassisMacTLV) error
type ChassisTLV ¶
func NewChassisTLV ¶
func NewChassisTLV() ChassisTLV
func NewChassisTLVWithBuf ¶
func NewChassisTLVWithBuf(b []byte) ChassisTLV
func ToChassisTLV ¶
func ToChassisTLV(p packet.Packet) (ChassisTLV, error)
func (ChassisTLV) Clone ¶
func (this ChassisTLV) Clone() (ChassisTLV, error)
func (*ChassisTLV) Init ¶
func (this *ChassisTLV) Init()
func (*ChassisTLV) SetSubtype ¶
func (this *ChassisTLV) SetSubtype(s uint8)
func (*ChassisTLV) SetTypeAndLen ¶
func (this *ChassisTLV) SetTypeAndLen(t uint16)
func (ChassisTLV) Size ¶
func (this ChassisTLV) Size() int
func (ChassisTLV) Subtype ¶
func (this ChassisTLV) Subtype() uint8
func (ChassisTLV) SubtypeOffset ¶
func (this ChassisTLV) SubtypeOffset() int
func (ChassisTLV) TypeAndLen ¶
func (this ChassisTLV) TypeAndLen() uint16
func (ChassisTLV) TypeAndLenOffset ¶
func (this ChassisTLV) TypeAndLenOffset() int
type ChassisTLVConn ¶
func NewChassisTLVConn ¶
func NewChassisTLVConn(c net.Conn) ChassisTLVConn
func (*ChassisTLVConn) Flush ¶
func (c *ChassisTLVConn) Flush() error
func (*ChassisTLVConn) ReadChassisTLV ¶
func (c *ChassisTLVConn) ReadChassisTLV() (ChassisTLV, error)
func (*ChassisTLVConn) ReadChassisTLVs ¶
func (c *ChassisTLVConn) ReadChassisTLVs(pkts []ChassisTLV) (int, error)
func (*ChassisTLVConn) WriteChassisTLV ¶
func (c *ChassisTLVConn) WriteChassisTLV(pkt ChassisTLV) error
func (*ChassisTLVConn) WriteChassisTLVs ¶
func (c *ChassisTLVConn) WriteChassisTLVs(pkts []ChassisTLV) error
type LinkDiscoveryProtocol ¶
func NewLinkDiscoveryProtocol ¶
func NewLinkDiscoveryProtocol() LinkDiscoveryProtocol
func NewLinkDiscoveryProtocolWithBuf ¶
func NewLinkDiscoveryProtocolWithBuf(b []byte) LinkDiscoveryProtocol
func ToLinkDiscoveryProtocol ¶
func ToLinkDiscoveryProtocol(p ethernet.Ethernet) (LinkDiscoveryProtocol, error)
func (LinkDiscoveryProtocol) Clone ¶
func (this LinkDiscoveryProtocol) Clone() (LinkDiscoveryProtocol, error)
func (*LinkDiscoveryProtocol) Init ¶
func (this *LinkDiscoveryProtocol) Init()
func (LinkDiscoveryProtocol) Size ¶
func (this LinkDiscoveryProtocol) Size() int
type LinkDiscoveryProtocolConn ¶
func NewLinkDiscoveryProtocolConn ¶
func NewLinkDiscoveryProtocolConn(c net.Conn) LinkDiscoveryProtocolConn
func (*LinkDiscoveryProtocolConn) Flush ¶
func (c *LinkDiscoveryProtocolConn) Flush() error
func (*LinkDiscoveryProtocolConn) ReadLinkDiscoveryProtocol ¶
func (c *LinkDiscoveryProtocolConn) ReadLinkDiscoveryProtocol() (LinkDiscoveryProtocol, error)
func (*LinkDiscoveryProtocolConn) ReadLinkDiscoveryProtocols ¶
func (c *LinkDiscoveryProtocolConn) ReadLinkDiscoveryProtocols(pkts []LinkDiscoveryProtocol) (int, error)
func (*LinkDiscoveryProtocolConn) WriteLinkDiscoveryProtocol ¶
func (c *LinkDiscoveryProtocolConn) WriteLinkDiscoveryProtocol(pkt LinkDiscoveryProtocol) error
func (*LinkDiscoveryProtocolConn) WriteLinkDiscoveryProtocols ¶
func (c *LinkDiscoveryProtocolConn) WriteLinkDiscoveryProtocols(pkts []LinkDiscoveryProtocol) error
type LinkDiscoveryTLV ¶
func NewLinkDiscoveryTLV ¶
func NewLinkDiscoveryTLV() LinkDiscoveryTLV
func NewLinkDiscoveryTLVWithBuf ¶
func NewLinkDiscoveryTLVWithBuf(b []byte) LinkDiscoveryTLV
func ToLinkDiscoveryTLV ¶
func ToLinkDiscoveryTLV(p packet.Packet) (LinkDiscoveryTLV, error)
func (*LinkDiscoveryTLV) AddValue ¶
func (this *LinkDiscoveryTLV) AddValue(v uint8)
func (LinkDiscoveryTLV) Clone ¶
func (this LinkDiscoveryTLV) Clone() (LinkDiscoveryTLV, error)
func (*LinkDiscoveryTLV) Init ¶
func (this *LinkDiscoveryTLV) Init()
func (LinkDiscoveryTLV) MergeTypeAndLen ¶
func (this LinkDiscoveryTLV) MergeTypeAndLen(t uint8, l uint16)
func (LinkDiscoveryTLV) SetSize ¶
func (this LinkDiscoveryTLV) SetSize(s int)
func (LinkDiscoveryTLV) SetType ¶
func (this LinkDiscoveryTLV) SetType(t uint8)
func (*LinkDiscoveryTLV) SetTypeAndLen ¶
func (this *LinkDiscoveryTLV) SetTypeAndLen(t uint16)
func (LinkDiscoveryTLV) Size ¶
func (this LinkDiscoveryTLV) Size() int
func (LinkDiscoveryTLV) Type ¶
func (this LinkDiscoveryTLV) Type() uint8
func (LinkDiscoveryTLV) TypeAndLen ¶
func (this LinkDiscoveryTLV) TypeAndLen() uint16
func (LinkDiscoveryTLV) TypeAndLenOffset ¶
func (this LinkDiscoveryTLV) TypeAndLenOffset() int
func (LinkDiscoveryTLV) Value ¶
func (this LinkDiscoveryTLV) Value() []uint8
func (LinkDiscoveryTLV) ValueOffset ¶
func (this LinkDiscoveryTLV) ValueOffset() int
func (LinkDiscoveryTLV) ValueSize ¶
func (this LinkDiscoveryTLV) ValueSize() int
type LinkDiscoveryTLVConn ¶
func NewLinkDiscoveryTLVConn ¶
func NewLinkDiscoveryTLVConn(c net.Conn) LinkDiscoveryTLVConn
func (*LinkDiscoveryTLVConn) Flush ¶
func (c *LinkDiscoveryTLVConn) Flush() error
func (*LinkDiscoveryTLVConn) ReadLinkDiscoveryTLV ¶
func (c *LinkDiscoveryTLVConn) ReadLinkDiscoveryTLV() (LinkDiscoveryTLV, error)
func (*LinkDiscoveryTLVConn) ReadLinkDiscoveryTLVs ¶
func (c *LinkDiscoveryTLVConn) ReadLinkDiscoveryTLVs(pkts []LinkDiscoveryTLV) (int, error)
func (*LinkDiscoveryTLVConn) WriteLinkDiscoveryTLV ¶
func (c *LinkDiscoveryTLVConn) WriteLinkDiscoveryTLV(pkt LinkDiscoveryTLV) error
func (*LinkDiscoveryTLVConn) WriteLinkDiscoveryTLVs ¶
func (c *LinkDiscoveryTLVConn) WriteLinkDiscoveryTLVs(pkts []LinkDiscoveryTLV) error
type LinkDiscoveryTLVType ¶
type LinkDiscoveryTLVType int
const ( TLV_CHASSIS_ID LinkDiscoveryTLVType = 1 TLV_PORT_ID LinkDiscoveryTLVType = 2 TLV_TTL LinkDiscoveryTLVType = 3 TLV_CUSTOM LinkDiscoveryTLVType = 127 )
type PortTLVSubtype ¶
type PortTLVSubtype int
const ( PORT_TLV_IFACE_ALIAS PortTLVSubtype = 1 PORT_TLV_PORT_COMP PortTLVSubtype = 2 PORT_TLV_MAC_ADDR PortTLVSubtype = 3 PORT_TLV_NET_ADDR PortTLVSubtype = 4 PORT_TLV_IFACE_NAME PortTLVSubtype = 5 PORT_TLV_AGENT_CIRCUIT_ID PortTLVSubtype = 6 PORT_TLV_LOCAL PortTLVSubtype = 7 )
Click to show internal directories.
Click to hide internal directories.