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) 2016 Universita' di Firenze, Italy | 3 * Copyright (c) 2016 Universita' di Firenze, Italy |
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 /** | 188 /** |
189 * \brief Deserialize the packet. | 189 * \brief Deserialize the packet. |
190 * \param start Buffer iterator | 190 * \param start Buffer iterator |
191 * \return size of the packet | 191 * \return size of the packet |
192 */ | 192 */ |
193 virtual uint32_t Deserialize (Buffer::Iterator start); | 193 virtual uint32_t Deserialize (Buffer::Iterator start); |
194 | 194 |
195 /** | 195 /** |
196 * Commands to be used in Rip headers | 196 * Commands to be used in Rip headers |
197 */ | 197 */ |
198 enum Command_e | 198 enum Command_e : uint8_t |
199 { | 199 { |
200 REQUEST = 0x1, | 200 REQUEST = 0x1, |
201 RESPONSE = 0x2, | 201 RESPONSE = 0x2, |
202 }; | 202 }; |
203 | 203 |
204 /** | 204 /** |
205 * \brief Set the command | 205 * \brief Set the command |
206 * \param command the command | 206 * \param command the command |
207 */ | 207 */ |
208 void SetCommand (Command_e command); | 208 void SetCommand (Command_e command); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 * \param os the reference to the output stream | 247 * \param os the reference to the output stream |
248 * \param h the Rip header | 248 * \param h the Rip header |
249 * \returns the reference to the output stream | 249 * \returns the reference to the output stream |
250 */ | 250 */ |
251 std::ostream & operator << (std::ostream & os, const RipHeader & h); | 251 std::ostream & operator << (std::ostream & os, const RipHeader & h); |
252 | 252 |
253 } | 253 } |
254 | 254 |
255 #endif /* Rip_HEADER_H */ | 255 #endif /* Rip_HEADER_H */ |
256 | 256 |
OLD | NEW |