This commit is contained in:
Andrea Bontempi 2015-02-20 22:32:37 +01:00
parent af0b60da8c
commit 1e5bf70df4
2 changed files with 4 additions and 2 deletions

View file

@ -121,7 +121,7 @@ bool network::TcpStream::addPacket ( std::shared_ptr<network::TCPv4packet> newPa
if ( iter != ackExpBuffer[a].end() ) {
( *iter ).second->public_flag == true;
( *iter ).second->public_flag = true;
uint32_t ackExpToFind = ( *iter ).second->getSequenceNumber();
@ -258,6 +258,8 @@ uint64_t network::TcpStream::getSecondBufferLength() {
bufferlenght += ( *it ).second->getPayloadLength();
}
return bufferlenght;
}

View file

@ -115,7 +115,7 @@ void printLine(win_size winxy, int countLine, int maxttl, std::list<device>::ite
if (head = (char*) malloc(winxy.cols * sizeof ( char))) {
int ttl = maxttl - (time(NULL) - epoch);
snprintf(head, winxy.cols, " %s | %s | %d | %d", mac.c_str(), ip.c_str(), epoch, ttl);
snprintf(head, winxy.cols, " %s | %s | %ld | %d", mac.c_str(), ip.c_str(), epoch, ttl);
ind2 = strlen(head);