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

(-)a/src/internet/model/ipv4-packet-filter.cc (-1 / +5 lines)
 Lines 98-104    Link Here 
98
  NS_LOG_FUNCTION (this << item);
98
  NS_LOG_FUNCTION (this << item);
99
  Ptr<Ipv4QueueDiscItem> ipv4Item = DynamicCast<Ipv4QueueDiscItem> (item);
99
  Ptr<Ipv4QueueDiscItem> ipv4Item = DynamicCast<Ipv4QueueDiscItem> (item);
100
100
101
  NS_ASSERT (ipv4Item != 0);
101
  if (!ipv4Item)
102
    {
103
      NS_LOG_DEBUG ("No match");
104
      return PacketFilter::PF_NO_MATCH;
105
    }
102
106
103
  Ipv4Header hdr = ipv4Item->GetHeader ();
107
  Ipv4Header hdr = ipv4Item->GetHeader ();
104
  Ipv4Address src = hdr.GetSource ();
108
  Ipv4Address src = hdr.GetSource ();
(-)a/src/internet/model/ipv6-packet-filter.cc (-1 / +5 lines)
 Lines 98-104    Link Here 
98
  NS_LOG_FUNCTION (this << item);
98
  NS_LOG_FUNCTION (this << item);
99
  Ptr<Ipv6QueueDiscItem> ipv6Item = DynamicCast<Ipv6QueueDiscItem> (item);
99
  Ptr<Ipv6QueueDiscItem> ipv6Item = DynamicCast<Ipv6QueueDiscItem> (item);
100
100
101
  NS_ASSERT (ipv6Item != 0);
101
  if (!ipv6Item)
102
    {
103
      NS_LOG_DEBUG ("No match");
104
      return PacketFilter::PF_NO_MATCH;
105
    }
102
106
103
  Ipv6Header hdr = ipv6Item->GetHeader ();
107
  Ipv6Header hdr = ipv6Item->GetHeader ();
104
  Ipv6Address src = hdr.GetSourceAddress ();
108
  Ipv6Address src = hdr.GetSourceAddress ();
(-)a/src/traffic-control/model/fq-codel-queue-disc.cc (-5 / +7 lines)
 Lines 157-171    Link Here 
157
  NS_LOG_FUNCTION (this << item);
157
  NS_LOG_FUNCTION (this << item);
158
158
159
  int32_t ret = Classify (item);
159
  int32_t ret = Classify (item);
160
  uint32_t h;
160
161
161
  if (ret == PacketFilter::PF_NO_MATCH)
162
  if (ret == PacketFilter::PF_NO_MATCH)
162
    {
163
    {
163
      NS_LOG_ERROR ("No filter has been able to classify this packet, drop it.");
164
      NS_LOG_WARN ("No filter has been able to classify this packet.");
164
      DropBeforeEnqueue (item, UNCLASSIFIED_DROP);
165
      h = m_flows; // place all unfiltered packets into a separate flow queue
165
      return false;
166
    }
166
    }
167
167
  else
168
  uint32_t h = ret % m_flows;
168
    {
169
      h = ret % m_flows;
170
    }
169
171
170
  Ptr<FqCoDelFlow> flow;
172
  Ptr<FqCoDelFlow> flow;
171
  if (m_flowsIndices.find (h) == m_flowsIndices.end ())
173
  if (m_flowsIndices.find (h) == m_flowsIndices.end ())

Return to bug 2819