LEFT | RIGHT |
(no file at all) | |
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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 virtual TypeId GetInstanceTypeId () const; | 1197 virtual TypeId GetInstanceTypeId () const; |
1198 /** | 1198 /** |
1199 * \brief Constructor. | 1199 * \brief Constructor. |
1200 */ | 1200 */ |
1201 DsrOptionAckReqHeader (); | 1201 DsrOptionAckReqHeader (); |
1202 /** | 1202 /** |
1203 * \brief Destructor. | 1203 * \brief Destructor. |
1204 */ | 1204 */ |
1205 virtual ~DsrOptionAckReqHeader (); | 1205 virtual ~DsrOptionAckReqHeader (); |
1206 /** | 1206 /** |
1207 * \brief Set the request id number. | 1207 * \brief Set the Ack request id number. |
1208 * \param the identification number | 1208 * \param the identification number |
1209 */ | 1209 */ |
1210 void SetId (uint16_t identification); | 1210 void SetAckId (uint16_t identification); |
1211 /** | 1211 /** |
1212 * \brief Set the request id number. | 1212 * \brief Set the Ack request id number. |
1213 * \return request id number | 1213 * \return request id number |
1214 */ | 1214 */ |
1215 uint16_t GetId () const; | 1215 uint16_t GetAckId () const; |
1216 /** | 1216 /** |
1217 * \brief Print some informations about the packet. | 1217 * \brief Print some informations about the packet. |
1218 * \param os output stream | 1218 * \param os output stream |
1219 * \return info about this packet | 1219 * \return info about this packet |
1220 */ | 1220 */ |
1221 virtual void Print (std::ostream &os) const; | 1221 virtual void Print (std::ostream &os) const; |
1222 /** | 1222 /** |
1223 * \brief Get the serialized size of the packet. | 1223 * \brief Get the serialized size of the packet. |
1224 * \return size | 1224 * \return size |
1225 */ | 1225 */ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 virtual TypeId GetInstanceTypeId () const; | 1288 virtual TypeId GetInstanceTypeId () const; |
1289 /** | 1289 /** |
1290 * \brief Constructor. | 1290 * \brief Constructor. |
1291 */ | 1291 */ |
1292 DsrOptionAckHeader (); | 1292 DsrOptionAckHeader (); |
1293 /** | 1293 /** |
1294 * \brief Destructor. | 1294 * \brief Destructor. |
1295 */ | 1295 */ |
1296 virtual ~DsrOptionAckHeader (); | 1296 virtual ~DsrOptionAckHeader (); |
1297 /** | 1297 /** |
1298 * \brief Set the request id number. | 1298 * \brief Set the Ack id number. |
1299 * \param the identification number | 1299 * \param the identification number |
1300 */ | 1300 */ |
1301 void SetId (uint16_t identification); | 1301 void SetAckId (uint16_t identification); |
1302 /** | 1302 /** |
1303 * \brief Set the request id number. | 1303 * \brief Set the Ack id number. |
1304 * \return request id number | 1304 * \return request id number |
1305 */ | 1305 */ |
1306 uint16_t GetId () const; | 1306 uint16_t GetAckId () const; |
1307 /** | 1307 /** |
1308 * \brief Set Error source ip address. | 1308 * \brief Set Error source ip address. |
1309 * \param The real source address | 1309 * \param The real source address |
1310 */ | 1310 */ |
1311 void SetRealSrc (Ipv4Address realSrcAddress); | 1311 void SetRealSrc (Ipv4Address realSrcAddress); |
1312 /** | 1312 /** |
1313 * \brief Get Error source ip address. | 1313 * \brief Get Error source ip address. |
1314 * \return The real source address | 1314 * \return The real source address |
1315 */ | 1315 */ |
1316 Ipv4Address GetRealSrc () const; | 1316 Ipv4Address GetRealSrc () const; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 static inline std::ostream & operator<< (std::ostream& os, const DsrOptionSRHead
er & sr) | 1374 static inline std::ostream & operator<< (std::ostream& os, const DsrOptionSRHead
er & sr) |
1375 { | 1375 { |
1376 sr.Print (os); | 1376 sr.Print (os); |
1377 return os; | 1377 return os; |
1378 } | 1378 } |
1379 | 1379 |
1380 } // namespace dsr | 1380 } // namespace dsr |
1381 } // namespace ns3 | 1381 } // namespace ns3 |
1382 | 1382 |
1383 #endif /* DSR_OPTION_HEADER_H */ | 1383 #endif /* DSR_OPTION_HEADER_H */ |
LEFT | RIGHT |