How would I continually grab the packet count for a rule in ipchians from a C program? Like, I'm only interested in how many packets have went out my MASQ Rule (actually SNAT, but you get the idea). The program will constantly poll this so I'd like to do it in the least overhead way (i.e., I really hate to have to execute iptables command line in a full shell constantly). Thanks.
