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 ScnPkt
Constants ¶
View Source
const ( CmnHdrLen = 8 // Bytes SCIONVersion = 0 )
View Source
const (
ErrUnsuppVersion common.ErrMsg = "Unsupported SCION version"
)
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 ScnPkt ¶
type ScnPkt struct { DstIA addr.IA SrcIA addr.IA DstHost addr.HostAddr SrcHost addr.HostAddr Path *spath.Path HBHExt []common.Extension E2EExt []common.Extension L4 l4.L4Header Pld common.Payload }
SCION Packet structure.
Click to show internal directories.
Click to hide internal directories.