Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest version of free5GC v3.0.5 #5

Open
shynuu opened this issue Feb 2, 2021 · 1 comment
Open

Update to latest version of free5GC v3.0.5 #5

shynuu opened this issue Feb 2, 2021 · 1 comment
Assignees
Labels
feature Implement a new feature
Milestone

Comments

@shynuu
Copy link
Owner

shynuu commented Feb 2, 2021

No description provided.

@shynuu shynuu added the feature Implement a new feature label Feb 2, 2021
@shynuu shynuu self-assigned this Feb 2, 2021
@shynuu shynuu added this to the v0.5 milestone Feb 2, 2021
@IgorLashin
Copy link

IgorLashin commented May 2, 2023

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

type SupportedTAItemExtIEs struct {
        Id             ProtocolExtensionID
        Criticality    Criticality
        ExtensionValue SupportedTAItemExtIEsExtensionValue `aper:"openType,referenceFieldName:Id"`
}

const (
        SupportedTAItemExtIEsPresentNothing int = iota /* No components present */
        SupportedTAItemExtIEsPresentRATInformation
)

type SupportedTAItemExtIEsExtensionValue struct {
        Present int
        RATInformation   *RATInformation  `aper:"referenceFieldValue:179"`
}

/free5gc-cli/lib/ngap/ngapType/ProtocolExtensionID.go

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
       is := ngapType.SupportedTAItemExtIEs{}
       is.Id.ExtensionValue = ngapType.ProtocolExtensionIDRATInformation
       is.Criticality.Value = ngapType.CriticalityPresentReject
       is.ExtensionValue.Present = ngapType.SupportedTAItemExtIEsPresentRATInformation
       is.ExtensionValue.RATInformation = new(ngapType.RATInformation)
       ratinformation := is.ExtensionValue.RATInformation
       ratinformation.Value = ngapType.RATInformationPresentnRLEO

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Implement a new feature
Projects
None yet
Development

No branches or pull requests

2 participants