sock: extend the sock_msg_type() function to include NACK messages.