-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathL3Packet.hpp
48 lines (35 loc) · 1.65 KB
/
L3Packet.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// The L-Band Digital Aeronautical Communications System (LDACS) Link Layer Glue Library provides interfaces and common classes necessary for the LDACS Air-Air Medium Access Control simulator.
// Copyright (C) 2023 Sebastian Lindner, Konrad Fuger, Musab Ahmed Eltayeb Ahmed, Andreas Timm-Giel, Institute of Communication Networks, Hamburg University of Technology, Hamburg, Germany
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#ifndef INTAIRNET_LINKLAYER_GLUE_L3PACKET_HPP
#define INTAIRNET_LINKLAYER_GLUE_L3PACKET_HPP
#include "MacId.hpp"
using namespace TUHH_INTAIRNET_MCSOTDMA;
namespace inet {
class Packet;
}
class L3Packet {
public:
/** default constructor **/
L3Packet();
/** packet id */
unsigned int packetId = 0;
/** Size of the contained inet packet **/
int size = 0;
/** Offset shows how much data was already fragmented and put into a L2Packet **/
int offset = 0;
/** The MacId resolved from the NW layer**/
MacId dest;
/** Pointer to the original data **/
inet::Packet* original;
};
#endif //INTAIRNET_LINKLAYER_GLUE_L3PACKET_HPP