add -i flag to filter by single interface

This commit is contained in:
Ian Gulliver
2026-01-17 20:54:58 -08:00
parent 0d36c21db2
commit 477b6e9c99
3 changed files with 15 additions and 2 deletions

3
arp.go
View File

@@ -37,6 +37,9 @@ func (t *Tendrils) readARPTable() {
entries := t.parseARPTable()
for _, entry := range entries {
if t.iface != "" && entry.iface != t.iface {
continue
}
if isBroadcastOrZero(entry.mac) {
continue
}