GPRS: Show the TLLI as hex value...

This commit is contained in:
Holger Hans Peter Freyther 2010-06-07 19:16:31 +08:00
parent 7d3b3d0e71
commit f488121058
2 changed files with 8 additions and 3 deletions

View File

@ -22,8 +22,9 @@ do
local ttli_str = tostring(ttli)
ttli_dmp = dumpers[ttli_str]
if not ttli_dmp then
print("Creating TLLI " .. tostring(ttli) .. " " .. ttli_str)
ttli_dmp = Dumper.new_for_current(dir .. "/" .. ttli_str .. ".pcap")
local ttli_hex = string.format("0x%x", tonumber(ttli_str))
print("Creating dump for TLLI " .. ttli_hex)
ttli_dmp = Dumper.new_for_current(dir .. "/" .. ttli_hex .. ".pcap")
dumpers[ttli_str] = ttli_dmp
end
ttli_dmp:dump_current()

View File

@ -37,9 +37,13 @@ do
return
end
local function tohex(number)
return string.format("0x%x", tonumber(number))
end
nu_state_src[src_key] = llc_nu
if tonumber(last_nu) + 1 ~= tonumber(llc_nu) then
print("JUMP in N(U) on TLLI " .. bssgp_ttli .. " and SAPI: " .. llc_sapi)
print("JUMP in N(U) on TLLI " .. tohex(bssgp_ttli) .. " and SAPI: " .. llc_sapi)
print("\t last: " .. last_nu .. " now: " .. llc_nu)
end
end