Commit 2c0c8c4f authored by Yann Garcia's avatar Yann Garcia
Browse files

Unable to execute ItsCam_TestCases.TC_CAM_MSP_BV_01

parent 53a1d335
......@@ -567,6 +567,21 @@ const LongPosVector* geonetworking_layer::get_lpv(const GN__Address& p_gn_addres
return lpv;
} // End of get_lpv
const LibItsGeoNetworking__TypesAndValues::BasicHeader geonetworking_layer::fill_basic_header() const {
return LibItsGeoNetworking__TypesAndValues::BasicHeader(
1, // GeoNetworking version
BasicNextHeader(
BasicNextHeader::e__commonHeader
),
0,
Lifetime(
4,
LtBase(LtBase::e__50ms)
),
1
);
}
void geonetworking_layer::fill_beacon(const OCTETSTRING& p_ll_address, const INTEGER p_station_type, const INTEGER p_country, const INTEGER type_of_address)
{
_beacon = new GeoNetworkingPdu();
......@@ -592,18 +607,7 @@ void geonetworking_layer::fill_beacon(const OCTETSTRING& p_ll_address, const INT
0
)
);
_beacon->basicHeader() = BasicHeader(
0,
BasicNextHeader(
BasicNextHeader::e__commonHeader
),
0,
Lifetime(
4,
LtBase(LtBase::e__50ms)
),
1
);
_beacon->basicHeader() = fill_basic_header();
_beacon->gnPacket().packet() = GnNonSecuredPacket(
CommonHeader(
NextHeader(
......@@ -662,18 +666,7 @@ void geonetworking_layer::fill_gbc_packet(const OCTETSTRING& p_ll_address, const
p_angle,
0
);
_gbc_packet->basicHeader() = BasicHeader(
0,
BasicNextHeader(
BasicNextHeader::e__commonHeader
),
0,
Lifetime(
4,
LtBase(LtBase::e__50ms)
),
5
);
_gbc_packet->basicHeader() = fill_basic_header();
_gbc_packet->gnPacket().packet() = GnNonSecuredPacket(
CommonHeader(
NextHeader(
......@@ -725,18 +718,7 @@ void geonetworking_layer::fill_shb_packet(const OCTETSTRING& p_ll_address)
),
0
);
_shb_packet->basicHeader() = BasicHeader(
0,
BasicNextHeader(
BasicNextHeader::e__commonHeader
),
0,
Lifetime(
4,
LtBase(LtBase::e__50ms)
),
1
);
_shb_packet->basicHeader() = fill_basic_header();
_shb_packet->gnPacket().packet() = GnNonSecuredPacket(
CommonHeader(
NextHeader(
......@@ -789,18 +771,7 @@ void geonetworking_layer::fill_tsb_packet(const OCTETSTRING& p_ll_address, const
0
)
);
_tsb_packet->basicHeader() = BasicHeader(
0,
BasicNextHeader(
BasicNextHeader::e__commonHeader
),
0,
Lifetime(
4,
LtBase(LtBase::e__50ms)
),
p_hop_number
);
_tsb_packet->basicHeader() = fill_basic_header();
_tsb_packet->gnPacket().packet() = GnNonSecuredPacket(
CommonHeader(
NextHeader(
......@@ -864,18 +835,7 @@ void geonetworking_layer::fill_ls_reply(const OCTETSTRING& p_ll_address)
_longitude
)
);
_ls_reply->basicHeader() = BasicHeader(
0,
BasicNextHeader(
BasicNextHeader::e__commonHeader
),
0,
Lifetime(
4,
LtBase(LtBase::e__50ms)
),
5
);
_ls_reply->basicHeader() = fill_basic_header();
_ls_reply->gnPacket().packet() = GnNonSecuredPacket(
CommonHeader(
NextHeader(
......
......@@ -30,6 +30,7 @@ namespace LibItsGeoNetworking__TestSystem {
}
namespace LibItsGeoNetworking__TypesAndValues {
class BasicHeader; //! Forward declaration of TITAN class
class GeoNetworkingPdu; //! Forward declaration of TITAN class
class BeaconHeader; //! Forward declaration of TITAN class
class LongPosVector; //! Forward declaration of TITAN class
......@@ -65,7 +66,12 @@ class geonetworking_layer : public t_layer<LibItsGeoNetworking__TestSystem::GeoN
unsigned int _sequence_number;
int _latitude;
int _longitude;
/*!
* \brief Create and initialize a BasicHeader object
* \return A BasicHeader object
*/
const LibItsGeoNetworking__TypesAndValues::BasicHeader fill_basic_header() const;
/*!
* \brief Initialize a beacon object for a stand alone beaconing
* This object could be replaced in case of start_beaconing call from the Adapter Control Port
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment