LEFT | RIGHT |
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 Adrian Sai-wah Tam | 3 * Copyright (c) 2011 Adrian Sai-wah Tam |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 { | 54 { |
55 // Remember to extend IsKindKnown() with new value, when adding values here | 55 // Remember to extend IsKindKnown() with new value, when adding values here |
56 // | 56 // |
57 END = 0, //!< END | 57 END = 0, //!< END |
58 NOP = 1, //!< NOP | 58 NOP = 1, //!< NOP |
59 MSS = 2, //!< MSS | 59 MSS = 2, //!< MSS |
60 WINSCALE = 3, //!< WINSCALE | 60 WINSCALE = 3, //!< WINSCALE |
61 SACKPERMITTED = 4, //!< SACKPERMITTED | 61 SACKPERMITTED = 4, //!< SACKPERMITTED |
62 SACK = 5, //!< SACK | 62 SACK = 5, //!< SACK |
63 TS = 8, //!< TS | 63 TS = 8, //!< TS |
64 MPTCP = 30, //! Multipath TCP options share the same Kind | 64 MPTCP = 30, //!< Multipath TCP options share the same Kind |
65 UNKNOWN = 255 //!< not a standardized value; for unknown recv'
d options | 65 UNKNOWN = 255 //!< not a standardized value; for unknown recv'
d options |
66 }; | 66 }; |
67 | 67 |
68 /** | 68 /** |
69 * \brief Print the Option contents | 69 * \brief Print the Option contents |
70 * \param os the output stream | 70 * \param os the output stream |
71 */ | 71 */ |
72 virtual void Print (std::ostream &os) const = 0; | 72 virtual void Print (std::ostream &os) const = 0; |
73 /** | 73 /** |
74 * \brief Serialize the Option to a buffer iterator | 74 * \brief Serialize the Option to a buffer iterator |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 private: | 143 private: |
144 uint8_t m_kind; //!< The unknown option kind | 144 uint8_t m_kind; //!< The unknown option kind |
145 uint32_t m_size; //!< The unknown option size | 145 uint32_t m_size; //!< The unknown option size |
146 uint8_t m_content[40]; //!< The option data | 146 uint8_t m_content[40]; //!< The option data |
147 | 147 |
148 }; | 148 }; |
149 | 149 |
150 } // namespace ns3 | 150 } // namespace ns3 |
151 | 151 |
152 #endif /* TCP_OPTION */ | 152 #endif /* TCP_OPTION */ |
LEFT | RIGHT |