From 26bc7fa7d4bbd33606b7fadbb3a50dfaa9a609b4 Mon Sep 17 00:00:00 2001 From: rkonfj Date: Tue, 16 Jul 2024 21:59:18 +0800 Subject: [PATCH] netlink: fix ipv4 route ignored on darwin --- netlink/route_darwin.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/netlink/route_darwin.go b/netlink/route_darwin.go index 3b08441..5648acf 100644 --- a/netlink/route_darwin.go +++ b/netlink/route_darwin.go @@ -38,10 +38,6 @@ func runReadLoop(fd int, ch chan<- RouteUpdate) error { if err != nil { return fmt.Errorf("syscall read: %w", err) } - if n < 176 { - slog.Warn("Ignore msg with length less than 176", "len", n) - continue - } msg := buf[:176] msg[0] = 176 msgs, err := route.ParseRIB(route.RIBTypeRoute, msg)