aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-25 22:31:59 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-26 00:06:40 +0200
commited03661871ac8ee1715c04390d25631537b084ac (patch)
tree39aeda51387ba5af9ebd44a552163fa0d0345e52 /openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua
parent888e35aa7fbb2ba40526456abab739b7c15013e0 (diff)
remove sgsn, gbproxy and gtphub from openbsc.git
The GPRS related programs osmo-sgsn, osmo-gtphub and osmo-gbproxy have been split off into the separate osmo-sgsn repository, which can be found at git://git.osmocom.org/osmo-sgsn.git http://git.osmocom.org/osmo-sgsn/ This is technically unrelated but conceptually part of the larger NITB-split activities. I did a brief log of all changes in src/gprs and couldn't find any commits that we might have applied here but which are missing from osmo-sgsn.git. Change-Id: If60e28b23f5cfb2c4eb354951363a2bb63f3e0de
Diffstat (limited to 'openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua')
-rw-r--r--openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua46
1 files changed, 0 insertions, 46 deletions
diff --git a/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua b/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua
deleted file mode 100644
index 018c377c5..000000000
--- a/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua
+++ /dev/null
@@ -1,46 +0,0 @@
--- Create a file named by_ip/''ip_addess''.cap with all ip traffic of each ip host. (works for tshark only)
--- Dump files are created for both source and destination hosts
-do
- local dir = "by_tlli"
- local dumpers = {}
- local function init_listener()
- local udp_port_table = DissectorTable.get("udp.port")
- local gprs_ns_dis = Dissector.get("gprs_ns")
- udp_port_table:add(23000,gprs_ns_dis)
-
- local field_tlli = Field.new("bssgp.tlli")
- local tap = Listener.new("ip", "udp.port == 23000")
-
- -- we will be called once for every IP Header.
- -- If there's more than one IP header in a given packet we'll dump the packet once per every header
- function tap.packet(pinfo,tvb,ip)
- local tlli = field_tlli()
- if not tlli then
- return
- end
-
- local tlli_str = tostring(tlli)
- tlli_dmp = dumpers[tlli_str]
- if not tlli_dmp then
- local tlli_hex = string.format("0x%x", tonumber(tlli_str))
- print("Creating dump for TLLI " .. tlli_hex)
- tlli_dmp = Dumper.new_for_current(dir .. "/" .. tlli_hex .. ".pcap")
- dumpers[tlli_str] = tlli_dmp
- end
- tlli_dmp:dump_current()
- tlli_dmp:flush()
- end
- function tap.draw()
- for tlli,dumper in pairs(dumpers) do
- dumper:flush()
- end
- end
- function tap.reset()
- for tlli,dumper in pairs(dumpers) do
- dumper:close()
- end
- dumpers = {}
- end
- end
- init_listener()
-end