aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-30 09:43:47 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-30 09:43:47 +0000
commit4cd4f9a669bf38b22c377e2647054d2143e05409 (patch)
tree30ddaf8cbf77036b274b0302a942bbead4220c4a /wiretap/file_access.c
parent57ad54abdc18bd1856a150bdc79ea281a6193a1b (diff)
Add support for slightly modified libpcap file format with nanosecond resolution (currently supported by Ethereal only). Support for both read and write was added.
The file format stays the same as the common libpcap format, only the lower part of the timestamp field uses nanoseconds instead of microseconds. This file format uses the libpcap magic number 0xa1b23c4d. svn path=/trunk/; revision=15623
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index 1881fc248a..84705e29fd 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -373,6 +373,10 @@ static const struct file_type_info {
{ "AIX libpcap (tcpdump)", NULL,
NULL, NULL },
+ /* WTAP_FILE_PCAP_NSEC */
+ { "Nanosecond libpcap (Ethereal)", "nseclibpcap",
+ libpcap_dump_can_write_encap, libpcap_dump_open },
+
/* WTAP_FILE_LANALYZER */
{ "Novell LANalyzer","lanalyzer",
lanalyzer_dump_can_write_encap, lanalyzer_dump_open },