Documentation ¶
Index ¶
- Constants
- func AddrHdrLen(dst addr.HostAddr, src addr.HostAddr) int
- type CmnHdr
- func (c *CmnHdr) HdrLenBytes() int
- func (c *CmnHdr) HopFOffBytes() int
- func (c *CmnHdr) InfoFOffBytes() int
- func (c *CmnHdr) Parse(b common.RawBytes) error
- func (c CmnHdr) String() string
- func (c *CmnHdr) UpdatePathOffsets(b common.RawBytes, iOff, hOff uint8)
- func (c *CmnHdr) Write(b common.RawBytes)
- type OneHopPath
- func (o OneHopPath) Class() common.L4ProtocolType
- func (o OneHopPath) Copy() common.Extension
- func (o OneHopPath) Len() int
- func (o OneHopPath) Pack() (common.RawBytes, error)
- func (o OneHopPath) Reverse() (bool, error)
- func (o *OneHopPath) String() string
- func (o OneHopPath) Type() common.ExtnType
- func (o OneHopPath) Write(b common.RawBytes) error
- type ScnPkt
- type Traceroute
- func (t *Traceroute) Class() common.L4ProtocolType
- func (t *Traceroute) Copy() common.Extension
- func (t *Traceroute) Len() int
- func (t *Traceroute) NumHops() int
- func (t *Traceroute) Pack() (common.RawBytes, error)
- func (t *Traceroute) Reverse() (bool, error)
- func (t *Traceroute) String() string
- func (t *Traceroute) TotalHops() int
- func (t *Traceroute) Type() common.ExtnType
- func (t *Traceroute) Write(b common.RawBytes) error
- type TracerouteEntry
Constants ¶
View Source
const ( CmnHdrLen = 8 // Bytes SCIONVersion = 0 )
View Source
const (
ErrorUnsuppVersion = "Unsupported SCION version"
)
View Source
const OneHopPathLen = common.ExtnFirstLineLen
View Source
const (
TracerouteEntryLen = 8
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmnHdr ¶
type CmnHdr struct { Ver uint8 DstType addr.HostAddrType SrcType addr.HostAddrType TotalLen uint16 HdrLen uint8 CurrInfoF uint8 CurrHopF uint8 NextHdr common.L4ProtocolType }
func (*CmnHdr) HdrLenBytes ¶
func (*CmnHdr) HopFOffBytes ¶
func (*CmnHdr) InfoFOffBytes ¶
func (*CmnHdr) UpdatePathOffsets ¶
type OneHopPath ¶
type OneHopPath struct{}
func (OneHopPath) Class ¶
func (o OneHopPath) Class() common.L4ProtocolType
func (OneHopPath) Copy ¶
func (o OneHopPath) Copy() common.Extension
func (OneHopPath) Len ¶
func (o OneHopPath) Len() int
func (OneHopPath) Reverse ¶
func (o OneHopPath) Reverse() (bool, error)
func (*OneHopPath) String ¶
func (o *OneHopPath) String() string
func (OneHopPath) Type ¶
func (o OneHopPath) Type() common.ExtnType
type ScnPkt ¶
type ScnPkt struct { CmnHdr *CmnHdr // FIXME(scrye): remove this once the SIG no longer needs it DstIA *addr.ISD_AS SrcIA *addr.ISD_AS DstHost addr.HostAddr SrcHost addr.HostAddr Path *spath.Path HBHExt []common.Extension E2EExt []common.Extension L4 l4.L4Header Pld common.Payload }
SCION Packet structure.
type Traceroute ¶
type Traceroute struct {
Hops []*TracerouteEntry
}
func NewTraceroute ¶
func NewTraceroute(totalHops int) *Traceroute
func (*Traceroute) Class ¶
func (t *Traceroute) Class() common.L4ProtocolType
func (*Traceroute) Copy ¶
func (t *Traceroute) Copy() common.Extension
func (*Traceroute) Len ¶
func (t *Traceroute) Len() int
func (*Traceroute) NumHops ¶
func (t *Traceroute) NumHops() int
func (*Traceroute) Reverse ¶
func (t *Traceroute) Reverse() (bool, error)
func (*Traceroute) String ¶
func (t *Traceroute) String() string
func (*Traceroute) TotalHops ¶
func (t *Traceroute) TotalHops() int
func (*Traceroute) Type ¶
func (t *Traceroute) Type() common.ExtnType
type TracerouteEntry ¶
func (*TracerouteEntry) Copy ¶
func (t *TracerouteEntry) Copy() *TracerouteEntry
func (*TracerouteEntry) Write ¶
func (t *TracerouteEntry) Write(b common.RawBytes)
Click to show internal directories.
Click to hide internal directories.