Skip to content

Commit

Permalink
wgengine/filter: fix copy/pasteo in new benchmark's v6 CIDR
Browse files Browse the repository at this point in the history
I noticed the not-local-v6 numbers were nowhere near the v4 numbers
(they should be identical) and then saw this. It meant the
Addr().Next() wasn't picking an IP that was no longer local, as
assumed.

Updates tailscale#12486

Change-Id: I18dfb641f00c74c6252666bc41bd2248df15fadd
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
  • Loading branch information
bradfitz committed Jun 16, 2024
1 parent 64ac64f commit 10e8a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgengine/filter/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ func benchmarkFile(b *testing.B, file string, opt benchOpt) {
var localNets netipx.IPSetBuilder
pfx := []netip.Prefix{
netip.MustParsePrefix("100.96.14.120/32"),
netip.MustParsePrefix("fd7a:115c:a1e0:ab12:4843:cd96:6260:e78/32"),
netip.MustParsePrefix("fd7a:115c:a1e0:ab12:4843:cd96:6260:e78/128"),
}
for _, p := range pfx {
localNets.AddPrefix(p)
Expand Down

0 comments on commit 10e8a2a

Please sign in to comment.