OLD | NEW |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 CTTC | 3 * Copyright (c) 2011 CTTC |
4 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari | 4 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 ipv4Header.GetDestination ().Get (), | 185 ipv4Header.GetDestination ().Get (), |
186 protocol, | 186 protocol, |
187 ipv4Header.GetIdentification ()); | 187 ipv4Header.GetIdentification ()); |
188 | 188 |
189 std::map< std::tuple<uint32_t, uint32_t, uint8_t, uint16_t>, | 189 std::map< std::tuple<uint32_t, uint32_t, uint8_t, uint16_t>, |
190 std::pair<uint32_t, uint32_t> >::iterator it = | 190 std::pair<uint32_t, uint32_t> >::iterator it = |
191 m_classifiedIpv4Fragments.find (fragmentKey); | 191 m_classifiedIpv4Fragments.find (fragmentKey); |
192 | 192 |
193 if (it != m_classifiedIpv4Fragments.end ()) | 193 if (it != m_classifiedIpv4Fragments.end ()) |
194 { | 194 { |
195 localPort = it->second.first; | 195 localPort = static_cast<uint16_t> (it->second.first); |
196 remotePort = it->second.second; | 196 remotePort = static_cast<uint16_t> (it->second.second); |
197 | 197 |
198 if (isLastFragment) | 198 if (isLastFragment) |
199 { | 199 { |
200 m_classifiedIpv4Fragments.erase (fragmentKey); | 200 m_classifiedIpv4Fragments.erase (fragmentKey); |
201 } | 201 } |
202 } | 202 } |
203 } | 203 } |
204 } | 204 } |
205 else if (ipType == 0x06) | 205 else if (ipType == 0x06) |
206 { | 206 { |
207 Ipv6Header ipv6Header; | 207 Ipv6Header ipv6Header; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 return it->first; // the id of the matching TFT | 314 return it->first; // the id of the matching TFT |
315 } | 315 } |
316 } | 316 } |
317 } | 317 } |
318 NS_LOG_LOGIC ("no match"); | 318 NS_LOG_LOGIC ("no match"); |
319 return 0; // no match | 319 return 0; // no match |
320 } | 320 } |
321 | 321 |
322 | 322 |
323 } // namespace ns3 | 323 } // namespace ns3 |
OLD | NEW |