ns-allinone-2.35/pushback/rate-limit-strategy.cc
double
PacketTypeLog::mapTypeToShare(int type) {
  switch (type) {
  case PT_PING: return 1.0;
  case PT_UDP: return 1.0;
  case PT_CBR: return 1.0;
  default: return 1;
  }
}
//returning 1.0 means don't limit traffic of that type.
returning 1.0 means don't limit traffic of that type.
returning 1 . 0 means don ' t limit traffic of that type .
double
PacketTypeLog::mapTypeToShare(int type) {
  switch (type) {
  case PT_PING: return 1.0;
  case PT_UDP: return 1.0;
  case PT_CBR: return 1.0;
  default: return 1;
  }
}
double PacketTypeLog :: mapTypeToShare ( int type ) { switch ( type ) { case PT_PING : return 1.0 ; case PT_UDP : return 1.0 ; case PT_CBR : return 1.0 ; default : return 1 ; } }
returning 1.0 means don't limit traffic of that type.
returning 1 . 0 means don ' t limit traffic of that type .