Changed routing diagnosis socket state from enum to int so that they can
be bitwiseor'ed together.

Review: https://reviews.apache.org/r/26236