|
|
| 47 |
TcpHeader (); |
47 |
TcpHeader (); |
| 48 |
virtual ~TcpHeader (); |
48 |
virtual ~TcpHeader (); |
| 49 |
|
49 |
|
|
|
50 |
typedef std::list< Ptr<TcpOption> > TcpOptionList; //!< List of TcpOption |
| 51 |
|
| 50 |
/** |
52 |
/** |
| 51 |
* \brief Print a TCP header into an output stream |
53 |
* \brief Print a TCP header into an output stream |
| 52 |
* |
54 |
* |
|
|
| 186 |
Ptr<TcpOption> GetOption (uint8_t kind) const; |
188 |
Ptr<TcpOption> GetOption (uint8_t kind) const; |
| 187 |
|
189 |
|
| 188 |
/** |
190 |
/** |
|
|
191 |
* \brief Get the list of option in this header |
| 192 |
* \return a const reference to the option list |
| 193 |
*/ |
| 194 |
const TcpOptionList& GetOptionList (void) const; |
| 195 |
|
| 196 |
/** |
| 189 |
* \brief Get the total length of appended options |
197 |
* \brief Get the total length of appended options |
| 190 |
* \return the total length of options appended to this TcpHeader |
198 |
* \return the total length of options appended to this TcpHeader |
| 191 |
*/ |
199 |
*/ |
|
|
| 341 |
bool m_goodChecksum; //!< Flag to indicate that checksum is correct |
349 |
bool m_goodChecksum; //!< Flag to indicate that checksum is correct |
| 342 |
|
350 |
|
| 343 |
static const uint8_t m_maxOptionsLen = 40; //!< Maximum options length |
351 |
static const uint8_t m_maxOptionsLen = 40; //!< Maximum options length |
| 344 |
typedef std::list< Ptr<TcpOption> > TcpOptionList; //!< List of TcpOption |
|
|
| 345 |
TcpOptionList m_options; //!< TcpOption present in the header |
352 |
TcpOptionList m_options; //!< TcpOption present in the header |
| 346 |
uint8_t m_optionsLen; //!< Tcp options length. |
353 |
uint8_t m_optionsLen; //!< Tcp options length. |
| 347 |
}; |
354 |
}; |