Is pktno defined anywhere in python files(at transmitting end) other than
benchmark_tx.py??Actually i want to print number of packets transmitted.So,i
am looking for pktno.
-----
Manjusha
--
Line 139 of benchmark_tx.py contains the payload. It's the pktno packed as a short (2 bytes) followed by the pktno as a single byte repeated pkt_size - 2.
Are you trying to print the number of packets transmitted using benchmark_tx.py ? If so The packets are transmitted on line 140, so if you want to print pktno just print it there. The "while n < nbytes" loop will iterate once for every packet. You could replace line 142 to print pktno instead of ".".
-Nathan