[ns] printing the ackno

Sebastian Harko sebastian.harko at gmail.com
Tue Sep 4 10:52:07 PDT 2007


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


More information about the Ns-users mailing list