aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-int.h
diff options
context:
space:
mode:
authorguy <guy>2003-11-04 07:05:32 +0000
committerguy <guy>2003-11-04 07:05:32 +0000
commit991d444f7116bef16893826b46f3950f62281507 (patch)
treea6e3cc271bc1560beb89dcc0d0c3893297bbba0b /pcap-int.h
parent4246a40e00fd598e3af4ab8e4251749968b086c1 (diff)
Add a "pcap_breakloop()" API to break out of the loop in
"pcap_dispatch()" and "pcap_loop()".
Diffstat (limited to 'pcap-int.h')
-rw-r--r--pcap-int.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcap-int.h b/pcap-int.h
index 4e97649..7fc288e 100644
--- a/pcap-int.h
+++ b/pcap-int.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.54 2003-10-24 23:55:06 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.55 2003-11-04 07:05:34 guy Exp $ (LBL)
*/
#ifndef pcap_int_h
@@ -106,6 +106,8 @@ struct pcap {
int tzoff; /* timezone offset */
int offset; /* offset for proper alignment */
+ int break_loop; /* flag set to force break from packet-reading loop */
+
struct pcap_sf sf;
struct pcap_md md;