Example from http://www.secdev.org/projects/scapy/build_your_own_tools.html that reads packets.