Change in osmocom-bb[master]: trx_toolkit/trx_sniff.py: fix memleak: don't store packets

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri Jul 20 17:18:53 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/10077


Change subject: trx_toolkit/trx_sniff.py: fix memleak: don't store packets
......................................................................

trx_toolkit/trx_sniff.py: fix memleak: don't store packets

The Scapy itself was the actual cause of continuously growing
memory consumption. It was configured to store the captured
packets, what isn't required for this tool.

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



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/77/10077/1

diff --git a/src/target/trx_toolkit/trx_sniff.py b/src/target/trx_toolkit/trx_sniff.py
index 577e6f9..535bb3f 100755
--- a/src/target/trx_toolkit/trx_sniff.py
+++ b/src/target/trx_toolkit/trx_sniff.py
@@ -79,7 +79,7 @@
 		print("[i] Listening on interface '%s'..." % self.sniff_interface)
 
 		# Start sniffing...
-		scapy.all.sniff(iface = self.sniff_interface, store = 1,
+		scapy.all.sniff(iface = self.sniff_interface, store = 0,
 			filter = pkt_filter, prn = self.pkt_handler)
 
 		# Scapy registers its own signal handler

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c6d9b76398e148b7febd94aa37aa2fa22d19b3f
Gerrit-Change-Number: 10077
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180720/5c7c48db/attachment.htm>


More information about the gerrit-log mailing list