Vector BLF: MostEthernetPktFragment.h Source File

Vector BLF

Loading...
Searching...
No Matches
MostEthernetPktFragment.h
1// SPDX-FileCopyrightText: 2013-2021 Tobias Lorenz <tobias.lorenz@gmx.net>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include <Vector/BLF/platform.h>
8
9#include <vector>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/ObjectHeader2.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
24 struct VECTOR_BLF_EXPORT MostEthernetPktFragment final : ObjectHeader2 {
25 MostEthernetPktFragment();
26
27 void read(AbstractFile & is) override;
28 void write(AbstractFile & os) override;
29 uint32_t calculateObjectSize() const override;
30
36 uint16_t channel {};
37
39 uint8_t reservedMostEthernetPktFragment1 {};
40
78 uint8_t ackNack {};
79
97 uint32_t validMask {};
98
104 uint64_t sourceMacAdr {};
105
111 uint64_t destMacAdr {};
112
121 uint8_t pAck {};
122
132 uint8_t cAck {};
133
135 uint16_t reservedMostEthernetPktFragment2 {};
136
142 uint32_t crc {};
143
153 uint32_t dataLen {};
154
170 uint32_t dataLenAnnounced {};
171
182 uint32_t firstDataLen {};
183
185 uint32_t reservedMostEthernetPktFragment3 {};
186
192 std::vector<uint8_t> firstData {};
193};
194
195}
196}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::MostEthernetPktFragment
MOST_ETHERNET_PKT_FRAGMENT.
Definition: MostEthernetPktFragment.h:24
Vector::BLF::ObjectHeader2
Object header.
Definition: ObjectHeader2.h:22