loggers::get_instance().log("commsignia_layer::receive_data: compare %02x with %02x",r.u8_antenna,static_cast<unsignedchar>(std::stoi(_params[params::interface_id])));
loggers::get_instance().log("commsignia_layer::receive_data: compare %02x with %02x",r.u8_antenna,
if((_ec.get_basic_header()==0x02)&&(std::string(r.fld_descr(i)->name).compare("@LibItsGeoNetworking_TypesAndValues.GeoNetworkingPacket.packet")==0)){// Encoding secured GeoNetworking packet, unsecured GN message was already encoded using encvalue
TTCN_error("geonetworking_codec::decode_headerTST: TSB subtype not processed, See ETSI EN 302 636-4-1 Clause 9.7.4 Encoding of the HT and HST fields");
TTCN_error("geonetworking_codec::decode_headerTST: Location service subtype not processed, See ETSI EN 302 636-4-1 Clause 9.7.4 Encoding of the HT and HST fields");
TTCN_error("geonetworking_codec::decode_headerTST: Not processed, _dc.header_type = %d - _dc.header_sub_type = %d, See ETSI EN 302 636-4-1 Clause 9.7.4 Encoding of the HT and HST fields",_dc.get_header_type(),_dc.get_header_sub_type());
TTCN_error("geonetworking_codec::decode_headerTST: TSB subtype not processed, See ETSI EN 302 636-4-1 Clause 9.7.4 Encoding of the HT and HST fields");
TTCN_error("geonetworking_codec::decode_headerTST: Location service subtype not processed, See ETSI EN 302 636-4-1 Clause 9.7.4 Encoding of the HT and "
TTCN_error("geonetworking_codec::decode_headerTST: Not processed, _dc.header_type = %d - _dc.header_sub_type = %d, See ETSI EN 302 636-4-1 Clause 9.7.4 "
intencode(constLibItsGeoNetworking__TypesAndValues::GnNonSecuredPacket&p_gnNonSecuredPacket,OCTETSTRING&data);// TODO Duplicate code with virtual encode, to be enhanced
fill_gbc_packet(ll_address,_latitude,_longitude,distanceA,distanceB,angle);// TODO Check if GeoBroadcastArea lat/lon are identical to lat/lon of the Test System
if((int)basic_header.nextHeader()==2){// Verify and extract the GeoNetworking Secured Packet as specified in ETSI EN 302 636-4-1 V1.3.1 (2017-08) Clause 9.6.1 Composition of the Basic Header
unsignedintbasic_header_len=4;// FIXME How to retrive the BasicHeader length basic_header.get_descriptor()->raw->fieldlength / 8;
if((int)basic_header.nextHeader()==2){// Verify and extract the GeoNetworking Secured Packet as specified in ETSI EN 302 636-4-1 V1.3.1 (2017-08)
// Clause 9.6.1 Composition of the Basic Header
unsignedintbasic_header_len=4;// FIXME How to retrive the BasicHeader length basic_header.get_descriptor()->raw->fieldlength / 8;
OCTETSTRINGbh=OCTETSTRING(4,static_cast<constunsignedchar*>(p_data));// Extract the basic header as specified in ETSI EN 302 636-4-1 V1.3.1 (2017-08) Clause 9.6