3 Commits

Author SHA1 Message Date
David Anderson
9c43c0a5c9 Output pcap timestamps as UnixNano.
Stringifying ends up outputting them with a machine-dependent timezone,
and a numeric timestamp is easier to grok in a test like this anyway.
2016-03-24 17:37:34 -07:00
David Anderson
0cca8f4c85 Remove dependency on prettyprint library.
We only really use it to pretty-print pcap.Packet, and it was making
`go vet` angry. So we replaced it with a specialized pretty printer
instead. As a nice side-effect, it shows nicer timestamps now.
2016-03-24 17:26:45 -07:00
David Anderson
67755cdc83 Add a basic pcap reader.
Very basic, it only parses the pcap structure to pull out the packets,
nothing more.
2016-02-27 19:11:23 -08:00