Use the right byte order function of in_port and metadata fields parsing