Skip to content

Commit 05a645c

Browse files
author
aaronbojarski
committed
Merge branch 'scionproto-master' into upstream
2 parents 48e9028 + 09895b9 commit 05a645c

File tree

245 files changed

+595
-805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+595
-805
lines changed

acceptance/router_benchmark/brload/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ go_library(
1616
"//pkg/scrypto:go_default_library",
1717
"//pkg/slayers:go_default_library",
1818
"//private/keyconf:go_default_library",
19-
"@com_github_google_gopacket//:go_default_library",
20-
"@com_github_google_gopacket//afpacket:go_default_library",
21-
"@com_github_google_gopacket//layers:go_default_library",
19+
"@com_github_gopacket_gopacket//:go_default_library",
20+
"@com_github_gopacket_gopacket//afpacket:go_default_library",
21+
"@com_github_gopacket_gopacket//layers:go_default_library",
2222
"@com_github_spf13_cobra//:go_default_library",
2323
"@org_golang_x_sys//unix:go_default_library",
2424
],

acceptance/router_benchmark/brload/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
"reflect"
2626
"time"
2727

28-
"github.com/google/gopacket"
29-
"github.com/google/gopacket/afpacket"
30-
"github.com/google/gopacket/layers"
28+
"github.com/gopacket/gopacket"
29+
"github.com/gopacket/gopacket/afpacket"
30+
"github.com/gopacket/gopacket/layers"
3131
"github.com/spf13/cobra"
3232

3333
"github.com/scionproto/scion/acceptance/router_benchmark/cases"

acceptance/router_benchmark/brload/mmsg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"reflect"
1919
"unsafe"
2020

21-
"github.com/google/gopacket/afpacket"
21+
"github.com/gopacket/gopacket/afpacket"
2222
"golang.org/x/sys/unix"
2323
)
2424

acceptance/router_benchmark/cases/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ go_library(
2323
"//pkg/slayers:go_default_library",
2424
"//pkg/slayers/path:go_default_library",
2525
"//pkg/slayers/path/scion:go_default_library",
26-
"@com_github_google_gopacket//:go_default_library",
27-
"@com_github_google_gopacket//layers:go_default_library",
26+
"@com_github_gopacket_gopacket//:go_default_library",
27+
"@com_github_gopacket_gopacket//layers:go_default_library",
2828
"@com_github_mdlayher_arp//:go_default_library",
2929
"@com_github_mdlayher_ethernet//:go_default_library",
3030
],

acceptance/router_benchmark/cases/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package cases
1616

1717
import (
18-
"github.com/google/gopacket"
18+
"github.com/gopacket/gopacket"
1919
)
2020

2121
// We make the assumption os protocol sanity: the length and checksum fields are of fixed size

acceptance/router_benchmark/cases/topo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strings"
2424
"time"
2525

26-
"github.com/google/gopacket/layers"
26+
"github.com/gopacket/gopacket/layers"
2727
"github.com/mdlayher/arp"
2828
"github.com/mdlayher/ethernet"
2929

control/beaconing/extender_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"crypto/rand"
2222
"errors"
2323
"hash"
24-
mrand "math/rand"
24+
mrand "math/rand/v2"
2525
"testing"
2626
"time"
2727

control/beaconing/propagator_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func TestPropagatorRunNonCore(t *testing.T) {
8383
}
8484
g := graph.NewDefaultGraph(mctrl)
8585
provider.EXPECT().BeaconsToPropagate(gomock.Any()).Times(1).DoAndReturn(
86-
func(_ interface{}) ([]beacon.Beacon, error) {
86+
func(_ any) ([]beacon.Beacon, error) {
8787
res := make([]beacon.Beacon, 0, len(beacons))
8888
for _, desc := range beacons {
8989
res = append(res, testBeacon(g, desc))
@@ -157,7 +157,7 @@ func TestPropagatorRunCore(t *testing.T) {
157157
}
158158
g := graph.NewDefaultGraph(mctrl)
159159
provider.EXPECT().BeaconsToPropagate(gomock.Any()).Times(2).DoAndReturn(
160-
func(_ interface{}) ([]beacon.Beacon, error) {
160+
func(_ any) ([]beacon.Beacon, error) {
161161
res := make([]beacon.Beacon, 0, len(beacons))
162162
for _, desc := range beacons {
163163
res = append(res, testBeacon(g, desc))
@@ -248,7 +248,7 @@ func TestPropagatorFastRecovery(t *testing.T) {
248248
// We call run 4 times in this test, since the interface to 1-ff00:0:120
249249
// will never be beaconed on, because the beacons are filtered for loops.
250250
provider.EXPECT().BeaconsToPropagate(gomock.Any()).Times(4).DoAndReturn(
251-
func(_ interface{}) ([]beacon.Beacon, error) {
251+
func(_ any) ([]beacon.Beacon, error) {
252252
return []beacon.Beacon{testBeacon(g, beacons[0])}, nil
253253
},
254254
)

control/beaconing/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ type silentLogger struct {
122122
log.Logger
123123
}
124124

125-
func (s silentLogger) Info(msg string, ctx ...interface{}) {
125+
func (s silentLogger) Info(msg string, ctx ...any) {
126126
s.Logger.Debug(msg, ctx...)
127127
}
128-
func (s silentLogger) Error(msg string, ctx ...interface{}) {
128+
func (s silentLogger) Error(msg string, ctx ...any) {
129129
s.Logger.Debug(msg, ctx...)
130130
}

control/beaconing/writer_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func TestRegistrarRun(t *testing.T) {
119119

120120
g := graph.NewDefaultGraph(mctrl)
121121
segProvider.EXPECT().SegmentsToRegister(gomock.Any(), test.segType).DoAndReturn(
122-
func(_, _ interface{}) ([]beacon.Beacon, error) {
122+
func(_, _ any) ([]beacon.Beacon, error) {
123123
res := make([]beacon.Beacon, 0, len(test.beacons))
124124
for _, desc := range test.beacons {
125125
res = append(res, testBeacon(g, desc))
@@ -210,7 +210,7 @@ func TestRegistrarRun(t *testing.T) {
210210

211211
g := graph.NewDefaultGraph(mctrl)
212212
segProvider.EXPECT().SegmentsToRegister(gomock.Any(), test.segType).DoAndReturn(
213-
func(_, _ interface{}) ([]beacon.Beacon, error) {
213+
func(_, _ any) ([]beacon.Beacon, error) {
214214
res := make([]beacon.Beacon, len(test.beacons))
215215
for _, desc := range test.beacons {
216216
res = append(res, testBeacon(g, desc))
@@ -313,7 +313,7 @@ func TestRegistrarRun(t *testing.T) {
313313
require.NoError(t, err)
314314
segProvider.EXPECT().SegmentsToRegister(gomock.Any(),
315315
seg.TypeDown).DoAndReturn(
316-
func(_, _ interface{}) (<-chan beacon.Beacon, error) {
316+
func(_, _ any) (<-chan beacon.Beacon, error) {
317317
res := make(chan beacon.Beacon, 1)
318318
b := testBeacon(g, []uint16{graph.If_120_X_111_B})
319319
b.InIfID = 10

0 commit comments

Comments
 (0)