add lock to tcp.Conn; claude Fix ARP handler not responding after DHCP

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Patricio Whittingslow
2025-11-09 14:16:23 -03:00
parent e3c6d68288
commit 7042a653a6
3 changed files with 85 additions and 14 deletions
+3
View File
@@ -115,6 +115,9 @@ func run() (err error) {
fmt.Println("ERR:ENCAPSULATE", err)
} else if nwrite > 0 {
frames, err = cap.CaptureEthernet(frames[:0], buf[:nwrite], 0)
if err != nil {
log.Println("ERR capture", err)
}
if len(frames) > 0 {
fmt.Println("OUT", frames)
}