You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine
Brad Fitzpatrick fb96137d79 net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl
This adds netx.DialFunc, unifying a type we have a bazillion other
places, giving it now a nice short name that's clickable in
editors, etc.

That highlighted that my earlier move (03b47a55c7) of stuff from
nettest into netx moved too much: it also dragged along the memnet
impl, meaning all users of netx.DialFunc who just wanted netx for the
type definition were instead also pulling in all of memnet.

So move the memnet implementation netx.Network into memnet, a package
we already had.

Then use netx.DialFunc in a bunch of places. I'm sure I missed some.
And plenty remain in other repos, to be updated later.

Updates tailscale/corp#27636

Change-Id: I7296cd4591218e8624e214f8c70dab05fb884e95
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
8 months ago
..
bench ipn/ipnlocal, all: plumb health trackers in tests 2 years ago
filter wgengine/filter: add check for unknown proto 10 months ago
magicsock all: use network less when running in v86 emulator 8 months ago
netlog wgengine: add exit destination logging enable for wgengine logger (#11952) 2 years ago
netstack net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
router wgengine/router: default to a fake router on android 8 months ago
wgcfg wgengine/wgcfg/nmcfg: coalesce, limit some debug logs 10 months ago
wgint wgengine{,/wgint}: add wgint.Peer wrapper type, add to wgengine.Engine 2 years ago
wglog all: use Go 1.22 range-over-int 2 years ago
winnet all: add test for package comments, fix, add comments as needed 1 year ago
mem_ios.go all: update copyright and license headers 3 years ago
pendopen.go all: add Node.HomeDERP int, phase out "127.3.3.40:$region" hack [capver 111] 11 months ago
userspace.go net/tstun: add Plan 9 'tun' support 8 months ago
userspace_ext_test.go util/usermetrics: make usermetrics non-global 1 year ago
userspace_test.go util/usermetrics: make usermetrics non-global 1 year ago
watchdog.go feature/capture: move packet capture to feature/*, out of iOS + CLI 10 months ago
watchdog_js.go all: update copyright and license headers 3 years ago
watchdog_test.go util/usermetrics: make usermetrics non-global 1 year ago
wgengine.go feature/capture: move packet capture to feature/*, out of iOS + CLI 10 months ago