Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
matzf committed Nov 12, 2020
1 parent dcb5e8e commit 8b1308b
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions go/lib/snet/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ func (iface PathInterface) String() string {
}

// PathMetadata contains supplementary information about a path.
// This information is collected from individual AS entries in the path
// construction beacons; these entries are signed is signed and thus can be
// attributed to each AS. However, the *correctness* of this meta data has
// *not* been verified.
//
// The information about MTU, Latency, Bandwidth etc. are based solely on data
// contained in the AS entries in the path construction beacons. These entries
// are signed/verified based on the control plane PKI. However, the
// *correctness* of this meta data has *not* been checked.
type PathMetadata struct {
// Interfaces is a list of interfaces on the path.
Interfaces []PathInterface
Expand Down Expand Up @@ -131,17 +132,26 @@ func (pm *PathMetadata) Copy() *PathMetadata {
// LinkType describes the underlying network for inter-domain links.
type LinkType uint8

// LinkType values
const (
// LinkTypeUnset represents an unspecified link type.
LinkTypeUnset LinkType = iota
// LinkTypeDirect represents a direct physical connection.
LinkTypeDirect
// LinkTypeMultihop represents a connection with local routing/switching.
LinkTypeMultihop
// LinkTypeOpennet represents a connection overlayed over publicly routed Internet.
LinkTypeOpennet
)

// GeoCoordinates describes a geographical position (of a border router on the path).
type GeoCoordinates struct {
Latitude float32
// Latitude of the geographic coordinate, in the WGS 84 datum.
Latitude float32
// Longitude of the geographic coordinate, in the WGS 84 datum.
Longitude float32
Address string
// Civic address of the location.
Address string
}

type PathFingerprint string
Expand Down

0 comments on commit 8b1308b

Please sign in to comment.