aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/osmo_nitb.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-05-08 17:07:28 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-05-10 13:48:31 +0200
commit13143bc4dff967b60223666979e082e32ae55798 (patch)
tree31fb2c71e3138ffc98e6df13e7a8984703caa0b2 /src/osmo_gsm_tester/osmo_nitb.py
parentecf107983b916257c2de7368c4bf61006578b9e4 (diff)
Log network activity using tcpdump for nitb interface
Diffstat (limited to 'src/osmo_gsm_tester/osmo_nitb.py')
-rw-r--r--src/osmo_gsm_tester/osmo_nitb.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/osmo_nitb.py b/src/osmo_gsm_tester/osmo_nitb.py
index 3ed48b2..b81d612 100644
--- a/src/osmo_gsm_tester/osmo_nitb.py
+++ b/src/osmo_gsm_tester/osmo_nitb.py
@@ -22,7 +22,7 @@ import random
import re
import socket
-from . import log, util, config, template, process, osmo_ctrl
+from . import log, util, config, template, process, osmo_ctrl, pcaprecorder
class OsmoNitb(log.Origin):
suite_run = None
@@ -51,6 +51,10 @@ class OsmoNitb(log.Origin):
if not os.path.isdir(lib):
raise RuntimeError('No lib/ in %r' % inst)
+ iface = util.ip_to_iface(self.addr())
+ pcaprecorder.PcapRecorder(self.suite_run, self.run_dir.new_dir('pcap'),
+ iface, self.addr())
+
env = { 'LD_LIBRARY_PATH': util.prepend_library_path(lib) }
self.dbg(run_dir=self.run_dir, binary=binary, env=env)