1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 04:11:35 +01:00

Created UDP PDU. Done some documentation on TCP.

This commit is contained in:
Matias F
2011-08-12 20:22:45 -03:00
parent d59cec94b6
commit 35c1a6e65d
5 changed files with 65 additions and 4 deletions

View File

@@ -126,8 +126,6 @@ void Tins::IP::set_option(uint8_t copied,
option.type.number = number;
uint8_t* buffer(0);
if (data_size) {
/* data must be a valid pointer */
assert(data);
buffer = new uint8_t[data_size];
memcpy(buffer, data, data_size);
}