--- /n/sources/plan9/sys/src/cmd/ip/snoopy/main.c Tue Sep 17 20:57:01 2013 +++ /sys/src/cmd/ip/snoopy/main.c Wed Dec 16 00:00:00 CET 2015 @@ -286,9 +286,10 @@ }; struct pcap_pkthdr { - uvlong ts; /* time stamp */ - ulong caplen; /* length of portion present */ - ulong len; /* length this packet (off wire) */ + ulong ts_sec; /* time stamp seconds */ + ulong ts_µsec; /* time stamp microseconds */ + ulong caplen; /* length of portion present */ + ulong len; /* length this packet (off wire) */ }; /* @@ -323,7 +324,8 @@ len = Mflag; if(pcap){ goo = (struct pcap_pkthdr*)(ps-16); - goo->ts = pkttime; + goo->ts_sec = (uvlong)pkttime / 1000000000; + goo->ts_µsec = ((uvlong)pkttime % 1000000000) / 1000; goo->caplen = len; goo->len = len; write(1, goo, len+16);