|
|
| 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 ()) |