Commit 29d67209 authored by YannGarcia's avatar YannGarcia
Browse files

Validate fir MBR test case (step 1)

parent ea2b0a1e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -511,6 +511,11 @@ int ConfigRsuSimulatorLayer::process_utinitialize_data(const OCTETSTRING &data,
    LibItsRtcmem__TypesAndValues::UtRtcmemInitialize p(hashedId);
    // Pass it to the ports if any
    to_all_upper_ports(p, params);
  } else if (_params[std::string("ut")].compare("mbr") == 0) {
    OCTETSTRING                                      hashedId(data.lengthof() - 1, 1 + static_cast<const unsigned char *>(data));
    LibItsMbr__TypesAndValues::UtMbrInitialize p(hashedId);
    // Pass it to the ports if any
    to_all_upper_ports(p, params);
  } else {
    loggers::get_instance().warning("ConfigRsuSimulatorLayer::process_utinitialize_data: Unsupported protocol");
    return -1;
@@ -937,7 +942,6 @@ int ConfigRsuSimulatorLayer::process_ut_mbr_trigger(const OCTETSTRING &data, par
    loggers::get_instance().log("ConfigRsuSimulatorLayer::process_ut_mbr_trigger: msg_id=%02x", msg_id);

    LibItsMbr__TypesAndValues::UtMbrTrigger p;
    loggers::get_instance().error("ConfigRsuSimulatorLayer::process_ut_mbr_trigger: To be implemented");
    if (msg_id == uppertester_mbr_codec::c_utMbrTrigger) {
      p.targetId() = oct2int(OCTETSTRING(1, 1 + static_cast<const unsigned char *>(data)));
      p.cause() = oct2int(OCTETSTRING(1, 2 + static_cast<const unsigned char *>(data)));
+2 −2
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ LibItsSecurity_Pixits.PX_AT_CERTIFICATE := "CERT_TS_B_AT" # Possible values: CER
# In this section you can specify the name of the log file and the classes of events
# you want to log into the file or display on console (standard error).

LogFile := "../logs/AtsSecurity/%e.%h-%r.%s"
LogFile := "../logs/AtsMBR/%e.%h-%r.%s"
FileMask := LOG_ALL | USER | DEBUG | MATCHING
ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING
#FileMask := ERROR | WARNING | USER | PORTEVENT | MATCHING | EXECUTOR_RUNTIME | VERDICTOP | TIMEROP
@@ -134,7 +134,7 @@ system.geoNetworkingPort.params := "GN(ll_address=4C5E0C14D2EA,latitude=43551050

system.httpPort.params := "HTTP(codecs=http_its:http_etsi_ieee1609dot2_codec)/TCP(debug=1,server_mode=1,server=192.168.1.43)"

system.utMbrPort.params := "UT_MBR/UDP(dst_ip=192.168.1.43,dst_port=12345,src_port=12346)" # Use with TC_SEC_ITSS_RCV_MSG_ test cases
system.utMbrPort.params := "UT_MBR/UDP(dst_ip=192.168.1.43,dst_port=12345,src_port=12346)"

[EXECUTE]