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) 2007,2008, 2009 INRIA, UDcast | 3 * Copyright (c) 2007,2008, 2009 INRIA, UDcast |
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 os << " header type = " << (uint32_t) m_type; | 80 os << " header type = " << (uint32_t) m_type; |
81 } | 81 } |
82 | 82 |
83 uint32_t MacHeaderType::GetSerializedSize (void) const | 83 uint32_t MacHeaderType::GetSerializedSize (void) const |
84 { | 84 { |
85 return 0; | 85 return 0; |
86 } | 86 } |
87 | 87 |
88 void MacHeaderType::Serialize (Buffer::Iterator start) const | 88 void MacHeaderType::Serialize (Buffer::Iterator start) const |
89 { | 89 { |
90 NS_UNUSED(start); | 90 NS_UNUSED (start); |
91 } | 91 } |
92 | 92 |
93 uint32_t MacHeaderType::Deserialize (Buffer::Iterator start) | 93 uint32_t MacHeaderType::Deserialize (Buffer::Iterator start) |
94 { | 94 { |
95 NS_UNUSED(start); | 95 NS_UNUSED (start); |
96 return 0; | 96 return 0; |
97 } | 97 } |
98 | 98 |
99 // -----------------------------------------------------------------------------
----------------------------- | 99 // -----------------------------------------------------------------------------
----------------------------- |
100 | 100 |
101 NS_OBJECT_ENSURE_REGISTERED (GenericMacHeader); | 101 NS_OBJECT_ENSURE_REGISTERED (GenericMacHeader); |
102 | 102 |
103 GenericMacHeader::GenericMacHeader (void) | 103 GenericMacHeader::GenericMacHeader (void) |
104 : m_ht (0), | 104 : m_ht (0), |
105 m_ec (0), | 105 m_ec (0), |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 FragmentationSubheader::Deserialize (Buffer::Iterator start) | 670 FragmentationSubheader::Deserialize (Buffer::Iterator start) |
671 { | 671 { |
672 Buffer::Iterator i = start; | 672 Buffer::Iterator i = start; |
673 m_fc = i.ReadU8 (); | 673 m_fc = i.ReadU8 (); |
674 m_fsn = i.ReadU8 (); | 674 m_fsn = i.ReadU8 (); |
675 | 675 |
676 return i.GetDistanceFrom (start); | 676 return i.GetDistanceFrom (start); |
677 } | 677 } |
678 | 678 |
679 } // namespace ns3 | 679 } // namespace ns3 |
LEFT | RIGHT |