9#include <spdlog/logger.h>
52 const std::string &display_name);
60 std::optional<info>
dump(std::shared_ptr<PacketChannel> channel)
const;
68 std::optional<info>
dump(std::vector<Tins::Packet *> *packets)
const;
75 static std::unique_ptr<Tins::Packet>
make_eth_packet(Tins::Packet *pkt);
82 std::filesystem::path generate_filepath()
const;
84 std::shared_ptr<spdlog::logger> logger;
85 const std::filesystem::path save_dir;
87 const std::string basename;
Recordings utility class.
Definition recording.h:19
static std::unique_ptr< Tins::Packet > make_eth_packet(Tins::Packet *pkt)
Definition recording.cpp:148
std::optional< info > dump(std::shared_ptr< PacketChannel > channel) const
Definition recording.cpp:21
DataLinkType
data link of a saved recording
Definition recording.h:24
Recording(const std::filesystem::path &save_dir, bool dump_raw, Database &db, const std::string &display_name)
Definition recording.cpp:13
std::string UUIDv4
Definition uuid.h:11
Definition access_point.cpp:22
Information about a saved recording.
Definition recording.h:34
std::string filename
Definition recording.h:36
uuid::UUIDv4 uuid
Definition recording.h:35
DataLinkType datalink
Definition recording.h:38
std::string display_name
Definition recording.h:37
uint32_t count
Definition recording.h:39
uuid::UUIDv4 get_uuid() const
Definition recording.h:41