route/netlink sockets don't have stats counters associated with them,
so it's now necessary to check whether socket stats exist before
incrementing or decrementing them. rather than relying on the caller
for this, we now just pass the socket and an index, and the correct
stats counter will be updated if it exists.
break;
}
- if (sock->statsindex != NULL) {
- isc__nm_incstats(sock->mgr, sock->statsindex[STATID_ACTIVE]);
- }
-
isc_mutex_init(&sock->lock);
isc_condition_init(&sock->cond);
isc_condition_init(&sock->scond);