Skip to content

Wrong MAC address (thus wrong Vendor) in results #8

Closed
@braggpeaks

Description

@braggpeaks

MAC addresses and Vendors are incorrectly assigned if IPs start with same substring (e.g. 192.168.0.1 and 192.168.0.101).
Replace line 494 with
if($Line.TrimStart().StartsWith($IPv4Address.IPAddressToString + " "))
and $MAC of 192.168.0.1 will not get assigned again by 192.168.0.101.

Or use Get-NetNeighbor cmdlet to resolve MAC from IP (presumably slower for this implementation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions