View | Details | Raw Unified | Return to bug 958
Collapse All | Expand All

(-)a/src/devices/wifi/wifi-net-device.cc (-1 / +1 lines)
 Lines 43-49    Link Here 
43
    .SetParent<NetDevice> ()
43
    .SetParent<NetDevice> ()
44
    .AddConstructor<WifiNetDevice> ()
44
    .AddConstructor<WifiNetDevice> ()
45
    .AddAttribute ("Mtu", "The MAC-level Maximum Transmission Unit",
45
    .AddAttribute ("Mtu", "The MAC-level Maximum Transmission Unit",
46
                   UintegerValue (MAX_MSDU_SIZE),
46
                   UintegerValue (MAX_MSDU_SIZE - LLC_SNAP_HEADER_SIZE),
47
                   MakeUintegerAccessor (&WifiNetDevice::SetMtu,
47
                   MakeUintegerAccessor (&WifiNetDevice::SetMtu,
48
                                         &WifiNetDevice::GetMtu),
48
                                         &WifiNetDevice::GetMtu),
49
                   MakeUintegerChecker<uint16_t> (1,MAX_MSDU_SIZE))
49
                   MakeUintegerChecker<uint16_t> (1,MAX_MSDU_SIZE))
(-)a/src/node/llc-snap-header.cc (-1 / +1 lines)
 Lines 43-49    Link Here 
43
uint32_t 
43
uint32_t 
44
LlcSnapHeader::GetSerializedSize (void) const
44
LlcSnapHeader::GetSerializedSize (void) const
45
{
45
{
46
  return 1 + 1 + 1 + 3 + 2;
46
  return LLC_SNAP_HEADER_SIZE;
47
}
47
}
48
48
49
TypeId 
49
TypeId 
(-)a/src/node/llc-snap-header.h (+2 lines)
 Lines 27-32    Link Here 
27
27
28
namespace ns3 {
28
namespace ns3 {
29
29
30
static const uint16_t LLC_SNAP_HEADER_SIZE = 8;
31
30
/**
32
/**
31
 * \ingroup node
33
 * \ingroup node
32
 *
34
 *

Return to bug 958