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/net
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
..
art all: fix new lint warnings from bumping staticcheck 1 year ago
bakedroots net/bakedroots: add LetsEncrypt ISRG Root X2 11 months ago
captivedetection tailcfg: add DERPRegion.NoMeasureNoHome, deprecate+document Avoid [cap 115] 9 months ago
connstats {net/connstats,wgengine/magicsock}: fix packet counting in connstats 1 year ago
dns net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
dnscache net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
dnsfallback {control,net}: close idle connections of custom transports 1 year ago
flowtrack net/flowtrack: fix, test String method 1 year ago
ipset all: use iterators over slice views more 1 year ago
ktimeout various: disable MPTCP when setting TCP_USER_TIMEOUT sockopt (#15063) 10 months ago
memnet net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
netaddr all: update copyright and license headers 3 years ago
netcheck all: use network less when running in v86 emulator 8 months ago
neterror net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 3 years ago
netkernelconf ipn/{ipnlocal,localapi},net/netkernelconf,client/tailscale,cmd/containerboot: optionally enable UDP GRO forwarding for containers (#12410) 2 years ago
netknob all: update copyright and license headers 3 years ago
netmon net/netmon: disable time jump monitoring on Plan 9 8 months ago
netns net/netns: remove some logspam by avoiding logging parse errors due to unspecified addresses 1 year ago
netstat all: add test for package comments, fix, add comments as needed 1 year ago
netutil all: illumos/solaris userspace only support 11 months ago
netx net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
packet net/packet: implement Geneve header serialization (#15301) 9 months ago
ping net/ping: fix ICMP echo code field to 0 2 years ago
portmapper net/portmapper: retry UPnP when we get an "Invalid Args" 9 months ago
proxymux all: cleanup unused code, part 1 (#10661) 2 years ago
routetable net/routetable: don't try to fetch the route table on android 8 months ago
socks5 net/socks5: optimize UDP relay 1 year ago
sockstats net/sockstats: prevent crash in setNetMon (#13985) 1 year ago
speedtest all: update copyright and license headers 3 years ago
stun ci: enable checklocks workflow for specific packages 1 year ago
stunserver all: use Go 1.22 range-over-int 2 years ago
tcpinfo all: use Go 1.22 range-over-int 2 years ago
tlsdial cmd/derper, derp/derphttp: support, generate self-signed IP address certs 9 months ago
tsaddr net/tsaddr: include test input in test failure output 1 year ago
tsdial net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
tshttpproxy all: fix golangci-lint errors 11 months ago
tstun net/tstun: don't try to set link attributes on android 8 months ago
udprelay net/udprelay: start of UDP relay server implementation (#15480) 8 months ago
wsconn go.{mod,sum}: migrate from nhooyr.io/websocket to github.com/coder/websocket 1 year ago