LEFT | RIGHT |
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 |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 NS_OBJECT_ENSURE_REGISTERED (MpduAggregator); | 29 NS_OBJECT_ENSURE_REGISTERED (MpduAggregator); |
30 | 30 |
31 TypeId | 31 TypeId |
32 MpduAggregator::GetTypeId (void) | 32 MpduAggregator::GetTypeId (void) |
33 { | 33 { |
34 static TypeId tid = TypeId ("ns3::MpduAggregator") | 34 static TypeId tid = TypeId ("ns3::MpduAggregator") |
35 .SetParent<Object> () | 35 .SetParent<Object> () |
36 .SetGroupName ("Wifi") | 36 .SetGroupName ("Wifi") |
37 .AddConstructor<MpduAggregator> () | 37 .AddConstructor<MpduAggregator> () |
38 .AddAttribute ("MaxAmpduSize", "Max length in bytes of an A-MPDU (Deprecated
!)", | |
39 UintegerValue (65535), | |
40 MakeUintegerAccessor (&MpduAggregator::m_maxAmpduLength), | |
41 MakeUintegerChecker<uint16_t> ()) | |
42 ; | 38 ; |
43 return tid; | 39 return tid; |
44 } | 40 } |
45 | 41 |
46 MpduAggregator::MpduAggregator () | 42 MpduAggregator::MpduAggregator () |
47 { | 43 { |
48 } | 44 } |
49 | 45 |
50 MpduAggregator::~MpduAggregator () | 46 MpduAggregator::~MpduAggregator () |
51 { | 47 { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 } | 193 } |
198 | 194 |
199 std::pair<Ptr<Packet>, AmpduSubframeHeader> packetHdr (extractedMpdu, hdr)
; | 195 std::pair<Ptr<Packet>, AmpduSubframeHeader> packetHdr (extractedMpdu, hdr)
; |
200 set.push_back (packetHdr); | 196 set.push_back (packetHdr); |
201 } | 197 } |
202 NS_LOG_INFO ("Deaggreated A-MPDU: extracted " << set.size () << " MPDUs"); | 198 NS_LOG_INFO ("Deaggreated A-MPDU: extracted " << set.size () << " MPDUs"); |
203 return set; | 199 return set; |
204 } | 200 } |
205 | 201 |
206 } //namespace ns3 | 202 } //namespace ns3 |
LEFT | RIGHT |