lldp

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 IsChassisMacTLV

func IsChassisMacTLV(p ChassisTLV) bool

func IsChassisTLV

func IsChassisTLV(p packet.Packet) bool

func IsLinkDiscoveryProtocol

func IsLinkDiscoveryProtocol(p ethernet.Ethernet) bool

func IsLinkDiscoveryTLV

func IsLinkDiscoveryTLV(p packet.Packet) bool

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

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

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

type ChassisTLV struct {
	packet.Packet
}

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

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

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

type LinkDiscoveryProtocol struct {
	ethernet.Ethernet
}

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 (*LinkDiscoveryProtocol) Init

func (this *LinkDiscoveryProtocol) Init()

func (LinkDiscoveryProtocol) Size

func (this LinkDiscoveryProtocol) Size() int

type LinkDiscoveryProtocolConn

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

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

type LinkDiscoveryTLV struct {
	packet.Packet
}

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

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

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
)

Jump to

Keyboard shortcuts

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