dpkt (python TCP/IP packet library)

fast, simple packet creation / parsing, with definitions for the
basic TCP/IP protocols.