Vanetza
Loading...
Searching...
No Matches
header_type.hpp
1#ifndef HEADER_TYPE_HPP_U5FGWR9N
2#define HEADER_TYPE_HPP_U5FGWR9N
3
4#include <cstdint>
5
6namespace vanetza
7{
8namespace geonet
9{
10
11// forward declaration
12struct Area;
13
14enum class HeaderType : uint8_t
15{
16 Any = 0x00,
17 Beacon = 0x10,
18 GeoUnicast = 0x20,
19 GeoAnycast_Circle = 0x30,
20 GeoAnycast_Rect = 0x31,
21 GeoAnycast_Elip = 0x32,
22 GeoBroadcast_Circle = 0x40,
23 GeoBroadcast_Rect = 0x41,
24 GeoBroadcast_Elip = 0x42,
25 TSB_Single_Hop = 0x50,
26 TSB_Multi_Hop = 0x51,
27 LS_Request = 0x60,
28 LS_Reply = 0x61
29};
30
31HeaderType gbc_header_type(const Area&);
32HeaderType gac_header_type(const Area&);
33
34} // namespace geonet
35} // namespace vanetza
36
37#endif /* HEADER_TYPE_HPP_U5FGWR9N */
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.