diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-04 08:26:00 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-04 08:26:00 +0000 |
commit | 8032fa8a1bafcbf76d3cadcedb03480fbfd51ecf (patch) | |
tree | a634ca1961bfec804908e381e96ad6d793a7f2b9 /capture_stop_conditions.c | |
parent | a1660d6d3afbaeccd77d8e34c695bf65a4f4f09e (diff) |
Make the bytes-written information from Wiretap a long, as we allow
files to get that big.
From Thomas Wittwer and Matthias Nyffenegger:
Support for "ring buffer mode", wherein there's a ring buffer of N
capture files; as each capture file reaches its maximum size (the ring
buffer works only with a maximum capture file size specified), Ethereal
rolls over to the next capture file in the ring buffer, replacing
whatever packets might be in it with new packets.
svn path=/trunk/; revision=4323
Diffstat (limited to 'capture_stop_conditions.c')
-rw-r--r-- | capture_stop_conditions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/capture_stop_conditions.c b/capture_stop_conditions.c index d86bf73245..718db37d52 100644 --- a/capture_stop_conditions.c +++ b/capture_stop_conditions.c @@ -1,7 +1,7 @@ /* capture_stop_conditions.c * Implementation for 'stop condition handler'. * - * $Id: capture_stop_conditions.c,v 1.1 2001/12/04 07:32:00 guy Exp $ + * $Id: capture_stop_conditions.c,v 1.2 2001/12/04 08:25:55 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -143,7 +143,7 @@ const char* CND_CLASS_CAPTURESIZE = "cnd_class_capturesize"; /* structure that contains user supplied data for this condition */ typedef struct _cnd_capturesize_dat{ - guint32 max_capture_size; + long max_capture_size; }cnd_capturesize_dat; /* @@ -162,7 +162,7 @@ static condition* _cnd_constr_capturesize(condition* cnd, va_list ap){ if((data = (cnd_capturesize_dat*)malloc(sizeof(cnd_capturesize_dat))) == NULL) return NULL; /* initialize user data */ - data->max_capture_size = va_arg(ap, guint32); + data->max_capture_size = va_arg(ap, long); cnd_set_user_data(cnd, (void*)data); return cnd; } /* END _cnd_constr_capturesize() */ @@ -192,7 +192,7 @@ static gboolean _cnd_eval_capturesize(condition* cnd, va_list ap){ cnd_capturesize_dat* data = (cnd_capturesize_dat*)cnd_get_user_data(cnd); /* check capturesize here */ if(data->max_capture_size == 0) return FALSE; /* 0 == infinite */ - if(va_arg(ap, guint32) >= data->max_capture_size){ + if(va_arg(ap, long) >= data->max_capture_size){ return TRUE; } return FALSE; |