I use the simple netstat command "netstat -nltp" which shows me all active TCP connections along with the PID and process name. However even after playing around with parameters, I am unabe to get an important information from the command.
That is:
I want to see the number of packets received and sent from/to this PID I learnt that Recv-Q and Send-Q are not indicative of this. Also, the statistics parameter seems to sum up for all processes. How can I see the packets received and sent to a PID?
Thanks