Commit 9147109a authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

modified getnas function

parent 4600a52b
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -322,9 +322,12 @@ module LIB_NG_NAS_Functions {
                
                    if ( (vc_recvNGAP_PDU.initiatingMessage.value_.InitialUEMessage.protocolIEs[i].id) == 38 /*id_NAS_PDU*/){
                        vc_recvNAS_PDU := vc_recvNGAP_PDU.initiatingMessage.value_.InitialUEMessage.protocolIEs[i].value_.nAS_PDU;
                        var bitstring bs := oct2bit(vc_recvNAS_PDU);
                        var integer v_result := decvalue(bs,vc_recvNgNasUl_Msg);
                        log("****************************************");
                        log("InitialUEMessage - NAS-PDU! ");
                        log( vc_recvNAS_PDU );
                        log( vc_recvNgNasUl_Msg );
                        log("****************************************");

                    }
@@ -336,9 +339,29 @@ module LIB_NG_NAS_Functions {
                
                    if ( (vc_recvNGAP_PDU.initiatingMessage.value_.DownlinkNASTransport.protocolIEs[i].id) == 38 /*id_NAS_PDU*/){
                        vc_recvNAS_PDU := vc_recvNGAP_PDU.initiatingMessage.value_.DownlinkNASTransport.protocolIEs[i].value_.nAS_PDU;
                        var bitstring bs := oct2bit(vc_recvNAS_PDU);
                        var integer v_result := decvalue(bs,vc_recvNgNasDl_Msg);
                        log("****************************************");
                        log("DownlinkNASTransport - NAS-PDU! ");
                        log( vc_recvNAS_PDU );
                        log( vc_recvNgNasDl_Msg );
                        log("****************************************");

                    }
                }
            }else if (match(vc_recvNGAP_PDU.initiatingMessage,mw_n2_UplinkNASTransport_base_nas)){
                var integer numOfIEs := lengthof(vc_recvNGAP_PDU.initiatingMessage.value_.UplinkNASTransport.protocolIEs)
                
                for (var integer i:=0;i<numOfIEs;i:=i+1){
                
                    if ( (vc_recvNGAP_PDU.initiatingMessage.value_.UplinkNASTransport.protocolIEs[i].id) == 38 /*id_NAS_PDU*/){
                        vc_recvNAS_PDU := vc_recvNGAP_PDU.initiatingMessage.value_.UplinkNASTransport.protocolIEs[i].value_.nAS_PDU;
                        var bitstring bs := oct2bit(vc_recvNAS_PDU);
                        var integer v_result := decvalue(bs,vc_recvNgNasUl_Msg);
                        log("****************************************");
                        log("UplinkNASTransport - NAS-PDU! ");
                        log( vc_recvNAS_PDU );
                        log( vc_recvNgNasUl_Msg );
                        log("****************************************");

                    }