aboutsummaryrefslogtreecommitdiff
path: root/pcap-tc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-10-27 17:27:30 -0700
committerGuy Harris <guy@alum.mit.edu>2016-10-27 17:27:47 -0700
commit65a5b4b53ee23c12b9e823615d23a921c64f40f0 (patch)
tree100013588a8521946afef3347688a51db701eb89 /pcap-tc.c
parent371b9e44a8364990147fbcb71eefcce9011b3efa (diff)
Don't set non-existent structure members.
ps_capt, ps_sent, and ps_netdrop are only available on Windows if HAVE_REMOTE is defined; don't set them otherwise.
Diffstat (limited to 'pcap-tc.c')
-rw-r--r--pcap-tc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-tc.c b/pcap-tc.c
index 768dbd7c..bfb129ba 100644
--- a/pcap-tc.c
+++ b/pcap-tc.c
@@ -1166,7 +1166,7 @@ TcStatsEx(pcap_t *p, int *pcap_stat_size)
p->stat.ps_drop = 0xFFFFFFFF;
}
-#ifdef HAVE_REMOTE
+#if defined(_WIN32) && defined(HAVE_REMOTE)
p->stat.ps_capt = pt->TcAcceptedCount;
#endif