On Fri, Apr 18, 2014 at 06:27:27PM -0400, Joshua Robinson wrote: > How do I count the number of DNS packets send, please help with small C > code ? checkout netfilter.org tcpdump is also something to look at these both use C and the source code is available for download