func (b IPv6) HopLimit() uint8 {
	return b[hopLimit]
}
HopLimit returns the value of the "hop limit" field of the ipv6 header.
package header
import (
	"encoding/binary"
	"strings"
	tcpip "github.com/brewlin/net-protocol/protocol"
)
const (
	versTCFL   = 0
	payloadLen = 4
	nextHdr    = 6
	hopLimit   = 7
	v6SrcAddr  = 8
	v6DstAddr  = 24
)
type IPv6Fields struct {
	TrafficClass uint8
	FlowLabel uint32
	PayloadLength uint16
	NextHeader uint8
	HopLimit uint8
	SrcAddr tcpip.Address
	DstAddr tcpip.Address
}
type IPv6 []byte
const (
	IPv6MinimumSize = 40
	IPv6AddressSize = 16
	IPv6ProtocolNumber tcpip.NetworkProtocolNumber = 0x86dd
	IPv6Version = 6
	IPv6MinimumMTU = 1280
)
func (b IPv6) PayloadLength() uint16 {
	return binary.BigEndian.Uint16(b[payloadLen:])
}