Hi,
A one-way TCP does not use field ackno_. Instead, the TCP Sink creates an ACK packet by placing ACKNO in the field seqno_ of the ACK packet. So you just need to print out field seqno_ but you have to make sure that the corresponding packet is an ACK number. Cheers, Teerawat On 9/4/2007, "Sebastian Harko" <[EMAIL PROTECTED]> wrote: > >Hello, >I want to print the "acknowledgment number" of every ACK in the terminal... >So I went to tcp.cc ( "newack" method ) and I did this: > > cout << "ACK number is: " << tcph->ackno_ << endl; > >but all the ACK numbers it prints for a simple simulation are equal to >zero... >note that i was able to print the correct sequence numbers using the exact >same approach. >what am i doing wrong ? > >regards >
