summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pkg/server/grpc_server.go8
-rw-r--r--pkg/server/server.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go
index eb17c69f..8b70c36e 100644
--- a/pkg/server/grpc_server.go
+++ b/pkg/server/grpc_server.go
@@ -110,9 +110,9 @@ func newValidationFromTableStruct(v *table.Validation) *api.RPKIValidation {
}
return &api.RPKIValidation{
Reason: api.RPKIValidation_Reason(v.Reason.ToInt()),
- Matched: NewRoaListFromTableStructList(v.Matched),
- UnmatchedAs: NewRoaListFromTableStructList(v.UnmatchedAs),
- UnmatchedLength: NewRoaListFromTableStructList(v.UnmatchedLength),
+ Matched: newRoaListFromTableStructList(v.Matched),
+ UnmatchedAs: newRoaListFromTableStructList(v.UnmatchedAs),
+ UnmatchedLength: newRoaListFromTableStructList(v.UnmatchedLength),
}
}
@@ -1668,7 +1668,7 @@ func newPolicyFromApiStruct(a *api.Policy) (*table.Policy, error) {
}, nil
}
-func NewRoaListFromTableStructList(origin []*table.ROA) []*api.Roa {
+func newRoaListFromTableStructList(origin []*table.ROA) []*api.Roa {
l := make([]*api.Roa, 0)
for _, r := range origin {
host, portStr, _ := net.SplitHostPort(r.Src)
diff --git a/pkg/server/server.go b/pkg/server/server.go
index d250b099..23391c19 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -3302,7 +3302,7 @@ func (s *BgpServer) ListRpkiTable(ctx context.Context, r *api.ListRpkiTableReque
}
roas, err = s.roaManager.GetRoa(family)
if err == nil {
- l = append(l, NewRoaListFromTableStructList(roas)...)
+ l = append(l, newRoaListFromTableStructList(roas)...)
}
return nil
}, false)