Vanetza
Loading...
Searching...
No Matches
tsb_header.hpp
1#ifndef TSB_HEADER_HPP_RS2USUPV
2#define TSB_HEADER_HPP_RS2USUPV
3
4#include <vanetza/geonet/position_vector.hpp>
5#include <vanetza/geonet/sequence_number.hpp>
6
7namespace vanetza
8{
9namespace geonet
10{
11
13{
14public:
15 static constexpr std::size_t length_bytes = 4 + LongPositionVector::length_bytes;
16
17 SequenceNumber sequence_number;
18 uint16_t reserved = 0;
19 LongPositionVector source_position;
20};
21
22void serialize(const TsbHeader&, OutputArchive&);
23void deserialize(TsbHeader&, InputArchive&);
24
25} // namespace geonet
26} // namespace vanetza
27
28#endif /* TSB_HEADER_HPP_RS2USUPV */
ChunckPacket is a packet consisting of several memory chunks.
std::size_t size(OsiLayer from, OsiLayer to) const
virtual void cancel(const void *scope)=0
virtual Clock::time_point now() const =0
std::size_t counter(const Identifier &packet) const
boost::optional< CbfPacket > fetch(const Identifier &id)
void remove_timer(typename timer_bimap::left_map::iterator)
bool remove(const Identifier &id)
CbfPacketBuffer(Runtime &rt, TimerCallback cb, std::unique_ptr< CbfCounter > cnt, std::size_t bytes)
void update(const Identifier &id, Clock::duration timeout)
void add(CbfPacket &&packet, Clock::duration timeout)
const CbfPacket * find(const Identifier &id) const
bool reduce_lifetime(const Timer &, CbfPacket &) const
Clock::duration reduce_lifetime(Clock::duration d)
const MacAddress & sender() const
SequenceNumber sequence_number() const
const Address & source() const
void output_power(unsigned dbm)
BasicHeader specified in ETSI EN 302 636-4-1 v1.2.1, section 8.6.