Skip to content

Commit 1fcc75e

Browse files
Update dependencies in go.mod (#37)
* go get -u . * Revert "go get -u ." This reverts commit de4e76c. * use the latest stable released version of gobgp * remove toolchain directive * git ignore the zannotate binary itself and DS_Store files from the IDE * fix compile error
1 parent 33ce757 commit 1fcc75e

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
.idea
22
*.mmdb
33
**/venv/*
4-
**/__pycache__/*
4+
**/__pycache__/*
5+
# zannotate binary
6+
zannotate
7+
# IDE Files
8+
**/.DS_Store

cmd/mrt2json/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"fmt"
2121
"os"
2222

23-
"github.com/osrg/gobgp/v4/pkg/packet/bgp"
24-
"github.com/osrg/gobgp/v4/pkg/packet/mrt"
23+
"github.com/osrg/gobgp/v3/pkg/packet/bgp"
24+
"github.com/osrg/gobgp/v3/pkg/packet/mrt"
2525
log "github.com/sirupsen/logrus"
2626

2727
"github.com/zmap/zannotate/zmrt"
@@ -61,7 +61,7 @@ type RawRib struct {
6161
SequenceNumber uint32 `json:"sequence_number"`
6262
Prefix bgp.AddrPrefixInterface `json:"prefix"`
6363
Entries []*RawRibEntry `json:"entries"`
64-
RouteFamily bgp.Family `json:"route_family"`
64+
RouteFamily bgp.RouteFamily `json:"route_family"`
6565
}
6666

6767
func raw(conf *MRT2JsonGlobalConf, f *os.File) {
@@ -102,7 +102,7 @@ func raw(conf *MRT2JsonGlobalConf, f *os.File) {
102102
var out RawRib
103103
out.SequenceNumber = rib.SequenceNumber
104104
out.Prefix = rib.Prefix
105-
out.RouteFamily = rib.Family
105+
out.RouteFamily = rib.RouteFamily
106106
for _, entry := range rib.Entries {
107107
var ribOut RawRibEntry
108108
ribOut.PeerIndex = entry.PeerIndex

go.mod

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
module github.com/zmap/zannotate
22

3-
go 1.23.0
4-
5-
toolchain go1.24.4
3+
go 1.24.0
64

75
require (
86
github.com/json-iterator/go v1.1.12
97
github.com/oschwald/geoip2-golang v1.13.0
10-
github.com/osrg/gobgp/v4 v4.0.0-20250606141535-bfa40aa58ac3
8+
github.com/osrg/gobgp/v3 v3.37.0
119
github.com/sirupsen/logrus v1.9.3
1210
github.com/zmap/go-iptree v0.0.0-20210731043055-d4e632617837
1311
gotest.tools/v3 v3.5.2
@@ -19,5 +17,5 @@ require (
1917
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
2018
github.com/modern-go/reflect2 v1.0.2 // indirect
2119
github.com/oschwald/maxminddb-golang v1.13.1 // indirect
22-
golang.org/x/sys v0.33.0 // indirect
20+
golang.org/x/sys v0.36.0 // indirect
2321
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ github.com/oschwald/geoip2-golang v1.13.0 h1:Q44/Ldc703pasJeP5V9+aFSZFmBN7DKHbNs
2020
github.com/oschwald/geoip2-golang v1.13.0/go.mod h1:P9zG+54KPEFOliZ29i7SeYZ/GM6tfEL+rgSn03hYuUo=
2121
github.com/oschwald/maxminddb-golang v1.13.1 h1:G3wwjdN9JmIK2o/ermkHM+98oX5fS+k5MbwsmL4MRQE=
2222
github.com/oschwald/maxminddb-golang v1.13.1/go.mod h1:K4pgV9N/GcK694KSTmVSDTODk4IsCNThNdTmnaBZ/F8=
23-
github.com/osrg/gobgp/v4 v4.0.0-20250606141535-bfa40aa58ac3 h1:Iwv8PJDWY5xiX/r1TX/6E2QSi/Fj/6EScpgkOZ6mOp8=
24-
github.com/osrg/gobgp/v4 v4.0.0-20250606141535-bfa40aa58ac3/go.mod h1:2IkfJb7PykGZnbXRDCnC6yALE1aESyX75Ab3uIEbgkI=
23+
github.com/osrg/gobgp/v3 v3.37.0 h1:+ObuOdvj7G7nxrT0fKFta+EAupdWf/q1WzbXydr8IOY=
24+
github.com/osrg/gobgp/v3 v3.37.0/go.mod h1:kVHVFy1/fyZHJ8P32+ctvPeJogn9qKwa1YCeMRXXrP0=
2525
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2626
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2727
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
@@ -34,8 +34,8 @@ github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8
3434
github.com/zmap/go-iptree v0.0.0-20210731043055-d4e632617837 h1:DjHnADS2r2zynZ3WkCFAQ+PNYngMSNceRROi0pO6c3M=
3535
github.com/zmap/go-iptree v0.0.0-20210731043055-d4e632617837/go.mod h1:9vp0bxqozzQwcjBwenEXfKVq8+mYbwHkQ1NF9Ap0DMw=
3636
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
37-
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
38-
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
37+
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
38+
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
3939
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4040
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
4141
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

zmrt/mrt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"net"
2323
"time"
2424

25-
"github.com/osrg/gobgp/v4/pkg/packet/bgp"
26-
"github.com/osrg/gobgp/v4/pkg/packet/mrt"
25+
"github.com/osrg/gobgp/v3/pkg/packet/bgp"
26+
"github.com/osrg/gobgp/v3/pkg/packet/mrt"
2727
"github.com/sirupsen/logrus"
2828
)
2929

zrouting/routinglookup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"io"
2121
"net"
2222

23-
"github.com/osrg/gobgp/v4/pkg/packet/bgp"
23+
"github.com/osrg/gobgp/v3/pkg/packet/bgp"
2424
"github.com/zmap/go-iptree/iptree"
2525

2626
"github.com/zmap/zannotate/zmrt"

0 commit comments

Comments
 (0)