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

Fixed TCP checksum. Documented pdu.h.

This commit is contained in:
Matias
2011-08-12 20:17:21 -03:00
parent d59cec94b6
commit 2cdf0f6b29
7 changed files with 124 additions and 34 deletions

View File

@@ -77,6 +77,7 @@ bool Tins::PacketSender::send_l3(PDU *pdu, const struct sockaddr* link_addr, uin
int sock = _sockets[IP_SOCKET];
uint8_t *buffer = pdu->serialize(sz);
ret_val = (sendto(sock, buffer, sz, 0, link_addr, len_link_addr) != -1);
std::cout << "Ret_val: " << ret_val << "\n";
delete[] buffer;
}