hpkt

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package hpkt (Host Packet) contains low level primitives for parsing and creating end-host SCION messages.

Currently supports SCION/UDP and SCION/SCMP packets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseScnPkt

func ParseScnPkt(s *spkt.ScnPkt, b common.RawBytes) (err error)

ParseScnPkt populates the SCION fields in s with information from b

func ValidateExtensions added in v0.4.0

func ValidateExtensions(extns []common.Extension) ([]common.Extension, []common.Extension, error)

ValidateExtensions checks that the sequence of extension in argument extns conforms to the SCION protocol specification.

The function returns the sequence of HBH exntensions and the sequence of E2E extensions. If an error occurred, both slices are nil, and error is non-nil.

func WriteScnPkt

func WriteScnPkt(s *spkt.ScnPkt, b common.RawBytes) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL