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

(-)a/examples/simple-wimax.cc (+2 lines)
 Lines 62-67    Link Here 
62
      return (char*)"NOT FOUND!";
62
      return (char*)"NOT FOUND!";
63
      break;
63
      break;
64
  }
64
  }
65
  //this line is never reached but it is here to support compiling under gcc 4.0.4
66
  return 0;
65
}
67
}
66
68
67
void
69
void
(-)a/src/applications/UdpClientServer/udpServer.cc (-2 / +1 lines)
 Lines 101-111    Link Here 
101
      {
101
      {
102
        if (InetSocketAddress::IsMatchingType(from))
102
        if (InetSocketAddress::IsMatchingType(from))
103
          {
103
          {
104
            uint32_t * sequence_number = (uint32_t *) (packet->PeekData());
105
            InetSocketAddress address = InetSocketAddress::ConvertFrom(from);
104
            InetSocketAddress address = InetSocketAddress::ConvertFrom(from);
106
            NS_LOG_INFO("Received " << packet->GetSize() << " bytes from "
105
            NS_LOG_INFO("Received " << packet->GetSize() << " bytes from "
107
                << address.GetIpv4() << " Sequence Number: "
106
                << address.GetIpv4() << " Sequence Number: "
108
                << *sequence_number << std::endl);
107
                << (uint32_t *) (packet->PeekData()) << std::endl);
109
            packet->RemoveAllPacketTags();
108
            packet->RemoveAllPacketTags();
110
            packet->RemoveAllByteTags();
109
            packet->RemoveAllByteTags();
111
          }
110
          }
(-)a/src/devices/wimax/IPCS_BS_Packet_classifier.cc (-2 / +2 lines)
 Lines 188-195    Link Here 
188
    Ipv4Header IPV4_Header;
188
    Ipv4Header IPV4_Header;
189
    UdpHeader UDP_Header;
189
    UdpHeader UDP_Header;
190
    TcpHeader TCP_Header;
190
    TcpHeader TCP_Header;
191
    uint16_t source_port;
191
    uint16_t source_port = 0;
192
    uint16_t dest_port;
192
    uint16_t dest_port = 0;
193
    SSRecord *my_ssRecord;
193
    SSRecord *my_ssRecord;
194
    SSRecord *ssRecord;
194
    SSRecord *ssRecord;
195
    Mac48Address destMac;
195
    Mac48Address destMac;
(-)a/src/devices/wimax/IPCS_SS_Packet_classifier.cc (-2 / +2 lines)
 Lines 68-75    Link Here 
68
    Ipv4Header IPV4_Header;
68
    Ipv4Header IPV4_Header;
69
    UdpHeader UDP_Header;
69
    UdpHeader UDP_Header;
70
    TcpHeader TCP_Header;
70
    TcpHeader TCP_Header;
71
    uint16_t source_port;
71
    uint16_t source_port = 0;
72
    uint16_t dest_port;
72
    uint16_t dest_port = 0;
73
    std::cout << "\tIPCS-Packet-Classifier: " << std::endl;
73
    std::cout << "\tIPCS-Packet-Classifier: " << std::endl;
74
    std::cout << "\t\tRetrieving parameters from packet:" << std::endl;
74
    std::cout << "\t\tRetrieving parameters from packet:" << std::endl;
75
    Ptr<Packet> C_Packet = packet->Copy();
75
    Ptr<Packet> C_Packet = packet->Copy();
(-)a/src/devices/wimax/bs-link-manager.cc (-6 / +4 lines)
129
        rngrsp.SetInitRangOppNumber(m_bs->GetRangingOppNumber());
129
        rngrsp.SetInitRangOppNumber(m_bs->GetRangingOppNumber());
130
130
131
        //not needed actually, m_rangingOppNumber serves the purpose. will not be an integer due to transmission delay
131
        //not needed actually, m_rangingOppNumber serves the purpose. will not be an integer due to transmission delay
132
        double curRangingOpp = ((Simulator::Now()
132
        NS_ASSERT(m_bs->GetRangingOppNumber() == (uint8_t)(((Simulator::Now()
133
            - m_bs->GetUlSubframeStartTime()).GetSeconds()
133
        - m_bs->GetUlSubframeStartTime()).GetSeconds()
134
            / (m_bs->GetRangReqOppSize()
134
        / (m_bs->GetRangReqOppSize()
135
                * m_bs->GetSymbolDuration().GetSeconds())) + 1;
135
            * m_bs->GetSymbolDuration().GetSeconds())) + 1));//temp
136
        uint8_t curRangingOppNumber = (uint8_t) curRangingOpp;
137
        NS_ASSERT(m_bs->GetRangingOppNumber() == curRangingOppNumber);//temp
138
136
139
        SetParametersToAdjust(&rngrsp);
137
        SetParametersToAdjust(&rngrsp);
140
        rngrsp.SetRangStatus(WimaxNetDevice::RANGING_STATUS_CONTINUE); //see Figure 64
138
        rngrsp.SetRangStatus(WimaxNetDevice::RANGING_STATUS_CONTINUE); //see Figure 64
(-)a/src/devices/wimax/connection-identifier-factory.cc (-1 / +1 lines)
 Lines 69-75    Link Here 
69
  WimaxConnection::ConnectionType
69
  WimaxConnection::ConnectionType
70
  ConnectionIdentifierFactory::GetCidType(Ptr<const ConnectionIdentifier> cid) const
70
  ConnectionIdentifierFactory::GetCidType(Ptr<const ConnectionIdentifier> cid) const
71
  {
71
  {
72
    WimaxConnection::ConnectionType type;
72
    WimaxConnection::ConnectionType type = WimaxConnection::CONNECTION_TYPE_UNINITIALIZED;//initialize the variable for compiling in optimized mode
73
    uint16_t identifier = cid->GetIdentifier();
73
    uint16_t identifier = cid->GetIdentifier();
74
74
75
    if (identifier == ConnectionIdentifier::CID_INITIAL_RANGING)
75
    if (identifier == ConnectionIdentifier::CID_INITIAL_RANGING)
(-)a/src/devices/wimax/ofdm-wimax-phy.cc (-1 / +1 lines)
 Lines 504-510    Link Here 
504
  uint32_t
504
  uint32_t
505
  OfdmWimaxPhy::GetFecBlockSize(WimaxPhy::ModulationType modulationType) const
505
  OfdmWimaxPhy::GetFecBlockSize(WimaxPhy::ModulationType modulationType) const
506
  {
506
  {
507
    uint32_t blockSize;
507
    uint32_t blockSize = 0;
508
    switch (modulationType)
508
    switch (modulationType)
509
      {
509
      {
510
    case MODULATION_TYPE_BPSK_12:
510
    case MODULATION_TYPE_BPSK_12:
(-)a/src/devices/wimax/qos-parameter-set.h (+1 lines)
 Lines 22-27    Link Here 
22
#define QOS_PARAMETER_SET_H
22
#define QOS_PARAMETER_SET_H
23
23
24
#include <stdint.h>
24
#include <stdint.h>
25
#include <iostream>
25
#include "ns3/buffer.h"
26
#include "ns3/buffer.h"
26
27
27
namespace ns3
28
namespace ns3
(-)a/src/devices/wimax/simpleOfdmWimaxPhy.cc (-1 / +1 lines)
 Lines 823-829    Link Here 
823
  uint32_t
823
  uint32_t
824
  simpleOfdmWimaxPhy::GetFecBlockSize(WimaxPhy::ModulationType modulationType) const
824
  simpleOfdmWimaxPhy::GetFecBlockSize(WimaxPhy::ModulationType modulationType) const
825
  {
825
  {
826
    uint32_t blockSize;
826
    uint32_t blockSize = 0;
827
    switch (modulationType)
827
    switch (modulationType)
828
      {
828
      {
829
    case MODULATION_TYPE_BPSK_12:
829
    case MODULATION_TYPE_BPSK_12:
(-)a/src/devices/wimax/wimax-bs-net-device.cc (-1 / +1 lines)
 Lines 424-430    Link Here 
424
      uint16_t protocolNumber)
424
      uint16_t protocolNumber)
425
  {
425
  {
426
    Ptr<PacketBurst> burst = Create<PacketBurst> ();
426
    Ptr<PacketBurst> burst = Create<PacketBurst> ();
427
    ServiceFlow *serviceFlow;
427
    ServiceFlow *serviceFlow = 0;
428
428
429
    //drop packet if no SS registered with BS, the destination SS is not yet registered or if queue is full
429
    //drop packet if no SS registered with BS, the destination SS is not yet registered or if queue is full
430
430
(-)a/src/devices/wimax/wimax-ofdm-phy/packetCreator.cpp (-1 / +1 lines)
 Lines 44-50    Link Here 
44
bool PacketCreator::nextPacket(bvec& output){
44
bool PacketCreator::nextPacket(bvec& output){
45
/// method to extract the next packet from the file. Successive calls of this method will result in different packets.
45
/// method to extract the next packet from the file. Successive calls of this method will result in different packets.
46
/// return value will be 0 if there are no more packets in the file.
46
/// return value will be 0 if there are no more packets in the file.
47
int cicleEnd; 
47
int cicleEnd = 0; 
48
bool isValid;
48
bool isValid;
49
49
50
if (bytesLeftToRead >= packetSizeBytes){ // there are more bytes left in the file than the packet size
50
if (bytesLeftToRead >= packetSizeBytes){ // there are more bytes left in the file than the packet size

Return to bug 633