diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-06-27 12:13:15 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-06-27 12:13:15 +0000 |
commit | 4bc67de4ea727fe8332decfa0fb79a21cfdd9801 (patch) | |
tree | 816b087a5ff1681d0b216bc0e34130d89a3a1003 /dumpcap.c | |
parent | 043ea23beb333388b2da0e65a2aa0a6679a170d7 (diff) |
Report the correct interface when there is a problem with a capture filter.
This patch is from Irene Ruengeler.
svn path=/trunk/; revision=37804
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4408,11 +4408,13 @@ static void report_cfilter_error(capture_options *capture_opts, guint i, const char *errmsg) { interface_options interface_opts; + char tmp[MSG_MAX_LENGTH+1+6]; if (i < capture_opts->ifaces->len) { if (capture_child) { + g_snprintf(tmp, sizeof(tmp), "%u:%s", i, errmsg); g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG, "Capture filter error: %s", errmsg); - pipe_write_block(2, SP_BAD_FILTER, errmsg); + pipe_write_block(2, SP_BAD_FILTER, tmp); } else { interface_opts = g_array_index(capture_opts->ifaces, interface_options, i); fprintf(stderr, |