A set of helper subroutines to support parts of the Netdisco application.
There are no default exports,
:all tag will export all subroutines.
Given a Device database object and a MAC address, perform various sanity checks which need to be done before writing an ARP/Neighbor entry to the database storage.
Returns false, and might log a debug level message, if the checks fail.
Returns a true value (the MAC address in IEEE format) if these checks pass:
Optionally pass a cached set of Device port MAC addresses as the third argument, in which case an additional check is added:
Given an IP address,
true if Netdisco on this host is permitted by the local configuration to nbtstat the node.
The configuration items
nbtstat_only are checked against the given IP.
Returns false if the host is not permitted to nbtstat the target node.