arp: fixes to implementation (#18)

* typo in error text
* compactQueries was keeping invalid queries
* compactQueries accidentally ended up creating shared slices
This commit is contained in:
Egon Elbre
2026-01-12 22:27:26 +02:00
committed by GitHub
parent 1a427323f2
commit be2d380753
3 changed files with 89 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const (
var (
errARPBufferFull = errors.New("ARP client need handling:too many ops pending")
errShortARP = errors.New("packet too short to be ARP")
errARPUnsupported = errors.New("ARP not supprortedf")
errARPUnsupported = errors.New("ARP not supported")
errLargeSizes = errors.New("size of ARP protocol+hardware is unusually large")
)