1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 12:14:26 +01:00

Optimized TCP, IP and PDUOption<>.

This commit is contained in:
Matias Fontanini
2013-03-23 13:44:33 -03:00
parent 16a99ef35b
commit 584fe81f04
4 changed files with 11 additions and 12 deletions

View File

@@ -264,7 +264,8 @@ void TCP::set_flag(Flags tcp_flag, small_uint<1> value) {
void TCP::add_option(Option option, uint8_t length, const uint8_t *data) {
uint8_t padding;
_options.push_back(tcp_option(option, length, data));
//_options.push_back(tcp_option(option, length, data));
_options.push_back(tcp_option(option, data, data + length));
_options_size += sizeof(uint8_t);
// SACK_OK contains length but not data....