HewlettPackard / PacketRusher

High performance 5G UE/gNB Simulator and CP/UP load tester.
Apache License 2.0
116 stars 26 forks source link

Fix #84 Wrong MCC+MNC encoding #85

Closed linouxis9 closed 9 months ago

linouxis9 commented 9 months ago

Types of changes

linouxis9 commented 9 months ago

Hi @rjaksa,

Your bug should be fixed by this PR. Can you try PacketRusher again with this fix / using branch fixmnc.

Thanks a lot, Valentin

rjaksa commented 9 months ago

The code change works for the gNB. But there is an informative printf regarding the PLMNs Identities supported by AMF that shows the MNC incorrectly. It lists the 3-digit MNC with the digits in encoded order, instead of the "human readable" format. E.g. MNC 123 is printed as "231".

E.g. for MCC=987, MNC=123, the printf looks like:

INFO[0000] [GNB][AMF] PLMNs Identities Supported by AMF -- mcc: 987 mnc:231

linouxis9 commented 9 months ago

Thank you @rjaksa, it's fixed!