equal
deleted
inserted
replaced
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 * |
18 * |
19 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
20 */ |
20 */ |
21 |
21 |
22 #include <cassert> |
22 #include "ns3/assert.h" |
23 #include "mac-parameters.h" |
23 #include "mac-parameters.h" |
24 #include "wifi-default-parameters.h" |
24 #include "wifi-default-parameters.h" |
25 |
25 |
26 namespace ns3 { |
26 namespace ns3 { |
27 |
27 |
123 return m_rtsCtsThreshold; |
123 return m_rtsCtsThreshold; |
124 } |
124 } |
125 uint32_t |
125 uint32_t |
126 MacParameters::GetFragmentationThreshold (void) const |
126 MacParameters::GetFragmentationThreshold (void) const |
127 { |
127 { |
128 assert (GetMaxMsduSize () / 16 < m_fragmentationThreshold); |
128 NS_ASSERT (GetMaxMsduSize () / 16 < m_fragmentationThreshold); |
129 return m_fragmentationThreshold; |
129 return m_fragmentationThreshold; |
130 } |
130 } |
131 Time |
131 Time |
132 MacParameters::GetMsduLifetime (void) const |
132 MacParameters::GetMsduLifetime (void) const |
133 { |
133 { |