Always include the sampling member so that the struct size is consistent.

This commit is contained in:
christos 2020-04-04 21:00:03 +00:00
parent 3b26322cff
commit 9dd097b5c2

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcap-int.h,v 1.6 2019/10/01 16:02:12 christos Exp $ */ /* $NetBSD: pcap-int.h,v 1.7 2020/04/04 21:00:03 christos Exp $ */
/* /*
* Copyright (c) 1994, 1995, 1996 * Copyright (c) 1994, 1995, 1996
@ -182,9 +182,9 @@ struct pcap {
void *priv; /* private data for methods */ void *priv; /* private data for methods */
#ifdef ENABLE_REMOTE // #ifdef ENABLE_REMOTE
struct pcap_samp rmt_samp; /* parameters related to the sampling process. */ struct pcap_samp rmt_samp; /* parameters related to the sampling process. */
#endif // #endif
int swapped; int swapped;
FILE *rfile; /* null if live capture, non-null if savefile */ FILE *rfile; /* null if live capture, non-null if savefile */