code: func calculateMTU(mtu uint32) uint32 {
  	mtu -= header.IPv6MinimumSize
  	if mtu <= maxPayloadSize {
  		return mtu
  	}
  	return maxPayloadSize
  }
docs: // calculateMTU calculates the network-layer payload MTU based on the link-layer
  // payload mtu.