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) 2007-2009 Strasbourg University | 3 * Copyright (c) 2007-2009 Strasbourg University |
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 /** | 218 /** |
219 * \brief Process method | 219 * \brief Process method |
220 * Called from Ipv6L3Protocol::Receive. | 220 * Called from Ipv6L3Protocol::Receive. |
221 * \param packet the packet | 221 * \param packet the packet |
222 * \param offset the offset of the extension to process | 222 * \param offset the offset of the extension to process |
223 * \param ipv6Header the IPv6 header of packet received | 223 * \param ipv6Header the IPv6 header of packet received |
224 * \param isDropped if the packet must be dropped | 224 * \param isDropped if the packet must be dropped |
225 * \return the processed size | 225 * \return the processed size |
226 */ | 226 */ |
227 virtual uint8_t Process (Ptr<Packet> packet, uint8_t offset, Ipv6Header const&
ipv6Header, bool& isDropped); | 227 virtual uint8_t Process (Ptr<Packet> packet, uint8_t offset, Ipv6Header const&
ipv6Header, bool& isDropped); |
228 | |
229 private: | |
230 /** | |
231 * \brief The length of the packet. | |
232 */ | |
233 uint32_t m_length; | |
234 }; | 228 }; |
235 | 229 |
236 /** | 230 /** |
237 * \class Ipv6OptionRouterAlert | 231 * \class Ipv6OptionRouterAlert |
238 * \brief IPv6 Option Router Alert | 232 * \brief IPv6 Option Router Alert |
239 */ | 233 */ |
240 class Ipv6OptionRouterAlert : public Ipv6Option | 234 class Ipv6OptionRouterAlert : public Ipv6Option |
241 { | 235 { |
242 public: | 236 public: |
243 /** | 237 /** |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 * \param isDropped if the packet must be dropped | 271 * \param isDropped if the packet must be dropped |
278 * \return the processed size | 272 * \return the processed size |
279 */ | 273 */ |
280 virtual uint8_t Process (Ptr<Packet> packet, uint8_t offset, Ipv6Header const&
ipv6Header, bool& isDropped); | 274 virtual uint8_t Process (Ptr<Packet> packet, uint8_t offset, Ipv6Header const&
ipv6Header, bool& isDropped); |
281 }; | 275 }; |
282 | 276 |
283 } /* namespace ns3 */ | 277 } /* namespace ns3 */ |
284 | 278 |
285 #endif /* IPV6_OPTION_H */ | 279 #endif /* IPV6_OPTION_H */ |
286 | 280 |
OLD | NEW |