Documentation
¶
Overview ¶
Package ot implements operational technology protocol scanners including PROFINET, EtherCAT, and mDNS.
Index ¶
- type Host
- func ListenLldp(logger utils.Logger, iface string) ([]Host, error)
- func ScanEthercat(logger utils.Logger, iface string) ([]Host, error)
- func ScanMdnsSsdp(logger utils.Logger, iface string) ([]Host, error)
- func ScanNdp(logger utils.Logger, iface string) ([]Host, error)
- func ScanProfinetDcp(logger utils.Logger, iface string) ([]Host, error)
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
Host represents a host discovered via L2/OT protocols.
func ListenLldp ¶
ListenLldp passively listens for LLDP frames on the given interface.
func ScanEthercat ¶
ScanEthercat sends an EtherCAT broadcast read and collects responding slaves.
func ScanMdnsSsdp ¶
ScanMdnsSsdp queries mDNS and SSDP multicast groups to discover devices on the given interface.
type Scanner ¶
type Scanner struct {
NetworkInterface string // The network interface to run the OT scans on, e.g. "eth0"
// contains filtered or unexported fields
}
Scanner defines the settings required by the OT discovery scan.
func NewScanner ¶
NewScanner creates an OT discovery scanner for the given network interface. Returns an error if the interface name is empty or cannot be found on the host.
Click to show internal directories.
Click to hide internal directories.