Skip to content

Commit

Permalink
Revert changes happening upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
juagargi committed Sep 20, 2024
1 parent 0eb117a commit bf66782
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/addr/isdas.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ type AS uint64
// ParseAS parses an AS from a decimal (in the case of the 32bit BGP AS number
// space) or ipv6-style hex (in the case of SCION-only AS numbers) string.
func ParseAS(as string) (AS, error) {
return ParseASSep(as, ":")
return parseAS(as, ":")
}

func ParseASSep(as string, sep string) (AS, error) {
func parseAS(as string, sep string) (AS, error) {
parts := strings.Split(as, sep)
if len(parts) == 1 {
// Must be a BGP AS, parse as 32-bit decimal number
Expand Down
1 change: 1 addition & 0 deletions tools/integration/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func dockerize(bi *binaryIntegration) Integration {
return bi
}

// StartServer starts a server and blocks until the ReadySignal is received on Stdout.
func (di *dockerIntegration) StartServer(ctx context.Context, dst *snet.UDPAddr) (Waiter, error) {
bi := *di.binaryIntegration
bi.serverArgs = append(dockerArgs, append([]string{TesterID(dst), bi.cmd}, bi.serverArgs...)...)
Expand Down
3 changes: 1 addition & 2 deletions tools/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ func generateAllSrcDst(hostAddr HostAddr, unique bool) []IAPair {

type HostAddr func(ia addr.IA) *snet.UDPAddr

// CSAddr reads the tester host Addr from the topology for the specified IA.
// If the address cannot be found, the CS address is returned.
// CSAddr reads the CS host Addr from the topology for the specified IA.
var CSAddr HostAddr = func(ia addr.IA) *snet.UDPAddr {
if a := loadAddr(ia); a != nil {
return a
Expand Down

0 comments on commit bf66782

Please sign in to comment.