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) 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 /** | 200 /** |
201 * \brief Calculate pseudo header checksum for IPv6. | 201 * \brief Calculate pseudo header checksum for IPv6. |
202 * \param src source address | 202 * \param src source address |
203 * \param dst destination address | 203 * \param dst destination address |
204 * \param length length | 204 * \param length length |
205 * \param protocol the protocol number to use in the | 205 * \param protocol the protocol number to use in the |
206 * underlying IPv6 packet. | 206 * underlying IPv6 packet. |
207 */ | 207 */ |
208 void CalculatePseudoHeaderChecksum (Ipv6Address src, Ipv6Address dst, uint16_t
length, uint8_t protocol); | 208 void CalculatePseudoHeaderChecksum (Ipv6Address src, Ipv6Address dst, uint16_t
length, uint8_t protocol); |
209 | 209 |
| 210 /** |
| 211 * \brief Calculate pseudo header checksum for IPv6. |
| 212 * \param src source address |
| 213 * \param dst destination address |
| 214 * \param length length |
| 215 * \param protocol the protocol number to use in the |
| 216 * underlying IPv6 packet. |
| 217 */ |
| 218 void CalculatePseudoHeaderChecksum(Ipv6Address src, Ipv6Address dst, uint32_t
length, uint8_t protocol); |
| 219 |
210 protected: | 220 protected: |
211 /** | 221 /** |
212 * \brief Checksum enable or not. | 222 * \brief Checksum enable or not. |
213 */ | 223 */ |
214 bool m_calcChecksum; | 224 bool m_calcChecksum; |
215 | 225 |
216 /** | 226 /** |
217 * \brief The checksum. | 227 * \brief The checksum. |
218 */ | 228 */ |
219 uint16_t m_checksum;· | 229 uint16_t m_checksum;· |
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1787 /** | 1797 /** |
1788 * \brief The redirected packet. | 1798 * \brief The redirected packet. |
1789 */ | 1799 */ |
1790 Ptr<Packet> m_packet; | 1800 Ptr<Packet> m_packet; |
1791 }; | 1801 }; |
1792 | 1802 |
1793 } /* namespace ns3 */ | 1803 } /* namespace ns3 */ |
1794 | 1804 |
1795 #endif /* ICMPV6_HEADER_H */ | 1805 #endif /* ICMPV6_HEADER_H */ |
1796 | 1806 |
LEFT | RIGHT |