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 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
..
dns all: convert more code to use net/netip directly 2 years ago
dnscache all: convert more code to use net/netip directly 2 years ago
dnsfallback all: convert more code to use net/netip directly 2 years ago
flowtrack all: convert more code to use net/netip directly 2 years ago
interfaces all: convert more code to use net/netip directly 2 years ago
netaddr all: convert more code to use net/netip directly 2 years ago
netcheck all: convert more code to use net/netip directly 2 years ago
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 2 years ago
netknob all: disable TCP keep-alives on iOS/Android 3 years ago
netns all: use various net/netip parse funcs directly 2 years ago
netstat all: convert more code to use net/netip directly 2 years ago
nettest net/nettest: deflake TestPipeTimeout 3 years ago
netutil all: convert more code to use net/netip directly 2 years ago
packet all: convert more code to use net/netip directly 2 years ago
portmapper all: convert more code to use net/netip directly 2 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 3 years ago
socks5 net/netaddr: start migrating to net/netip via new netaddr adapter package 2 years ago
speedtest all: fix spelling mistakes 3 years ago
stun all: use various net/netip parse funcs directly 2 years ago
tlsdial envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 2 years ago
tsaddr all: convert more code to use net/netip directly 2 years ago
tsdial all: convert more code to use net/netip directly 2 years ago
tshttpproxy net/tshttpproxy: synology: pick proxy by scheme 2 years ago
tstun all: convert more code to use net/netip directly 2 years ago