aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-12-03 18:15:02 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-12-03 18:15:02 +0000
commit6ca67069046c29a1abefb518ef701a1c5fce760c (patch)
tree8a2f27a371b786e914881b59b3b8cfc8ef4a64fb /capture_sync.c
parent4d6fa6a60af3d637c4cdd60dbcddbbd95d4213db (diff)
add missing functions (to complete/cleanup of interface):
capture_input_drops capture_input_error_message and move the functionality from capture_sync.c to capture.c (just where it belongs) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16663 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 37189c46f4..888f4dbceb 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -621,14 +621,13 @@ sync_pipe_input_cb(gint source, gpointer user_data)
/* We weren't able to open the new capture file; user has been
alerted. Close the sync pipe. */
- /* XXX - is it safe to close the pipe inside this callback? */
eth_close(source);
/* the child has send us a filename which we couldn't open.
this probably means, the child is creating files faster than we can handle it.
this should only be the case for very fast file switches
we can't do much more than telling the child to stop
- (this is the emergency brake if user e.g. wants to switch files every second) */
+ (this is the "emergency brake" if user e.g. wants to switch files every second) */
sync_pipe_stop(capture_opts);
}
break;
@@ -638,14 +637,11 @@ sync_pipe_input_cb(gint source, gpointer user_data)
capture_input_new_packets(capture_opts, nread);
break;
case SP_ERROR_MSG:
- g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_MESSAGE, "Error message from child: \"%s\"", buffer);
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", buffer);
+ capture_input_error_message(capture_opts, buffer);
/* the capture child will close the sync_pipe, nothing to do for now */
break;
case SP_DROPS:
- g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_INFO, "%d packet%s dropped", atoi(buffer), plurality(atoi(buffer), "", "s"));
- cf_set_drops_known(capture_opts->cf, TRUE);
- cf_set_drops(capture_opts->cf, atoi(buffer));
+ capture_input_drops(capture_opts, atoi(buffer));
break;
default:
g_assert_not_reached();