X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=e2ap%2Fpkg%2Fe2ap%2Fmsg_e2ap.go;h=2784a2c7c455a2176fa40ed415abedcc83afd1e5;hb=refs%2Fchanges%2F07%2F2607%2F2;hp=eecf8b8e17189a2f0515ad46481cfe18951d0c24;hpb=af91f971681842c22dc0fad165c0cbf7ebaa0e4d;p=ric-plt%2Fsubmgr.git diff --git a/e2ap/pkg/e2ap/msg_e2ap.go b/e2ap/pkg/e2ap/msg_e2ap.go index eecf8b8..2784a2c 100644 --- a/e2ap/pkg/e2ap/msg_e2ap.go +++ b/e2ap/pkg/e2ap/msg_e2ap.go @@ -108,9 +108,10 @@ const ( // //----------------------------------------------------------------------------- const ( - E2AP_ActionTypeReport uint64 = 0 - E2AP_ActionTypeInsert uint64 = 1 - E2AP_ActionTypePolicy uint64 = 2 + E2AP_ActionTypeReport uint64 = 0 + E2AP_ActionTypeInsert uint64 = 1 + E2AP_ActionTypePolicy uint64 = 2 + E2AP_ActionTypeInvalid uint64 = 99 // For RIC internal usage only ) //----------------------------------------------------------------------------- @@ -172,6 +173,25 @@ const ( E2AP_ENBIDlongMacroBits21 uint8 = 21 ) +//----------------------------------------------------------------------------- +// +//----------------------------------------------------------------------------- +type PackedData struct { + Buf []byte +} + +//----------------------------------------------------------------------------- +// +//----------------------------------------------------------------------------- +type MessageInfo struct { + MsgType uint64 + MsgId uint64 +} + +func (msgInfo *MessageInfo) String() string { + return "msginfo(" + strconv.FormatUint((uint64)(msgInfo.MsgType), 10) + string(":") + strconv.FormatUint((uint64)(msgInfo.MsgId), 10) + ")" +} + //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- @@ -206,7 +226,7 @@ func (nid *NodeId) String() string { //----------------------------------------------------------------------------- type GlobalNodeId struct { Present bool - PlmnIdentity conv.PlmnIdentity + PlmnIdentity conv.PlmnIdentityTbcd NodeId NodeId }