mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-07 05:40:52 +08:00
24 lines
537 B
Go
24 lines
537 B
Go
package header
|
|
|
|
import "netstack/tcpip"
|
|
|
|
type IPv6 []byte
|
|
|
|
const (
|
|
// IPv6MinimumSize is the minimum size of a valid IPv6 packet.
|
|
IPv6MinimumSize = 40
|
|
|
|
// IPv6AddressSize is the size, in bytes, of an IPv6 address.
|
|
IPv6AddressSize = 16
|
|
|
|
// IPv6ProtocolNumber is IPv6's network protocol number.
|
|
IPv6ProtocolNumber tcpip.NetworkProtocolNumber = 0x86dd
|
|
|
|
// IPv6Version is the version of the ipv6 protocol.
|
|
IPv6Version = 6
|
|
|
|
// IPv6MinimumMTU is the minimum MTU required by IPv6, per RFC 2460,
|
|
// section 5.
|
|
IPv6MinimumMTU = 1280
|
|
)
|