DeviceClassifier
Rule-ordered classification from open ports plus vendor. Rules are evaluated most-specific first: a box exposing both SMB and SSH is a NAS, not "a Windows host that also runs SSH".
public sealed class DeviceClassifier : IDeviceClassifier
1. Methods
1.1. Classify(IReadOnlyCollection<Port>, VendorName)
Classify a device from its open ports and vendor.
public DeviceKind Classify(IReadOnlyCollection<Port> openPorts, VendorName vendor)
| Name | Type | Description |
|---|---|---|
openPorts |
IReadOnlyCollection<Port> |
Ports found accepting connections. |
vendor |
VendorName |
Vendor resolved from the OUI. |
Returns: DeviceKind