Commit 0d9dc9db authored by Yann Garcia's avatar Yann Garcia
Browse files

Report issues from devel2 to TTF_T036

parent d1529ac3
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -17,6 +17,12 @@
		},
		},
		{
		{
			"path": "../itscertgen"
			"path": "../itscertgen"
		},
		{
			"path": "../../tmp/titan_etsi_its_per_issue"
		},
		{
			"path": "../../tmp/titan_5gngap_per_issue"
		}
		}
	],
	],
	"settings": {
	"settings": {
@@ -93,7 +99,10 @@
			"stop_token": "cpp",
			"stop_token": "cpp",
			"hash_map": "cpp",
			"hash_map": "cpp",
			"mqtt.h": "c",
			"mqtt.h": "c",
			"gps.h": "c"
			"gps.h": "c",
			"unistd.h": "c",
			"msggen_mec.h": "c",
			"system.h": "c"
		},
		},
		"java.compile.nullAnalysis.mode": "automatic"
		"java.compile.nullAnalysis.mode": "automatic"
	}
	}
+31 −22
Original line number Original line Diff line number Diff line
@@ -71,14 +71,14 @@ namespace LibItsCam__EncdecDeclarations {
             LibItsCam__TypesAndValues::CamInd_its__aid_raw_.fieldlength) /
             LibItsCam__TypesAndValues::CamInd_its__aid_raw_.fieldlength) /
            8;
            8;
    // Decode CA message
    // Decode CA message
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const unsigned char *>(is)), cam) == -1) {
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const uint8_t *>(is)), cam) == -1) {
      loggers::get_instance().warning("fx__dec__CamInd: -1 result code was returned");
      loggers::get_instance().warning("fx__dec__CamInd: -1 result code was returned");
      return -1;
      return -1;
    }
    }
    p_camInd.msgIn() = cam;
    p_camInd.msgIn() = cam;
    // Decode lower layer data
    // Decode lower layer data
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const unsigned char *>(is) + is.lengthof() - s));
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const uint8_t *>(is) + is.lengthof() - s));
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // gnNextHeader
    // gnNextHeader
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnNextHeader_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnNextHeader_raw_.fieldlength / 8)) {
      p_camInd.gnNextHeader().set_to_omit();
      p_camInd.gnNextHeader().set_to_omit();
@@ -87,8 +87,8 @@ namespace LibItsCam__EncdecDeclarations {
      os.decode(LibItsCam__TypesAndValues::CamInd_gnNextHeader_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsCam__TypesAndValues::CamInd_gnNextHeader_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.gnNextHeader() = oct2int(os);
      p_camInd.gnNextHeader() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: gnNextHeader=", p_camInd.gnNextHeader());
    loggers::get_instance().log_msg("fx__dec__CAM: gnNextHeader=", p_camInd.gnNextHeader());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // gnHeaderType
    // gnHeaderType
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnHeaderType_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnHeaderType_raw_.fieldlength / 8)) {
      p_camInd.gnHeaderType().set_to_omit();
      p_camInd.gnHeaderType().set_to_omit();
@@ -97,8 +97,8 @@ namespace LibItsCam__EncdecDeclarations {
      os.decode(LibItsCam__TypesAndValues::CamInd_gnHeaderType_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsCam__TypesAndValues::CamInd_gnHeaderType_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.gnHeaderType() = oct2int(os);
      p_camInd.gnHeaderType() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: gnHeaderType=", p_camInd.gnHeaderType());
    loggers::get_instance().log_msg("fx__dec__CAM: gnHeaderType=", p_camInd.gnHeaderType());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // gnHeaderSubtype
    // gnHeaderSubtype
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnHeaderSubtype_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnHeaderSubtype_raw_.fieldlength / 8)) {
      p_camInd.gnHeaderSubtype().set_to_omit();
      p_camInd.gnHeaderSubtype().set_to_omit();
@@ -107,8 +107,8 @@ namespace LibItsCam__EncdecDeclarations {
      os.decode(LibItsCam__TypesAndValues::CamInd_gnHeaderSubtype_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsCam__TypesAndValues::CamInd_gnHeaderSubtype_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.gnHeaderSubtype() = oct2int(os);
      p_camInd.gnHeaderSubtype() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: gnHeaderSubtype=", p_camInd.gnHeaderSubtype());
    loggers::get_instance().log_msg("fx__dec__CAM: gnHeaderSubtype=", p_camInd.gnHeaderSubtype());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // gnLifetime
    // gnLifetime
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnLifetime_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnLifetime_raw_.fieldlength / 8)) {
      p_camInd.gnLifetime().set_to_omit();
      p_camInd.gnLifetime().set_to_omit();
@@ -117,8 +117,8 @@ namespace LibItsCam__EncdecDeclarations {
      i.decode(LibItsCam__TypesAndValues::CamInd_gnLifetime_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      i.decode(LibItsCam__TypesAndValues::CamInd_gnLifetime_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.gnLifetime() = i;
      p_camInd.gnLifetime() = i;
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: gnLifetime=", p_camInd.gnLifetime());
    loggers::get_instance().log_msg("fx__dec__CAM: gnLifetime=", p_camInd.gnLifetime());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // gnTrafficClass
    // gnTrafficClass
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnTrafficClass_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_gnTrafficClass_raw_.fieldlength / 8)) {
      p_camInd.gnTrafficClass().set_to_omit();
      p_camInd.gnTrafficClass().set_to_omit();
@@ -127,8 +127,8 @@ namespace LibItsCam__EncdecDeclarations {
      os.decode(LibItsCam__TypesAndValues::CamInd_gnTrafficClass_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsCam__TypesAndValues::CamInd_gnTrafficClass_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.gnTrafficClass() = oct2int(os);
      p_camInd.gnTrafficClass() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: gnTrafficClass=", p_camInd.gnTrafficClass());
    loggers::get_instance().log_msg("fx__dec__CAM: gnTrafficClass=", p_camInd.gnTrafficClass());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // btpDestinationPort
    // btpDestinationPort
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_btpDestinationPort_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_btpDestinationPort_raw_.fieldlength / 8)) {
      p_camInd.btpDestinationPort().set_to_omit();
      p_camInd.btpDestinationPort().set_to_omit();
@@ -137,8 +137,8 @@ namespace LibItsCam__EncdecDeclarations {
      i.decode(LibItsCam__TypesAndValues::CamInd_btpDestinationPort_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      i.decode(LibItsCam__TypesAndValues::CamInd_btpDestinationPort_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.btpDestinationPort() = i;
      p_camInd.btpDestinationPort() = i;
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: btpDestinationPort=", p_camInd.btpDestinationPort());
    loggers::get_instance().log_msg("fx__dec__CAM: btpDestinationPort=", p_camInd.btpDestinationPort());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // btpInfo
    // btpInfo
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_btpInfo_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_btpInfo_raw_.fieldlength / 8)) {
      p_camInd.btpInfo().set_to_omit();
      p_camInd.btpInfo().set_to_omit();
@@ -147,8 +147,8 @@ namespace LibItsCam__EncdecDeclarations {
      i.decode(LibItsCam__TypesAndValues::CamInd_btpInfo_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      i.decode(LibItsCam__TypesAndValues::CamInd_btpInfo_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.btpInfo() = i;
      p_camInd.btpInfo() = i;
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: btpInfo=", p_camInd.btpInfo());
    loggers::get_instance().log_msg("fx__dec__CAM: btpInfo=", p_camInd.btpInfo());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // ssp
    // ssp
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_ssp_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_ssp_raw_.fieldlength / 8)) {
      p_camInd.ssp().set_to_omit();
      p_camInd.ssp().set_to_omit();
@@ -157,8 +157,8 @@ namespace LibItsCam__EncdecDeclarations {
      bs.decode(LibItsCam__TypesAndValues::CamInd_ssp_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      bs.decode(LibItsCam__TypesAndValues::CamInd_ssp_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.ssp() = bs;
      p_camInd.ssp() = bs;
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: ssp=", p_camInd.ssp());
    loggers::get_instance().log_msg("fx__dec__CAM: ssp=", p_camInd.ssp());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);
    // its__aid
    // its__aid
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_its__aid_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsCam__TypesAndValues::CamInd_its__aid_raw_.fieldlength / 8)) {
      p_camInd.its__aid().set_to_omit();
      p_camInd.its__aid().set_to_omit();
@@ -167,8 +167,8 @@ namespace LibItsCam__EncdecDeclarations {
      i.decode(LibItsCam__TypesAndValues::CamInd_its__aid_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      i.decode(LibItsCam__TypesAndValues::CamInd_its__aid_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_camInd.its__aid() = i;
      p_camInd.its__aid() = i;
    }
    }
    loggers::get_instance().log_msg("fx__dec__CamInd: its_aid=", p_camInd.its__aid());
    loggers::get_instance().log_msg("fx__dec__CAM: its_aid=", p_camInd.its__aid());
    loggers::get_instance().log_to_hexa("fx__dec__CamInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__CAM: ", decoding_buffer);


    return 0;
    return 0;
  }
  }
@@ -187,7 +187,7 @@ namespace LibItsCam__EncdecDeclarations {
    cam_codec   codec;
    cam_codec   codec;
    OCTETSTRING is = bit2oct(b);
    OCTETSTRING is = bit2oct(b);


    if (codec.decode(OCTETSTRING(is.lengthof(), static_cast<const unsigned char *>(is)), p) == -1) {
    if (codec.decode(OCTETSTRING(is.lengthof(), static_cast<const uint8_t *>(is)), p) == -1) {
      loggers::get_instance().warning("fx__dec__CAM: -1 result code was returned");
      loggers::get_instance().warning("fx__dec__CAM: -1 result code was returned");
      return -1;
      return -1;
    }
    }
@@ -222,6 +222,15 @@ namespace LibItsCam__EncdecDeclarations {
    return oct2bit(os);
    return oct2bit(os);
  }
  }


  BITSTRING fx__enc__UtCamChangePseudonym(const LibItsCam__TypesAndValues::UtCamChangePseudonym &p_utCamChangePseudonym) {
    loggers::get_instance().log_msg(">>> fx__enc__UtCamChangePseudonym: ", p_utCamChangePseudonym);

    uppertester_cam_codec codec;
    OCTETSTRING                     os;
    codec.encode(p_utCamChangePseudonym, os);
    return oct2bit(os);
  }

  /****************************************************
  /****************************************************
   * @desc    External function to decode a UtCamResults type
   * @desc    External function to decode a UtCamResults type
   * @param   value to encode
   * @param   value to encode
+22 −22
Original line number Original line Diff line number Diff line
@@ -70,14 +70,14 @@ namespace LibItsDenm__EncdecDeclarations {
             LibItsDenm__TypesAndValues::DenmInd_its__aid_raw_.fieldlength) /
             LibItsDenm__TypesAndValues::DenmInd_its__aid_raw_.fieldlength) /
            8;
            8;
    // Decode DEN message
    // Decode DEN message
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const unsigned char *>(is)), denm) == -1) {
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const uint8_t *>(is)), denm) == -1) {
      loggers::get_instance().warning("fx__dec__DenmInd: -1 result code was returned");
      loggers::get_instance().warning("fx__dec__DenmInd: -1 result code was returned");
      return -1;
      return -1;
    }
    }
    p_denmInd.msgIn() = denm;
    p_denmInd.msgIn() = denm;
    // Decode lower layer data
    // Decode lower layer data
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const unsigned char *>(is) + is.lengthof() - s));
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const uint8_t *>(is) + is.lengthof() - s));
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // gnNextHeader
    // gnNextHeader
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnNextHeader_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnNextHeader_raw_.fieldlength / 8)) {
      p_denmInd.gnNextHeader().set_to_omit();
      p_denmInd.gnNextHeader().set_to_omit();
@@ -86,8 +86,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnNextHeader_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnNextHeader_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.gnNextHeader() = oct2int(os);
      p_denmInd.gnNextHeader() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: gnNextHeader=", p_denmInd.gnNextHeader());
    loggers::get_instance().log_msg("fx__dec__DENM: gnNextHeader=", p_denmInd.gnNextHeader());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // gnHeaderType
    // gnHeaderType
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnHeaderType_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnHeaderType_raw_.fieldlength / 8)) {
      p_denmInd.gnHeaderType().set_to_omit();
      p_denmInd.gnHeaderType().set_to_omit();
@@ -96,8 +96,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnHeaderType_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnHeaderType_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.gnHeaderType() = oct2int(os);
      p_denmInd.gnHeaderType() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: gnHeaderType=", p_denmInd.gnHeaderType());
    loggers::get_instance().log_msg("fx__dec__DENM: gnHeaderType=", p_denmInd.gnHeaderType());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // gnHeaderSubtype
    // gnHeaderSubtype
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnHeaderSubtype_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnHeaderSubtype_raw_.fieldlength / 8)) {
      p_denmInd.gnHeaderSubtype().set_to_omit();
      p_denmInd.gnHeaderSubtype().set_to_omit();
@@ -106,8 +106,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnHeaderSubtype_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnHeaderSubtype_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.gnHeaderSubtype() = oct2int(os);
      p_denmInd.gnHeaderSubtype() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: gnHeaderSubType=", p_denmInd.gnHeaderSubtype());
    loggers::get_instance().log_msg("fx__dec__DENM: gnHeaderSubType=", p_denmInd.gnHeaderSubtype());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // gnLifetime
    // gnLifetime
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnLifetime_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnLifetime_raw_.fieldlength / 8)) {
      p_denmInd.gnLifetime().set_to_omit();
      p_denmInd.gnLifetime().set_to_omit();
@@ -116,8 +116,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnLifetime_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnLifetime_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.gnLifetime() = oct2int(os);
      p_denmInd.gnLifetime() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: gnLifetime=", p_denmInd.gnLifetime());
    loggers::get_instance().log_msg("fx__dec__DENM: gnLifetime=", p_denmInd.gnLifetime());
    loggers::get_instance().log_to_hexa("fx__dfx__dec__DenmIndec__DENM: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // gnTrafficClass
    // gnTrafficClass
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnTrafficClass_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_gnTrafficClass_raw_.fieldlength / 8)) {
      p_denmInd.gnTrafficClass().set_to_omit();
      p_denmInd.gnTrafficClass().set_to_omit();
@@ -126,8 +126,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnTrafficClass_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_gnTrafficClass_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.gnTrafficClass() = oct2int(os);
      p_denmInd.gnTrafficClass() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: gnTrafficClass=", p_denmInd.gnTrafficClass());
    loggers::get_instance().log_msg("fx__dec__DENM: gnTrafficClass=", p_denmInd.gnTrafficClass());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // btpDestinationPort
    // btpDestinationPort
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_btpDestinationPort_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_btpDestinationPort_raw_.fieldlength / 8)) {
      p_denmInd.btpDestinationPort().set_to_omit();
      p_denmInd.btpDestinationPort().set_to_omit();
@@ -136,8 +136,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_btpDestinationPort_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_btpDestinationPort_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.btpDestinationPort() = oct2int(os);
      p_denmInd.btpDestinationPort() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: btpDestinationPort=", p_denmInd.btpDestinationPort());
    loggers::get_instance().log_msg("fx__dec__DENM: btpDestinationPort=", p_denmInd.btpDestinationPort());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // btpInfo
    // btpInfo
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_btpInfo_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_btpInfo_raw_.fieldlength / 8)) {
      p_denmInd.btpInfo().set_to_omit();
      p_denmInd.btpInfo().set_to_omit();
@@ -146,8 +146,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_btpInfo_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_btpInfo_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.btpInfo() = oct2int(os);
      p_denmInd.btpInfo() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: btpInfo=", p_denmInd.btpInfo());
    loggers::get_instance().log_msg("fx__dec__DENM: btpInfo=", p_denmInd.btpInfo());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // ssp
    // ssp
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_ssp_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_ssp_raw_.fieldlength / 8)) {
      p_denmInd.ssp().set_to_omit();
      p_denmInd.ssp().set_to_omit();
@@ -156,8 +156,8 @@ namespace LibItsDenm__EncdecDeclarations {
      bs.decode(LibItsDenm__TypesAndValues::DenmInd_ssp_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      bs.decode(LibItsDenm__TypesAndValues::DenmInd_ssp_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.ssp() = bs;
      p_denmInd.ssp() = bs;
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: ssp=", p_denmInd.ssp());
    loggers::get_instance().log_msg("fx__dec__DENM: ssp=", p_denmInd.ssp());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);
    // its__aid
    // its__aid
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_its__aid_raw_.fieldlength / 8)) {
    if (decoding_buffer.get_read_len() < static_cast<size_t>(LibItsDenm__TypesAndValues::DenmInd_its__aid_raw_.fieldlength / 8)) {
      p_denmInd.its__aid().set_to_omit();
      p_denmInd.its__aid().set_to_omit();
@@ -166,8 +166,8 @@ namespace LibItsDenm__EncdecDeclarations {
      os.decode(LibItsDenm__TypesAndValues::DenmInd_its__aid_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      os.decode(LibItsDenm__TypesAndValues::DenmInd_its__aid_descr_, decoding_buffer, TTCN_EncDec::CT_RAW);
      p_denmInd.its__aid() = oct2int(os);
      p_denmInd.its__aid() = oct2int(os);
    }
    }
    loggers::get_instance().log_msg("fx__dec__DenmInd: its_aid=", p_denmInd.its__aid());
    loggers::get_instance().log_msg("fx__dec__DENM: its_aid=", p_denmInd.its__aid());
    loggers::get_instance().log_to_hexa("fx__dec__DenmInd: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__DENM: ", decoding_buffer);


    return 0;
    return 0;
  }
  }
@@ -186,7 +186,7 @@ namespace LibItsDenm__EncdecDeclarations {
    denm_codec  codec;
    denm_codec  codec;
    OCTETSTRING is = bit2oct(b);
    OCTETSTRING is = bit2oct(b);


    if (codec.decode(OCTETSTRING(is.lengthof(), static_cast<const unsigned char *>(is)), p) == -1) {
    if (codec.decode(OCTETSTRING(is.lengthof(), static_cast<const uint8_t *>(is)), p) == -1) {
      loggers::get_instance().warning("fx__dec__DENM: -1 result code was returned");
      loggers::get_instance().warning("fx__dec__DENM: -1 result code was returned");
      return -1;
      return -1;
    }
    }
+6 −6
Original line number Original line Diff line number Diff line
@@ -71,13 +71,13 @@ namespace LibItsGeoNetworking__EncdecDeclarations {
    unsigned int s = (LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_macDestinationAddress_raw_.fieldlength +
    unsigned int s = (LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_macDestinationAddress_raw_.fieldlength +
                      LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_its__aid_raw_.fieldlength) /
                      LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_its__aid_raw_.fieldlength) /
                     8;
                     8;
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const unsigned char *>(is)), pdu) == -1) {
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const uint8_t *>(is)), pdu) == -1) {
      loggers::get_instance().warning("fx__dec__GeoNetworkingReq: -1 result code was returned");
      loggers::get_instance().warning("fx__dec__GeoNetworkingReq: -1 result code was returned");
      return -1;
      return -1;
    }
    }
    p.msgOut() = pdu;
    p.msgOut() = pdu;
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const unsigned char *>(is) + is.lengthof() - s));
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const uint8_t *>(is) + is.lengthof() - s));
    loggers::get_instance().log_to_hexa("fx__dec__GeoNetworkingReq: Lower layer: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__GeoNetworkingInd: Lower layer: ", decoding_buffer);
    for (int i = 1; i < p.get_count(); i++) {
    for (int i = 1; i < p.get_count(); i++) {
      loggers::get_instance().log("fx__dec__GeoNetworkingReq: processing %s/%s/%s", p.fld_name(i), p.fld_descr(i)->name, p.get_at(i)->get_descriptor()->name);
      loggers::get_instance().log("fx__dec__GeoNetworkingReq: processing %s/%s/%s", p.fld_name(i), p.fld_descr(i)->name, p.get_at(i)->get_descriptor()->name);
      p.get_at(i)->decode(*p.fld_descr(i), decoding_buffer, TTCN_EncDec::CT_RAW);
      p.get_at(i)->decode(*p.fld_descr(i), decoding_buffer, TTCN_EncDec::CT_RAW);
@@ -142,12 +142,12 @@ namespace LibItsGeoNetworking__EncdecDeclarations {
      (LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_macDestinationAddress_raw_.fieldlength +
      (LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_macDestinationAddress_raw_.fieldlength +
       LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_ssp_raw_.fieldlength + LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_its__aid_raw_.fieldlength) /
       LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_ssp_raw_.fieldlength + LibItsGeoNetworking__TypesAndValues::GeoNetworkingInd_its__aid_raw_.fieldlength) /
      8;
      8;
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const unsigned char *>(is)), pdu) == -1) {
    if (codec.decode(OCTETSTRING(is.lengthof() - s, static_cast<const uint8_t *>(is)), pdu) == -1) {
      loggers::get_instance().warning("fx__dec__GeoNetworkingInd: -1 result code was returned");
      loggers::get_instance().warning("fx__dec__GeoNetworkingInd: -1 result code was returned");
      return -1;
      return -1;
    }
    }
    p_geoNetworkingInd.msgIn() = pdu;
    p_geoNetworkingInd.msgIn() = pdu;
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const unsigned char *>(is) + is.lengthof() - s));
    TTCN_Buffer decoding_buffer(OCTETSTRING(s, static_cast<const uint8_t *>(is) + is.lengthof() - s));
    loggers::get_instance().log_to_hexa("fx__dec__GeoNetworkingInd: Lower layer: ", decoding_buffer);
    loggers::get_instance().log_to_hexa("fx__dec__GeoNetworkingInd: Lower layer: ", decoding_buffer);
    for (int i = 1; i < p_geoNetworkingInd.get_count(); i++) {
    for (int i = 1; i < p_geoNetworkingInd.get_count(); i++) {
      loggers::get_instance().log("fx__dec__GeoNetworkingInd: processing %s/%s/%s - %d - %d", p_geoNetworkingInd.fld_name(i),
      loggers::get_instance().log("fx__dec__GeoNetworkingInd: processing %s/%s/%s - %d - %d", p_geoNetworkingInd.fld_name(i),
@@ -219,7 +219,7 @@ namespace LibItsGeoNetworking__EncdecDeclarations {
    geonetworking_codec codec;
    geonetworking_codec codec;
    OCTETSTRING         is = bit2oct(b);
    OCTETSTRING         is = bit2oct(b);


    if (codec.decode(OCTETSTRING(is.lengthof(), static_cast<const unsigned char *>(is)), p) == -1) {
    if (codec.decode(OCTETSTRING(is.lengthof(), static_cast<const uint8_t *>(is)), p) == -1) {
      loggers::get_instance().warning("fx__dec__GeoNetworkingPdu: -1 result code was returned");
      loggers::get_instance().warning("fx__dec__GeoNetworkingPdu: -1 result code was returned");
      return -1;
      return -1;
    }
    }
+22 −22

File changed.

Preview size limit exceeded, changes collapsed.

Loading