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 <[email protected]>