Adding a figure describing the wimax architecture
This commit is contained in:
BIN
doc/WimaxArchitecture.png
Normal file
BIN
doc/WimaxArchitecture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
@@ -153,6 +153,8 @@ int main (int argc, char *argv[])
|
||||
clientApps.Stop (Seconds (duration));
|
||||
|
||||
Simulator::Stop (Seconds (duration + 0.1));
|
||||
wimax.EnablePcap("ss0", ssNodes.Get (0)->GetId (), ss[0]->GetIfIndex ());
|
||||
wimax.EnablePcap("ss1", ssNodes.Get (0)->GetId (), ss[0]->GetIfIndex ());
|
||||
|
||||
IpcsClassifierRecord DlClassifierUgs (Ipv4Address ("0.0.0.0"),
|
||||
Ipv4Mask ("0.0.0.0"),
|
||||
|
||||
@@ -74,7 +74,16 @@ WimaxMacToMacHeader::GetSizeOfLen (void) const
|
||||
uint32_t
|
||||
WimaxMacToMacHeader::GetSerializedSize (void) const
|
||||
{
|
||||
return 20 + GetSizeOfLen () ;
|
||||
uint8_t sizeOfLen = GetSizeOfLen ();
|
||||
if (sizeOfLen==1)
|
||||
{
|
||||
return 20 ;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 20 + sizeOfLen -1 ;
|
||||
}
|
||||
//return 19+sizeOfLen;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -112,7 +121,7 @@ WimaxMacToMacHeader::Serialize (Buffer::Iterator i) const
|
||||
}
|
||||
else
|
||||
{
|
||||
i.WriteU8 ((lenSize - 1) | 0x80);
|
||||
i.WriteU8 ((lenSize-1) | 0x80);
|
||||
for (int j = 0; j < lenSize - 1; j++)
|
||||
{
|
||||
i.WriteU8 ((uint8_t)(m_len >> ((lenSize - 1 - 1 - j) * 8)));
|
||||
|
||||
@@ -121,7 +121,7 @@ Tlv::Serialize (Buffer::Iterator i) const
|
||||
}
|
||||
else
|
||||
{
|
||||
i.WriteU8 ((lenSize - 1) | WIMAX_TLV_EXTENDED_LENGTH_MASK);
|
||||
i.WriteU8 ((lenSize-1) | WIMAX_TLV_EXTENDED_LENGTH_MASK);
|
||||
for (int j = 0; j < lenSize - 1; j++)
|
||||
{
|
||||
i.WriteU8 ((uint8_t)(m_length >> ((lenSize - 1 - 1 - j) * 8)));
|
||||
|
||||
@@ -545,7 +545,7 @@ static void PcapSniffTxEvent (Ptr<PcapFileWrapper> file,
|
||||
std::list<Ptr<Packet> > packets = burst->GetPackets ();
|
||||
for (std::list<Ptr<Packet> >::iterator iter = packets.begin (); iter != packets.end (); ++iter)
|
||||
{
|
||||
WimaxMacToMacHeader m2m((*iter)->GetSize()+1);
|
||||
WimaxMacToMacHeader m2m((*iter)->GetSize());
|
||||
(*iter)->AddHeader(m2m);
|
||||
file->Write (Simulator::Now (), (*iter));
|
||||
}
|
||||
@@ -556,7 +556,7 @@ static void PcapSniffRxEvent (Ptr<PcapFileWrapper> file, Ptr<const PacketBurst>
|
||||
std::list<Ptr<Packet> > packets = burst->GetPackets ();
|
||||
for (std::list<Ptr<Packet> >::iterator iter = packets.begin (); iter != packets.end (); ++iter)
|
||||
{
|
||||
WimaxMacToMacHeader m2m((*iter)->GetSize()+1);
|
||||
WimaxMacToMacHeader m2m((*iter)->GetSize());
|
||||
(*iter)->AddHeader(m2m);
|
||||
file->Write (Simulator::Now (), (*iter));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user