Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface struct {
Conn net.PacketConn
RemoteAddr net.Addr
}
Interface represents a router interface.
type Router ¶
type Router struct {
// Interfaces maps the SCION Interface ID to the underlying connection and remote address.
Interfaces map[uint16]Interface
// Key is the secret key used for MAC verification (AES-CMAC usually, here HMAC-SHA256).
Key []byte
}
Router implements a SCION dataplane router.
func (*Router) AddInterface ¶
AddInterface adds an interface to the router.
Click to show internal directories.
Click to hide internal directories.