HewlettPackard / PacketRusher

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

Fix encoding of 9-digits MSIN when MNC is 3 digits #103

Closed linouxis9 closed 3 months ago

linouxis9 commented 3 months ago

Types of changes

linouxis9 commented 3 months ago

Hi @rjaksa,

Could you test the fix?

Thanks a lot!

Cheers, Valentin

rjaksa commented 3 months ago

In tools.go...

The 9-digit MSINs look correct for both ueCfg and simConfig now (as shown when adding the "Debug 1" and "Debug 2" lines mentioned in the original issue description).

But simConfig.Gnbs[gnbIdGen(0)] is still NULL (i.e. output of "Debug 3" in the original bug report is still ), so PacketRusher crashes in tools.go due to a nil pointer dereference.

linouxis9 commented 3 months ago

@rjaksa I'm not hitting the issue where a NULL is returned when using a 3-digits MNC / 9-digits msin, everything seems to work on my side. I'll try to reproduce again. Could you share the log of the crash? Thanks a lot!

linouxis9 commented 3 months ago

Or maybe you are referring to this crash? https://github.com/HewlettPackard/PacketRusher/pull/104