--- libpcap-0.3.orig/pcap-linux.c Wed Dec 11 08:15:00 1996 +++ libpcap-0.3/pcap-linux.c Tue Aug 11 15:57:00 1998 @@ -117,11 +117,8 @@ ++p->md.stat.ps_recv; /* Get timestamp */ - if (ioctl(p->fd, SIOCGSTAMP, &h.ts) < 0) { - sprintf(p->errbuf, "SIOCGSTAMP: %s", - pcap_strerror(errno)); - return (-1); - } + (void)gettimeofday(&h.ts, NULL); + h.len = cc; h.caplen = caplen; (*callback)(user, &h, bp);