net: remove unused linknames

errNoSuchInterface:
a33349366d

defaultNS:
4a16d22398

For #67401

Change-Id: I2945bc5edf8a474315283c57259ba6c2a0b85776
Reviewed-on: https://go-review.googlesource.com/c/go/+/721161
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Sean Liao 2025-11-17 19:25:21 +00:00
parent 65ef314f89
commit cfb9d2eb73
2 changed files with 0 additions and 11 deletions

View file

@ -18,7 +18,6 @@ import (
// Notable members of the hall of shame include:
// - github.com/pojntfx/hydrapp/hydrapp
// - github.com/mtibben/androiddnsfix
// - github.com/metacubex/mihomo
//
// Do not remove or change the type signature.
// See go.dev/issue/67401.

View file

@ -18,16 +18,6 @@ import (
// BUG(mikio): On AIX, DragonFly BSD, NetBSD, OpenBSD, Plan 9 and
// Solaris, the MulticastAddrs method of Interface is not implemented.
// errNoSuchInterface should be an internal detail,
// but widely used packages access it using linkname.
// Notable members of the hall of shame include:
// - github.com/sagernet/sing
//
// Do not remove or change the type signature.
// See go.dev/issue/67401.
//
//go:linkname errNoSuchInterface
var (
errInvalidInterface = errors.New("invalid network interface")
errInvalidInterfaceIndex = errors.New("invalid network interface index")