ngapConvert

package
v3.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AmfIdToModels

func AmfIdToModels(regionId, setId, ptrId aper.BitString) (amfId string)

func AmfIdToNgap

func AmfIdToNgap(amfId string) (regionId, setId, ptrId aper.BitString)

func BitStringToHex

func BitStringToHex(bitString *aper.BitString) (hexString string)

func ByteToBitString

func ByteToBitString(byteArray []byte, bitLength int) (bitString aper.BitString)

func HexToBitString

func HexToBitString(hexString string, bitLength int) (bitString aper.BitString)

func IPAddressToNgap

func IPAddressToNgap(ipv4Addr, ipv6Addr string) (ipAddr ngapType.TransportLayerAddress)

func IPAddressToString

func IPAddressToString(ipAddr ngapType.TransportLayerAddress) (ipv4Addr, ipv6Addr string)

func PlmnIdToModels

func PlmnIdToModels(ngapPlmnId ngapType.PLMNIdentity) (modelsPlmnid models.PlmnId)

func PlmnIdToNgap

func PlmnIdToNgap(modelsPlmnid models.PlmnId) (ngapPlmnId ngapType.PLMNIdentity)

func PortNumberToInt

func PortNumberToInt(port ngapType.PortNumber) (portInt32 int32)

func PortNumberToNgap

func PortNumberToNgap(portInt32 int32) (port ngapType.PortNumber)

func RATRestrictionInformationToNgap

func RATRestrictionInformationToNgap(ratType models.RatType) (ratResInfo ngapType.RATRestrictionInformation)

TS 38.413 9.3.1.85

func RanIDToNgap

func RanIDToNgap(modelsRanNodeId models.GlobalRanNodeId) (ngapRanNodeId ngapType.GlobalRANNodeID)

func RanIdToModels

func RanIdToModels(ranNodeId ngapType.GlobalRANNodeID) (ranId models.GlobalRanNodeId)

func SNssaiToModels

func SNssaiToModels(ngapSnssai ngapType.SNSSAI) (modelsSnssai models.Snssai)

func SNssaiToNgap

func SNssaiToNgap(modelsSnssai models.Snssai) (ngapSnssai ngapType.SNSSAI)

func TaiToModels

func TaiToModels(tai ngapType.TAI) (modelsTai models.Tai)

func TaiToNgap

func TaiToNgap(tai models.Tai) (ngapTai ngapType.TAI)

func TimeStampToInt32

func TimeStampToInt32(timeStampNgap aper.OctetString) (timeStamp int32)

RFC 5905 Section 6 https://tools.ietf.org/html/rfc5905#section-6

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Seconds                            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                            Fraction                           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                          NTP Timestamp Format

The 64-bit timestamp format is used in packet headers and other
places with limited word size.  It includes a 32-bit unsigned seconds
field spanning 136 years and a 32-bit fraction field resolving 232
picoseconds.  The 32-bit short format is used in delay and dispersion
header fields where the full resolution and range of the other
formats are not justified.  It includes a 16-bit unsigned seconds
field and a 16-bit fraction field.

In the date and timestamp formats, the prime epoch, or base date of
era 0, is 0 h 1 January 1900 UTC, when all bits are zero.  It should
be noted that strictly speaking, UTC did not exist prior to 1 January
1972, but it is convenient to assume it has existed for all eternity,
even if all knowledge of historic leap seconds has been lost.  Dates
are relative to the prime epoch; values greater than zero represent

func TimeStampToNgap

func TimeStampToNgap(timeStamp int32) (timeStampNgap aper.OctetString)

func TraceDataToModels

func TraceDataToModels(traceActivation ngapType.TraceActivation) (traceData models.TraceData)

func TraceDataToNgap

func TraceDataToNgap(traceData models.TraceData, trsr string) (traceActivation ngapType.TraceActivation)

func UEAmbrToInt64

func UEAmbrToInt64(modelAmbr string) (ambrInt int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL