Reputation: 1
an arm device, not has iptables, have a bussiness process, need to count all traffic bytes of this process.
my solution:
ls -lh /proc/pid/fd
/proc/net/tcp
cat /proc/net/nf_conntrack | grep port
if my collection frequency is 1 minute, i warry some connection info will be clear by system in 1 minute, that will reduce the accuracy of collection.
what i can do to ensure the accuracy of collection? help to give some advices, thanks a lot
Upvotes: 0
Views: 89