You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
net: Interfaces returns no interfaces on DragonFly BSD #81503
The system's interfaces, e.g. em0, lo0, pflog0, pfsync0, tailscale0.
Additional context
internal/routebsd/interface_classic.go is compiled for darwin, dragonfly and
netbsd, and reads the if_msghdr/ifa_msghdr fields at the FreeBSD/darwin
offsets (addrs at offset 4, index at offset 12). DragonFly orders these
differently: ifm_index comes right after the message type (offset 4) and
ifm_addrs after the flags (offset 12). So the parser reads the index from the
addrs field and drops messages that lack the RTA_IFP bit, and net.Interfaces()
reports nothing.
Activity
gopherbot commentedon Sep 13, 2026
Change https://go.dev/cl/831784 mentions this issue:
internal/routebsd: fix interface parsing on DragonFly BSDgabyhelp commentedon Sep 13, 2026
Related Issues
Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
seankhliao commentedon Sep 15, 2026
cc @golang/dragonfly