11--[[
22-- Dissector for Radio Link Simulation Protocol
33-- (used by UERANSIM <https://github.com/aligungr/UERANSIM>).
4- -- When this dissector was written, UERANSIM was in version 3.1.7.
54--
65-- CC0-1.0 2021 - Louis Royer (<https://github.com/louisroyer/RLS-wireshark-dissector>)
76--]]
@@ -30,14 +29,14 @@ local sim_pos_y = ProtoField.uint32("rls.sim_pos_y", "RLS Position Y", base.DEC)
3029local sim_pos_z = ProtoField .uint32 (" rls.sim_pos_z" , " RLS Position Z" , base .DEC )
3130
3231-- For cell Info Response
33- local mcc = ProtoField .uint16 (" rls.mmc " , " RLS MMC " , base .DEC )
34- local mnc = ProtoField .uint16 (" rls.mnc" , " RLS MNC" , base .DEC )
35- local long_mnc = ProtoField .bool (" rls.long_mnc" , " RLS MNC is long " , base .BOOL )
36- local nci = ProtoField .uint64 (" rls.nci" , " RLS New Radio Cell Identity" , base .HEX )
37- local tac = ProtoField .uint32 (" rls.tac" , " RLS Tracking Area Code" , base .DEC )
32+ local mcc = ProtoField .uint16 (" rls.mcc " , " MCC " , base .DEC )
33+ local mnc = ProtoField .uint16 (" rls.mnc" , " MNC" , base .DEC )
34+ local long_mnc = ProtoField .bool (" rls.long_mnc" , " MNC is 3-digit " , base .BOOL )
35+ local nci = ProtoField .uint64 (" rls.nci" , " NR Cell Identity" , base .HEX )
36+ local tac = ProtoField .uint32 (" rls.tac" , " Tracking Area Code" , base .DEC )
3837local dbm = ProtoField .int32 (" rls.dbm" , " RLS Signal Strength (dBm)" , base .DEC )
39- local gnb_name = ProtoField .string (" rls.gnb_name" , " RLS gNb name " )
40- local link_ip = ProtoField .string (" rls.link_ip" , " RLS gNb Link IP" )
38+ local gnb_name = ProtoField .string (" rls.gnb_name" , " gNB Name " )
39+ local link_ip = ProtoField .string (" rls.link_ip" , " gNB Link IP" )
4140
4241-- For PDU Delivery
4342local pdu_type_name = {
@@ -49,14 +48,14 @@ local pdu_type_name = {
4948local pdu_type = ProtoField .uint8 (" rls.pdu_type" , " RLS PDU Type" , base .DEC , pdu_type_name )
5049
5150local rrc_channel_name = {
52- [0 ] = " BCCH_BCH " ,
53- [1 ] = " BCCH_DL_SCH " ,
54- [2 ] = " DL_CCCH " ,
55- [3 ] = " DL_DCCH " ,
51+ [0 ] = " BCCH-BCH " ,
52+ [1 ] = " BCCH-DL-SCH " ,
53+ [2 ] = " DL-CCCH " ,
54+ [3 ] = " DL-DCCH " ,
5655 [4 ] = " PCCH" ,
57- [5 ] = " UL_CCCH " ,
58- [6 ] = " UL_CCCH1 " ,
59- [7 ] = " UL_DCCH " ,
56+ [5 ] = " UL-CCCH " ,
57+ [6 ] = " UL-CCCH1 " ,
58+ [7 ] = " UL-DCCH " ,
6059}
6160
6261local rrc_channel_dissector = {
@@ -71,7 +70,7 @@ local rrc_channel_dissector = {
7170}
7271
7372local rrc_channel = ProtoField .uint32 (" rls.rrc_channel" , " RRC Channel" , base .DEC , rrc_channel_name )
74- local session_id = ProtoField .uint32 (" rls.session_id" , " RLS Session ID" , base .DEC )
73+ local session_id = ProtoField .uint32 (" rls.session_id" , " PDU Session ID" , base .DEC )
7574
7675--[[
7776-- Dissector definition
@@ -109,7 +108,7 @@ function rls_protocol.dissector(buffer, pinfo, tree)
109108 subtree :add (sim_pos_z , buffer (21 ,4 ))
110109 elseif msg_type == 2 then -- Cell Info Response
111110 subtree :add (mcc , buffer (13 ,2 ))
112- local mnc_tree = subtree :add (rls_protocol , buffer (15 ,3 ), " RLS MNC: " .. tostring (buffer (15 ,2 ):uint ()))
111+ local mnc_tree = subtree :add (rls_protocol , buffer (15 ,3 ), " MNC: " .. tostring (buffer (15 ,2 ):uint ()))
113112 mnc_tree :add (mnc , buffer (15 ,2 ))
114113 mnc_tree :add (long_mnc , buffer (17 ,1 ))
115114 subtree :add (nci , buffer (18 ,8 ))
0 commit comments