aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-02-29 20:32:12 +0000
committerGerald Combs <gerald@wireshark.org>2012-02-29 20:32:12 +0000
commit380f3f54a7e805c0c7e5bad38cd298973c106070 (patch)
tree4e0816c5a27ad22605f15ada47ff187a77e6a49e /dumpcap.c
parent050c0a14c99012fcf7b0ea57b243fd5684a4271b (diff)
Add a comment noting that we need to add support for files with
nanosecond timestamps. (Also test the recent anonymous repository migration.) svn path=/trunk/; revision=41248
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dumpcap.c b/dumpcap.c
index a076c96524..589ad1cb87 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1992,6 +1992,7 @@ cap_pipe_open_live(char *pipename,
pcap_opts->cap_pipe_byte_swapped = TRUE;
pcap_opts->cap_pipe_modified = TRUE;
break;
+ /* XXX - Add support for PCAP_NSEC_MAGIC and PCAP_SWAPPED_NSEC_MAGIC */
default:
/* Not a "libpcap" type we know about. */
g_snprintf(errmsg, errmsgl, "Unrecognized libpcap format");
@@ -2625,13 +2626,13 @@ capture_loop_init_output(capture_options *capture_opts, loop_data *ld, char *err
get_os_version_info(os_info_str);
g_snprintf(appname, sizeof(appname), "Dumpcap " VERSION "%s", wireshark_svnversion);
- successful = libpcap_write_session_header_block(ld->pdh,
+ successful = libpcap_write_session_header_block(ld->pdh,
NULL, /* Comment*/
NULL, /* HW*/
os_info_str->str, /* OS*/
appname,
-1, /* section_length */
- &ld->bytes_written,
+ &ld->bytes_written,
&err);
for (i = 0; successful && (i < capture_opts->ifaces->len); i++) {
@@ -3088,13 +3089,13 @@ do_file_switch_or_stop(capture_options *capture_opts,
get_os_version_info(os_info_str);
g_snprintf(appname, sizeof(appname), "Dumpcap " VERSION "%s", wireshark_svnversion);
- successful = libpcap_write_session_header_block(global_ld.pdh,
+ successful = libpcap_write_session_header_block(global_ld.pdh,
NULL, /* Comment */
NULL, /* HW */
os_info_str->str, /* OS */
appname,
-1, /* section_length */
- &(global_ld.bytes_written),
+ &(global_ld.bytes_written),
&global_ld.err);
for (i = 0; successful && (i < capture_opts->ifaces->len); i++) {