LEFT | RIGHT |
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) 2008,2009 IITP RAS | 3 * Copyright (c) 2008,2009 IITP RAS |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 } | 283 } |
284 new_element->SetFlags (doFlag, rfFlag, usnFlag); | 284 new_element->SetFlags (doFlag, rfFlag, usnFlag); |
285 Mac48Address addr; | 285 Mac48Address addr; |
286 ReadFrom (i, addr); | 286 ReadFrom (i, addr); |
287 new_element->SetDestinationAddress (addr); | 287 new_element->SetDestinationAddress (addr); |
288 new_element->SetDestSeqNumber (i.ReadLsbtohU32 ()); | 288 new_element->SetDestSeqNumber (i.ReadLsbtohU32 ()); |
289 m_destinations.push_back (new_element); | 289 m_destinations.push_back (new_element); |
290 NS_ASSERT (28 + j * 11 < length); | 290 NS_ASSERT (28 + j * 11 < length); |
291 (void)length; // make compiler happy | 291 (void)length; // make compiler happy |
292 } | 292 } |
293 return static_cast<uint8_t>(i.GetDistanceFrom (start)); | 293 return static_cast<uint8_t> (i.GetDistanceFrom (start)); |
294 } | 294 } |
295 uint8_t | 295 uint8_t |
296 IePreq::GetInformationFieldSize () const | 296 IePreq::GetInformationFieldSize () const |
297 { | 297 { |
298 uint8_t retval = 1 //Flags | 298 uint8_t retval = 1 //Flags |
299 + 1 //Hopcount | 299 + 1 //Hopcount |
300 + 1 //TTL | 300 + 1 //TTL |
301 + 4 //PREQ ID | 301 + 4 //PREQ ID |
302 + 6 //Source address (originator) | 302 + 6 //Source address (originator) |
303 + 4 //Originator seqno | 303 + 4 //Originator seqno |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 } | 438 } |
439 std::ostream & | 439 std::ostream & |
440 operator << (std::ostream &os, const IePreq &a) | 440 operator << (std::ostream &os, const IePreq &a) |
441 { | 441 { |
442 a.Print (os); | 442 a.Print (os); |
443 return os; | 443 return os; |
444 } | 444 } |
445 } // namespace dot11s | 445 } // namespace dot11s |
446 } // namespace ns3 | 446 } // namespace ns3 |
447 | 447 |
LEFT | RIGHT |