120 * \return the urgent pointer for this TcpHeader |
120 * \return the urgent pointer for this TcpHeader |
121 */ |
121 */ |
122 uint16_t GetUrgentPointer () const; |
122 uint16_t GetUrgentPointer () const; |
123 |
123 |
124 /** |
124 /** |
125 * \param source the ip source to use in the underlying |
125 * \brief Initialize the TCP checksum. |
126 * ip packet. |
|
127 * \param destination the ip destination to use in the |
|
128 * underlying ip packet. |
|
129 * \param protocol the protocol number to use in the underlying |
|
130 * ip packet. |
|
131 * |
126 * |
132 * If you want to use tcp checksums, you should call this |
127 * If you want to use tcp checksums, you should call this |
133 * method prior to adding the header to a packet. |
128 * method prior to adding the header to a packet. |
|
129 * |
|
130 * \param source the IP source to use in the underlying |
|
131 * IP packet. |
|
132 * \param destination the IP destination to use in the |
|
133 * underlying IP packet. |
|
134 * \param protocol the protocol number to use in the underlying |
|
135 * IP packet. |
|
136 * |
134 */ |
137 */ |
135 void InitializeChecksum (Ipv4Address source, |
138 void InitializeChecksum (Ipv4Address source, |
136 Ipv4Address destination, |
139 Ipv4Address destination, |
137 uint8_t protocol); |
140 uint8_t protocol); |
|
141 |
|
142 /** |
|
143 * \brief Initialize the TCP checksum. |
|
144 * |
|
145 * If you want to use tcp checksums, you should call this |
|
146 * method prior to adding the header to a packet. |
|
147 * |
|
148 * \param source the IP source to use in the underlying |
|
149 * IP packet. |
|
150 * \param destination the IP destination to use in the |
|
151 * underlying IP packet. |
|
152 * \param protocol the protocol number to use in the underlying |
|
153 * IP packet. |
|
154 * |
|
155 */ |
138 void InitializeChecksum (Ipv6Address source, |
156 void InitializeChecksum (Ipv6Address source, |
139 Ipv6Address destination, |
157 Ipv6Address destination, |
140 uint8_t protocol); |
158 uint8_t protocol); |
|
159 |
|
160 /** |
|
161 * \brief Initialize the TCP checksum. |
|
162 * |
|
163 * If you want to use tcp checksums, you should call this |
|
164 * method prior to adding the header to a packet. |
|
165 * |
|
166 * \param source the IP source to use in the underlying |
|
167 * IP packet. |
|
168 * \param destination the IP destination to use in the |
|
169 * underlying IP packet. |
|
170 * \param protocol the protocol number to use in the underlying |
|
171 * IP packet. |
|
172 * |
|
173 */ |
141 void InitializeChecksum (Address source, |
174 void InitializeChecksum (Address source, |
142 Address destination, |
175 Address destination, |
143 uint8_t protocol); |
176 uint8_t protocol); |
144 |
177 |
145 typedef enum { NONE = 0, FIN = 1, SYN = 2, RST = 4, PSH = 8, ACK = 16, |
178 typedef enum { NONE = 0, FIN = 1, SYN = 2, RST = 4, PSH = 8, ACK = 16, |