RAY_MAX_RESETS
#ifndef RAY_MAX_RESETS
if (++sc->sc_resetloop >= RAY_MAX_RESETS) {
if (sc->sc_resetloop == RAY_MAX_RESETS) {
RAY_MAX_RESETS - sc->sc_resetloop);