tailscale/net/packet
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>
2022-07-25 21:53:49 -07:00
..
doc.go net/packet: s/ParsedPacket/Parsed/ to avoid package stuttering. 2020-11-09 23:52:54 -08:00
header.go net/packet: add ICMP6Header, like ICMP4Header 2021-12-09 09:30:10 -08:00
icmp4.go net/packet, wgengine{,/filter}: remove net/packet IPProto forwarding consts 2021-03-20 21:45:47 -07:00
icmp6_test.go all: use various net/netip parse funcs directly 2022-07-25 21:12:28 -07:00
icmp6.go net/packet: add ICMP6Header, like ICMP4Header 2021-12-09 09:30:10 -08:00
icmp.go wgengine, net/packet, cmd/tailscale: add ICMP echo 2022-05-03 13:03:45 -07:00
ip4.go all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
ip6.go all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
packet_test.go all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
packet.go all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
tsmp_test.go all: use various net/netip parse funcs directly 2022-07-25 21:12:28 -07:00
tsmp.go all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
udp4.go net/packet, wgengine{,/filter}: remove net/packet IPProto forwarding consts 2021-03-20 21:45:47 -07:00
udp6.go net/packet: don't make IP6Header.marshalPseudo assume UDP 2021-12-08 21:15:46 -08:00