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/dns
Brad Fitzpatrick a12aad6b47 all: convert more code to use net/netip directly
perl -i -npe 's,netaddr.IPPrefixFrom,netip.PrefixFrom,' $(git grep -l -F netaddr.)
    perl -i -npe 's,netaddr.IPPortFrom,netip.AddrPortFrom,' $(git grep -l -F netaddr. )
    perl -i -npe 's,netaddr.IPPrefix,netip.Prefix,g' $(git grep -l -F netaddr. )
    perl -i -npe 's,netaddr.IPPort,netip.AddrPort,g' $(git grep -l -F netaddr. )
    perl -i -npe 's,netaddr.IP\b,netip.Addr,g' $(git grep -l -F netaddr. )
    perl -i -npe 's,netaddr.IPv6Raw\b,netip.AddrFrom16,g' $(git grep -l -F netaddr. )
    goimports -w .

Then delete some stuff from the net/netaddr shim package which is no
longer neeed.

Updates #5162

Change-Id: Ia7a86893fe21c7e3ee1ec823e8aba288d4566cd8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
publicdns all: convert more code to use net/netip directly 2 years ago
resolvconffile all: convert more code to use net/netip directly 2 years ago
resolver all: convert more code to use net/netip directly 2 years ago
config.go all: convert more code to use net/netip directly 2 years ago
debian_resolvconf.go all: gofmt with Go 1.17 3 years ago
direct.go all: convert more code to use net/netip directly 2 years ago
direct_test.go all: convert more code to use net/netip directly 2 years ago
flush_default.go wgengine: flush DNS cache after major link change. 3 years ago
flush_windows.go wgengine: flush DNS cache after major link change. 3 years ago
ini.go all: gofmt with Go 1.17 3 years ago
ini_test.go all: gofmt -w -s (simplify) tests 2 years ago
manager.go all: convert more code to use net/netip directly 2 years ago
manager_darwin.go net/dns: add tailscaled-on-macOS DNS OSConfigurator 2 years ago
manager_default.go net/dns: add tailscaled-on-macOS DNS OSConfigurator 2 years ago
manager_freebsd.go net/dns: fall back to copy+delete/truncate if moving to/from /etc/resolv.conf fails. 3 years ago
manager_linux.go net/netaddr: start migrating to net/netip via new netaddr adapter package 2 years ago
manager_linux_test.go all: use any instead of interface{} 2 years ago
manager_openbsd.go net/dns: teach OpenBSD's manager to talk to resolvd(8). (#2789) 2 years ago
manager_tcp_test.go all: convert more code to use net/netip directly 2 years ago
manager_test.go all: convert more code to use net/netip directly 2 years ago
manager_windows.go all: convert more code to use net/netip directly 2 years ago
manager_windows_test.go all: convert more code to use net/netip directly 2 years ago
nm.go all: convert more code to use net/netip directly 2 years ago
noop.go net/dns: return error from NewOSManager, use it to initialize NM. 3 years ago
nrpt_windows.go net/dns: add Windows group policy notifications to the NRPT rule manager 2 years ago
openresolv.go all: gofmt with Go 1.17 3 years ago
osconfig.go all: convert more code to use net/netip directly 2 years ago
registry_windows.go wgengine/router/dns: move to net/dns. 3 years ago
resolvconf-workaround.sh net/dns: also include 'tail' and 'base' files when fixing up resolv.conf. 3 years ago
resolvconf.go net/dns: exhaustively test DNS selection paths for linux. 3 years ago
resolvd.go net/dns/resolvconffile: unify three /etc/resolv.conf parsers into new package 2 years ago
resolved.go net/netaddr: start migrating to net/netip via new netaddr adapter package 2 years ago
utf.go net/dns: detect and decode UTF-16 from wsl.exe earlier. 3 years ago
utf_test.go net/dns: detect and decode UTF-16 from wsl.exe earlier. 3 years ago
wsl_windows.go net/dns: fix checking for wrapped error when attempting to read wsl.conf for Windows WSL2 3 years ago