-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tngf add ranid * tngf twif add ID * add tngf twif wagf ID * add tngf twif wagf ID and UserLocationInfo * change all indents to tab * format file under ngapType & ngap Convert * modify all dependency version --------- Co-authored-by: tsc <tsc410195@gmail.com> Co-authored-by: tim-ywliu <68043973+tim-ywliu@users.noreply.github.com>
- Loading branch information
1 parent
eff12dc
commit 55c6934
Showing
23 changed files
with
398 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ngapConvert | ||
|
||
import ( | ||
"encoding/binary" | ||
|
||
"github.com/free5gc/ngap/ngapType" | ||
) | ||
|
||
func TNAPIDToInt(id ngapType.TNAPID) (idInt64 int64) { | ||
idInt64 = int64(binary.BigEndian.Uint16(id.Value)) | ||
return | ||
} | ||
|
||
func TNAPIDToNgap(idInt64 uint64) (id ngapType.TNAPID) { | ||
id.Value = make([]byte, 6) | ||
binary.BigEndian.PutUint16(id.Value[0:2], uint16(idInt64>>32)) | ||
binary.BigEndian.PutUint32(id.Value[2:], uint32(idInt64)) | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ngapConvert | ||
|
||
import ( | ||
"encoding/binary" | ||
|
||
"github.com/free5gc/ngap/ngapType" | ||
) | ||
|
||
func TWAPIDToInt(id ngapType.TWAPID) (idInt64 int64) { | ||
idInt64 = int64(binary.BigEndian.Uint16(id.Value)) | ||
return | ||
} | ||
|
||
func TWAPIDToNgap(idInt64 uint64) (id ngapType.TWAPID) { | ||
id.Value = make([]byte, 6) | ||
binary.BigEndian.PutUint16(id.Value[0:2], uint16(idInt64>>32)) | ||
binary.BigEndian.PutUint32(id.Value[2:], uint32(idInt64)) | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ngapType | ||
|
||
// Need to import "gofree5gc/lib/aper" if it uses "aper" | ||
|
||
type GlobalLineID struct { /* Sequence Type (Extensible) */ | ||
GlobalLineIdentity GlobalLineIdentity | ||
LineType *LineType `aper:"valueExt,valueLB:0,valueUB:1,optional"` | ||
IEExtensions *ProtocolExtensionContainerGlobalLineIDExtIEs `aper:"optional"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ngapType | ||
|
||
import "github.com/free5gc/aper" | ||
|
||
// Need to import "gofree5gc/lib/aper" if it uses "aper" | ||
|
||
type GlobalLineIdentity struct { | ||
Value aper.OctetString | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ngapType | ||
|
||
// Need to import "gofree5gc/lib/aper" if it uses "aper" | ||
|
||
type GlobalTNGFID struct { /* Sequence Type (Extensible) */ | ||
PLMNIdentity PLMNIdentity | ||
TNGFID TNGFID `aper:"valueLB:0,valueUB:1"` | ||
IEExtensions *ProtocolExtensionContainerGlobalTNGFIDExtIEs `aper:"optional"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ngapType | ||
|
||
// Need to import "gofree5gc/lib/aper" if it uses "aper" | ||
|
||
type GlobalTWIFID struct { /* Sequence Type (Extensible) */ | ||
PLMNIdentity PLMNIdentity | ||
TWIFID TWIFID `aper:"valueLB:0,valueUB:1"` | ||
IEExtensions *ProtocolExtensionContainerGlobalTWIFIDExtIEs `aper:"optional"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ngapType | ||
|
||
// Need to import "gofree5gc/lib/aper" if it uses "aper" | ||
|
||
type GlobalWAGFID struct { /* Sequence Type (Extensible) */ | ||
PLMNIdentity PLMNIdentity | ||
WAGFID WAGFID `aper:"valueLB:0,valueUB:1"` | ||
IEExtensions *ProtocolExtensionContainerGlobalWAGFIDExtIEs `aper:"optional"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ngapType | ||
|
||
import "github.com/free5gc/aper" | ||
|
||
// Need to import "gofree5gc/lib/aper" if it uses "aper" | ||
|
||
type HFCNodeID struct { | ||
Value aper.OctetString | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package ngapType | ||
|
||
import "github.com/free5gc/aper" | ||
|
||
// Need to import "gofree5gc/lib/aper" if it uses "aper" | ||
|
||
const ( /* Enum Type */ | ||
LineTypePresentDsl aper.Enumerated = 0 | ||
LineTypePresentPon aper.Enumerated = 1 | ||
) | ||
|
||
type LineType struct { | ||
Value aper.Enumerated `aper:"valueExt,valueLB:0,valueUB:1"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ngapType | ||
|
||
import "github.com/free5gc/aper" | ||
|
||
// Need to import "github.com/free5gc/aper" if it uses "aper" | ||
|
||
type TNAPID struct { | ||
Value aper.OctetString | ||
} |
Oops, something went wrong.