Vanetza
Loading...
Searching...
No Matches
shb_header.hpp
1#ifndef SHB_HEADER_HPP_MRLDRPNK
2#define SHB_HEADER_HPP_MRLDRPNK
3
4#include <vanetza/geonet/dcc_field.hpp>
5#include <vanetza/geonet/position_vector.hpp>
6#include <cstdint>
7
8namespace vanetza
9{
10namespace geonet
11{
12
14{
15 ShbHeader();
16
17 static constexpr std::size_t length_bytes = 4 + LongPositionVector::length_bytes;
18
19 LongPositionVector source_position;
20 DccField dcc; /* < this field is "reserved" in 102 636-4-1 */
21};
22
23void serialize(const ShbHeader&, OutputArchive&);
24void deserialize(ShbHeader&, InputArchive&);
25
26} // namespace geonet
27} // namespace vanetza
28
29#endif /* SHB_HEADER_HPP_MRLDRPNK */
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
BasicHeader specified in ETSI EN 302 636-4-1 v1.2.1, section 8.6.