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) 2009 MIRKO BANCHI | 3 * Copyright (c) 2009 MIRKO BANCHI |
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 uint16_t | 115 uint16_t |
116 BlockAckAgreement::GetStartingSequence (void) const | 116 BlockAckAgreement::GetStartingSequence (void) const |
117 { | 117 { |
118 NS_LOG_FUNCTION (this); | 118 NS_LOG_FUNCTION (this); |
119 return m_startingSeq; | 119 return m_startingSeq; |
120 } | 120 } |
121 uint16_t | 121 uint16_t |
122 BlockAckAgreement::GetStartingSequenceControl (void) const | 122 BlockAckAgreement::GetStartingSequenceControl (void) const |
123 { | 123 { |
124 NS_LOG_FUNCTION (this); | 124 NS_LOG_FUNCTION (this); |
125 uint16_t seqControl = (m_startingSeq << 4) | 0xfff0; | 125 uint16_t seqControl = (m_startingSeq << 4) | 0xfff0; |
126 return seqControl; | 126 return seqControl; |
127 } | 127 } |
128 bool | 128 bool |
129 BlockAckAgreement::IsImmediateBlockAck (void) const | 129 BlockAckAgreement::IsImmediateBlockAck (void) const |
130 { | 130 { |
131 NS_LOG_FUNCTION (this); | 131 NS_LOG_FUNCTION (this); |
132 return (m_blockAckPolicy == 1); | 132 return (m_blockAckPolicy == 1); |
133 } | 133 } |
134 bool | 134 bool |
135 BlockAckAgreement::IsAmsduSupported (void) const | 135 BlockAckAgreement::IsAmsduSupported (void) const |
136 { | 136 { |
137 NS_LOG_FUNCTION (this); | 137 NS_LOG_FUNCTION (this); |
138 return (m_amsduSupported == 1) ? true : false; | 138 return (m_amsduSupported == 1) ? true : false; |
139 } | 139 } |
140 | 140 uint16_t |
| 141 BlockAckAgreement::GetWinEnd (void) const |
| 142 { |
| 143 return m_winEnd; |
| 144 } |
| 145 void |
| 146 BlockAckAgreement::SetWinEnd (uint16_t seq)· |
| 147 { |
| 148 m_winEnd = seq; |
| 149 } |
141 } // namespace ns3 | 150 } // namespace ns3 |
OLD | NEW |