Fix spurious misidentification of incoming UDP packets.