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
Tue Aug 27 21:05:41 UTC 2019


fixeria has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/98/15298/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190827/e022f850/attachment.htm>


More information about the gerrit-log mailing list