Change in ...osmocom-bb[master]: trx_toolkit/trx_sniff.py: also validate() sniffed messages

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Wed Aug 28 09:49:28 UTC 2019


fixeria has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmocom-bb/+/15298 )

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

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

Change-Id: Ica3e4702fdabfdae0c1025b650ff32c8e85a6edf
---
M src/target/trx_toolkit/trx_sniff.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/src/target/trx_toolkit/trx_sniff.py b/src/target/trx_toolkit/trx_sniff.py
index 72976f7..f4b7662 100755
--- a/src/target/trx_toolkit/trx_sniff.py
+++ b/src/target/trx_toolkit/trx_sniff.py
@@ -109,6 +109,7 @@
 		# 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

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/15298
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ica3e4702fdabfdae0c1025b650ff32c8e85a6edf
Gerrit-Change-Number: 15298
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190828/793d914c/attachment.htm>


More information about the gerrit-log mailing list