NG_HOOK_IS_VALID
if (sc->hook != NULL && NG_HOOK_IS_VALID(sc->hook)) {
if (sc->hook != NULL && NG_HOOK_IS_VALID(sc->hook)) {
v = (unit->drv != NULL && NG_HOOK_IS_VALID(unit->drv));
if (unit->raw != NULL && NG_HOOK_IS_VALID(unit->raw)) {
if (unit->acl != NULL && NG_HOOK_IS_VALID(unit->acl)) {
if (unit->sco != NULL && NG_HOOK_IS_VALID(unit->sco)) {
if (unit->acl != NULL && NG_HOOK_IS_VALID(unit->acl)) {
if (unit->sco != NULL && NG_HOOK_IS_VALID(unit->sco)) {
if (hook != NULL && NG_HOOK_IS_VALID(hook)) {
if (unit->acl != NULL && NG_HOOK_IS_VALID(unit->acl)) {
if (unit->sco != NULL && NG_HOOK_IS_VALID(unit->sco)) {
if (hook != NULL && NG_HOOK_IS_VALID(hook)) {
if (unit->acl != NULL && NG_HOOK_IS_VALID(unit->acl)) {
if (unit->sco != NULL && NG_HOOK_IS_VALID(unit->sco)) {
* if (l2cap->ctl != NULL && NG_HOOK_IS_VALID(l2cap->ctl))
if (NG_HOOK_IS_VALID(hook)
if (NG_HOOK_IS_VALID(hook) && (hpriv->rulenum == rulenum))