]> The Tcpdump Group git mirrors - libpcap/commitdiff
Copy the right value to the ps_ifdrop statistic.
authorGuy Harris <[email protected]>
Mon, 21 Sep 2009 17:26:37 +0000 (10:26 -0700)
committerGuy Harris <[email protected]>
Mon, 21 Sep 2009 17:26:37 +0000 (10:26 -0700)
pcap-linux.c

index 35251292c6e2a5ab6fd0ee4a7d31ab619a172469..075b8b8a46b0ab2abca4039e9d401fe5cca5a931 100644 (file)
@@ -1745,7 +1745,7 @@ pcap_stats_linux(pcap_t *handle, struct pcap_stat *stats)
         
        stats->ps_recv = handle->md.packets_read;
        stats->ps_drop = 0;
-       stats->ps_ifdrop = handle->md.stat.ps_drop;
+       stats->ps_ifdrop = handle->md.stat.ps_ifdrop;
        return 0;
 }