Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrMap ¶
type AddrMap struct {
Name string
// contains filtered or unexported fields
}
AddrMap stores mappings of ip/mac addresses to address info
type DeviceInfo ¶
type DeviceInfo struct {
TimeInfo
MAC gopacket.Endpoint
VLANs VNetMap
VXLANs VNetMap
GENEVEs VNetMap
Powerline PropInfo
Bridge PropInfo
DHCP PropInfo
Router PropInfo
Prefixes PrefixList
Packets int
UCasts AddrMap
MCasts AddrMap
MACPeers AddrMap
IPPeers AddrMap
}
DeviceInfo is a device found on the network
type DeviceMap ¶
DeviceMap is the device table definition
func (*DeviceMap) Add ¶
func (d *DeviceMap) Add(linkAddr gopacket.Endpoint) *DeviceInfo
Add adds a device to the device table and returns the new device info entry
type PrefixInfo ¶
type PrefixInfo struct {
TimeInfo
Prefix layers.ICMPv6Option
}
PrefixInfo stores a router's prefix information
func (*PrefixInfo) String ¶
func (p *PrefixInfo) String() string
String converts the prefix to a string
type PrefixList ¶
type PrefixList struct {
Prefixes []*PrefixInfo
}
PrefixList stores router prefixes
func (*PrefixList) Add ¶
func (p *PrefixList) Add(prefix layers.ICMPv6Option) *PrefixInfo
Add adds a prefix
type PropInfo ¶
PropInfo is a device property
type TimeInfo ¶
TimeInfo stores a timestamp
func (*TimeInfo) SetTimestamp ¶
SetTimestamp sets the timestamp
Click to show internal directories.
Click to hide internal directories.