diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-03-28 14:39:31 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-03-28 14:39:31 +0000 |
commit | daa67c79ba2b65c3893ffdf9022c5cf64025c4e7 (patch) | |
tree | 7b16c0c3ae319d9a202509eab1524ca7faf9167b /capture_opts.c | |
parent | d11694e340b0a927f129f0bf437dcf637c7d593d (diff) |
a lot more capture engine code cleanup
most notably:
- moved opening of safe_file to the capture child (capture_loop.c)
- removed save_file_fd from capture_opts (no longer need to have it global)
svn path=/trunk/; revision=13953
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/capture_opts.c b/capture_opts.c index 1f4a32cd73..00f3d1a0bf 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -61,7 +61,6 @@ capture_opts_init(capture_options *capture_opts, void *cfile) capture_opts->linktype = -1; /* the default linktype */ capture_opts->capture_child = FALSE; capture_opts->save_file = NULL; - capture_opts->save_file_fd = -1; capture_opts->sync_mode = TRUE; capture_opts->show_info = TRUE; capture_opts->quit_after_cap = FALSE; @@ -101,7 +100,6 @@ capture_opts_info(capture_options *capture_opts) { g_warning("LinkType : %d", capture_opts->linktype); g_warning("Child : %u", capture_opts->capture_child); g_warning("SaveFile : %s", capture_opts->save_file); - g_warning("SaveFileFd : %d", capture_opts->save_file_fd); g_warning("SyncMode : %u", capture_opts->sync_mode); g_warning("ShowInfo : %u", capture_opts->show_info); g_warning("QuitAfterCap : %u", capture_opts->quit_after_cap); @@ -277,9 +275,6 @@ capture_opts_add_opt(capture_options *capture_opts, const char *appname, int opt case 'w': /* Write to capture file xxx */ capture_opts->save_file = g_strdup(optarg); break; - case 'W': /* Write to capture file FD xxx */ - capture_opts->save_file_fd = atoi(optarg); - break; case 'y': /* Set the pcap data link type */ #ifdef HAVE_PCAP_DATALINK_NAME_TO_VAL capture_opts->linktype = pcap_datalink_name_to_val(optarg); |