[PATCH 18/20] ipmon(): optimize: move some checks away from the hot path