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 Yufei Cheng | 3 * Copyright (c) 2011 Yufei Cheng |
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 static TypeId GetTypeId (); | 206 static TypeId GetTypeId (); |
207 /** | 207 /** |
208 * \brief Get the instance type ID. | 208 * \brief Get the instance type ID. |
209 * \return instance type ID | 209 * \return instance type ID |
210 */ | 210 */ |
211 virtual TypeId GetInstanceTypeId () const; | 211 virtual TypeId GetInstanceTypeId () const; |
212 /** | 212 /** |
213 * \brief Constructor. | 213 * \brief Constructor. |
214 * \param pad Number of bytes to pad (>=2) | 214 * \param pad Number of bytes to pad (>=2) |
215 */ | 215 */ |
216 DsrOptionPadnHeader (uint32_t pad = 2); | 216 DsrOptionPadnHeader (uint8_t pad = 2); |
217 /** | 217 /** |
218 * \brief Destructor. | 218 * \brief Destructor. |
219 */ | 219 */ |
220 virtual ~DsrOptionPadnHeader (); | 220 virtual ~DsrOptionPadnHeader (); |
221 /** | 221 /** |
222 * \brief Print some informations about the packet. | 222 * \brief Print some informations about the packet. |
223 * \param os output stream | 223 * \param os output stream |
224 * \return info about this packet | 224 * \return info about this packet |
225 */ | 225 */ |
226 virtual void Print (std::ostream &os) const; | 226 virtual void Print (std::ostream &os) const; |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 static inline std::ostream & operator<< (std::ostream& os, const DsrOptionSRHead
er & sr) | 1347 static inline std::ostream & operator<< (std::ostream& os, const DsrOptionSRHead
er & sr) |
1348 { | 1348 { |
1349 sr.Print (os); | 1349 sr.Print (os); |
1350 return os; | 1350 return os; |
1351 } | 1351 } |
1352 | 1352 |
1353 } // namespace dsr | 1353 } // namespace dsr |
1354 } // namespace ns3 | 1354 } // namespace ns3 |
1355 | 1355 |
1356 #endif /* DSR_OPTION_HEADER_H */ | 1356 #endif /* DSR_OPTION_HEADER_H */ |
OLD | NEW |