OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2013 | 3 * Copyright (c) 2013 |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Ghada Badawy <gbadawy@gmail.com> | 18 * Author: Ghada Badawy <gbadawy@gmail.com> |
19 */ | 19 */ |
20 | 20 |
21 #ifndef MPDU_AGGREGATOR_H | 21 #ifndef MPDU_AGGREGATOR_H |
22 #define MPDU_AGGREGATOR_H | 22 #define MPDU_AGGREGATOR_H |
23 | 23 |
24 #include "ns3/packet.h" | |
25 #include "ns3/object.h" | 24 #include "ns3/object.h" |
26 #include "ampdu-subframe-header.h" | |
27 | 25 |
28 namespace ns3 { | 26 namespace ns3 { |
29 | 27 |
| 28 class AmpduSubframeHeader; |
30 class WifiMacHeader; | 29 class WifiMacHeader; |
| 30 class Packet; |
31 | 31 |
32 /** | 32 /** |
33 * \brief Aggregator used to construct A-MPDUs | 33 * \brief Aggregator used to construct A-MPDUs |
34 * \ingroup wifi | 34 * \ingroup wifi |
35 */ | 35 */ |
36 class MpduAggregator : public Object | 36 class MpduAggregator : public Object |
37 { | 37 { |
38 public: | 38 public: |
39 /** | 39 /** |
40 * A list of deaggregated packets and their A-MPDU subframe headers. | 40 * A list of deaggregated packets and their A-MPDU subframe headers. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 * Each A-MPDU subframe is padded so that its length is multiple of 4 octets. | 123 * Each A-MPDU subframe is padded so that its length is multiple of 4 octets. |
124 */ | 124 */ |
125 uint8_t CalculatePadding (Ptr<const Packet> packet) const; | 125 uint8_t CalculatePadding (Ptr<const Packet> packet) const; |
126 | 126 |
127 uint16_t m_maxAmpduLength; //!< Maximum length in bytes of A-MPDUs | 127 uint16_t m_maxAmpduLength; //!< Maximum length in bytes of A-MPDUs |
128 }; | 128 }; |
129 | 129 |
130 } //namespace ns3 | 130 } //namespace ns3 |
131 | 131 |
132 #endif /* MPDU_AGGREGATOR_H */ | 132 #endif /* MPDU_AGGREGATOR_H */ |
OLD | NEW |