trx_toolkit/trx_sniff.py: also validate() sniffed messages

Change-Id: Ica3e4702fdabfdae0c1025b650ff32c8e85a6edf
This commit is contained in:
Vadim Yanitskiy 2019-08-27 21:06:03 +02:00
parent 78199f4f7b
commit 83a41a63b2
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class Application(ApplicationBase):
# Attempt to parse the payload as a DATA message
try:
msg.parse_msg(msg_raw)
msg.validate()
except ValueError as e:
log.warning("Ignoring an incorrect message: %s" % e)
self.cnt_burst_dropped_num += 1