Documentation ¶
Overview ¶
Package ipv6 contains the implementation of the ipv6 network protocol. To use it in the networking stack, this package must be added to the project, and activated on the stack by passing ipv6.ProtocolName (or "ipv6") as one of the network protocols when calling stack.New(). Then endpoints can be created by passing ipv6.ProtocolNumber as the network protocol number when calling Stack.NewEndpoint().
Index ¶
Constants ¶
View Source
const ( // ProtocolName is the string representation of the ipv6 protocol name. ProtocolName = "ipv6" // ProtocolNumber is the ipv6 protocol number. ProtocolNumber = header.IPv6ProtocolNumber )
Variables ¶
This section is empty.
Functions ¶
func NewProtocol ¶
func NewProtocol() stack.NetworkProtocol
NewProtocol creates a new protocol ipv6 protocol descriptor. This is exported only for tests that short-circuit the stack. Regular use of the protocol is done via the stack, which gets a protocol descriptor from the init() function below.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.