Also for node programmers there is https://github.com/mranney/node_pcap I remember doing some pcap C programming some years ago but node with its streaming nature and powerful js derived abstractions is just so much more satisfying to me, simply less boilerplate and tons of fun - don't fall too far down the well.. then again it's Saturday tomorrow! ;)
For those who want a functional(ish?) and strongly typed interface to tcpdump, hackage has the answer:
http://hackage.haskell.org/package/pcap-0.2/docs/Network-Pca...
Re:A tcpdump tutorial and primer
by lightblade on Sunday March 02, 2014 @01:27PM
(#7330112)
Which one came first? Tcpdump or pcap?
http://www.tcpdump.org/pcap.html
Lately I have been playing with a Go interface to it, https://github.com/miekg/pcap
Great tool, and lots of fun.