]> Cypherpunks repositories - gostls13.git/commit
net: don't use syscall.NET_RT_IFLISTL on FreeBSD
authorDamien Neil <dneil@google.com>
Sat, 2 Oct 2021 00:45:09 +0000 (17:45 -0700)
committerDamien Neil <dneil@google.com>
Sat, 2 Oct 2021 16:05:55 +0000 (16:05 +0000)
commita7fe161ccceb330cd1f19cd103a61f8deacbbdc3
treeb86d63191928060106b4a81379179867eaacde63
parent07a7c6f904a4deed9a37bf5c79a1c3d21d623347
net: don't use syscall.NET_RT_IFLISTL on FreeBSD

The golang.org/x/net/route package can't parse the RIB returned
by NET_RT_IFLISTL. Use the route.RIBTypeInterface constant
instead, leaving the choice of syscall up to the route package.

Fixes #48553.

Change-Id: Ida4bd6e332c0dc6dc871d3a93cfb56c0fbc93e1b
Reviewed-on: https://go-review.googlesource.com/c/go/+/353611
Trust: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/net/interface_freebsd.go