Documentation ¶
Overview ¶
Package epic implements the Path interface for the EPIC path type.
Index ¶
Constants ¶
View Source
const ( // PathType denotes the EPIC path type identifier. PathType path.Type = 3 // MetadataLen denotes the number of bytes the EPIC path type contains in addition to the SCION // path type. It is the sum of the PktID (8B), the PHVF (4B) and the LHVF (4B) sizes. MetadataLen = 16 // PktIDLen denotes the length of the packet identifier. PktIDLen = 8 // HVFLen denotes the length of the hop validation fields. The length is the same for both the // PHVF and the LHVF. HVFLen = 4 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Path ¶
Path denotes the EPIC path type header.
func (*Path) DecodeFromBytes ¶
DecodeFromBytes deserializes the buffer b into the Path. On failure, an error is returned, otherwise SerializeTo will return nil.
func (*Path) Reverse ¶
Reverse reverses the EPIC path. In particular, this means that the SCION path type subheader is reversed.
func (*Path) SerializeTo ¶
SerializeTo serializes the Path into buffer b. On failure, an error is returned, otherwise SerializeTo will return nil.
type PktID ¶
PktID denotes the EPIC packet ID.
func (*PktID) DecodeFromBytes ¶
DecodeFromBytes deserializes the buffer (raw) into the PktID.
func (*PktID) SerializeTo ¶
SerializeTo serializes the PktID into the buffer (b).
Click to show internal directories.
Click to hide internal directories.