Skip to content

ping: allow pinging svc addresses#4898

Open
uniquefine wants to merge 2 commits into
scionproto:masterfrom
uniquefine:ping-svc-addrs
Open

ping: allow pinging svc addresses#4898
uniquefine wants to merge 2 commits into
scionproto:masterfrom
uniquefine:ping-svc-addrs

Conversation

@uniquefine
Copy link
Copy Markdown
Contributor

Extend the scion ping tool to allow pinging SCION control plane services by svc address.

This is useful if you want to ping some host in a remote ISD-AS but don't know a specific IP.

Comment thread scion/cmd/scion/ping.go Outdated
Use 'scion address' on the remote SCION host to determine the ISD-AS and pingable IP address.

You can also ping SCION control plane services in the remote AS by using the SVC address of the
service, e.g., '1-ff00:0:110,CS' to ping the control service.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
service, e.g., '1-ff00:0:110,CS' to ping the control service.
service, e.g., '1-ff00:0:110,CS' to ping a control service.

I guess it randomly picks one?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it picks the first one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread scion/cmd/scion/ping.go
// provided service type (addr.SvcCS or addr.SvcDS). If no discovery information
// is available, it will return a SVC address with the destination IA and the
// path's underlay next hop.
// The caller must ensure that the path is not nil.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation string doesn't match the behavior...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems to be a plain copy of the function doc above.

@uniquefine uniquefine force-pushed the ping-svc-addrs branch 2 times, most recently from 33caf85 to aa74736 Compare March 9, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants