diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-10-27 17:27:30 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-10-27 17:27:47 -0700 |
commit | 65a5b4b53ee23c12b9e823615d23a921c64f40f0 (patch) | |
tree | 100013588a8521946afef3347688a51db701eb89 /pcap-tc.c | |
parent | 371b9e44a8364990147fbcb71eefcce9011b3efa (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |