Check protocol and version of received datagrams.
Add some logging.