summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-03-24 02:23:48 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-03-24 02:23:48 +0000
commitfe3c3029aaccd6b5a8fe7774d7902188a03c2c94 (patch)
tree26aaef12624b268826efd4255bc4d8c1f91b1278 /dumpcap.c
parente43c4e50c901e652ea61d3cf3d8834b384181fc3 (diff)
downloadwireshark-fe3c3029aaccd6b5a8fe7774d7902188a03c2c94.tar.gz
Various code cleanup in the capture pipe stuff
svn path=/trunk/; revision=17714
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/dumpcap.c b/dumpcap.c
index a972486141..9d30e8d727 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -64,6 +64,7 @@
#include "file_util.h"
+/*#define DEBUG_DUMPCAP*/
gboolean capture_child = FALSE; /* FALSE: standalone call, TRUE: this is an Ethereal capture child */
@@ -506,15 +507,6 @@ console_log_handler(const char *log_domain, GLogLevelFlags log_level,
/* sync_pipe handling */
-/*
- * Maximum length of sync pipe message data. Must be < 2^24, as the
- * message length is 3 bytes.
- * XXX - this should be large enough to handle a Really Big Filter
- * Expression, as the error message for an incorrect filter expression
- * is a bit larger than the filter expression.
- */
-#define SP_MAX_MSG_LEN 4096
-
/* write a single message header to the recipient pipe */
static int
pipe_write_header(int pipe, char indicator, int length)
@@ -534,6 +526,7 @@ pipe_write_header(int pipe, char indicator, int length)
return write(pipe, header, sizeof header);
}
+
/* write a message to the recipient pipe in the standard format
(3 digit message length (excluding length and indicator field),
1 byte message indicator and the rest is the message).
@@ -590,7 +583,6 @@ sync_pipe_packet_count_to_parent(int packet_count)
/* stderr could be line buffered */
fflush(stderr);
}
-
}
void
@@ -604,7 +596,6 @@ sync_pipe_filename_to_parent(const char *filename)
}
}
-
void
sync_pipe_cfilter_error_to_parent(const char *cfilter _U_, const char *errmsg)
{