Hi,
Thank you for this tool. I have one question. I want to add new IE. For example, RAT-Information IE in NGSetupRequest. I added following lines in files:
package ngapType
// Need to import "free5gc-cli/lib/aper" if it uses "aper"
type ProtocolExtensionID struct {
ExtensionValue int64 `aper:"valueLB:0,valueUB:65535"`
}
const ProtocolExtensionIDRATInformation int64 = 179
Created for test file
/free5gc-cli/lib/ngap/ngapType/RATInformation.go
package ngapType
import "free5gc-cli/lib/aper"
// Need to import "free5gc-cli/lib/aper" if it uses "aper"
const (
RATInformationPresentnRMEO aper.Enumerated = 0
RATInformationPresentnRLEO aper.Enumerated = 1
)
type RATInformation struct {
Value aper.Enumerated `aper:"valueExt,valueLB:0,valueUB:1"`
}
And described this new IE in file
/free5gc-cli/module/gnb/api/ngapTestpacket/ngap.go
RATInformation must include in IEExtensions in file
/free5gc-cli/lib/ngap/ngapType/SupportedTAItem.go
package ngapType
// Need to import "free5gc-cli/lib/aper" if it uses "aper"
type SupportedTAItem struct {
TAC TAC
BroadcastPLMNList BroadcastPLMNList
IEExtensions *ProtocolExtensionContainerSupportedTAItemExtIEs `aper:"optional"`
}
I did the above steps but the field RATInformation is not getting inserted into the package NGSetupRequest. Build created without errors. Could you help me with this problem? Maybe I'm doing something wrong or the current code does not provide for adding new IE in packets.
Thank you in advance :-)
Hi, Thank you for this tool. I have one question. I want to add new IE. For example, RAT-Information IE in NGSetupRequest. I added following lines in files:
/free5gc-cli/lib/ngap/ngapType/ProtocolExtensionField.go
/free5gc-cli/lib/ngap/ngapType/ProtocolExtensionID.go
Created for test file /free5gc-cli/lib/ngap/ngapType/RATInformation.go
And described this new IE in file /free5gc-cli/module/gnb/api/ngapTestpacket/ngap.go
RATInformation must include in IEExtensions in file /free5gc-cli/lib/ngap/ngapType/SupportedTAItem.go
I did the above steps but the field RATInformation is not getting inserted into the package NGSetupRequest. Build created without errors. Could you help me with this problem? Maybe I'm doing something wrong or the current code does not provide for adding new IE in packets. Thank you in advance :-)