fork from gopcapreader (http://code.google.com/p/gopcapreader/)