summaryrefslogtreecommitdiff
path: root/pcapio.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-03-10 00:24:42 +0000
committerGerald Combs <gerald@wireshark.org>2012-03-10 00:24:42 +0000
commit7a8df2f485d4fc48d31ac95a3aa34f052ce85e03 (patch)
tree2f43dcb27cee7d55ec2c5cb4edac94d934606107 /pcapio.h
parentbb71a9c96a2e2cb8c9438a97c2b4448a50ffcc64 (diff)
downloadwireshark-7a8df2f485d4fc48d31ac95a3aa34f052ce85e03.tar.gz
In pcapng.c use the units per second value from the interface instead of
the default. Add support for reading nseclibpcap files to dumpcap. svn path=/trunk/; revision=41455
Diffstat (limited to 'pcapio.h')
-rw-r--r--pcapio.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/pcapio.h b/pcapio.h
index 449593a226..877552eb49 100644
--- a/pcapio.h
+++ b/pcapio.h
@@ -33,7 +33,7 @@ libpcap_fdopen(int fd, int *err);
Returns TRUE on success, FALSE on failure.
Sets "*err" to an error code, or 0 for a short write, on failure*/
extern gboolean
-libpcap_write_file_header(FILE *fp, int linktype, int snaplen, long *bytes_written, int *err);
+libpcap_write_file_header(FILE *fp, int linktype, int snaplen, gboolean ts_nsecs, long *bytes_written, int *err);
/** Write a record for a packet to a dump file.
Returns TRUE on success, FALSE on failure. */
@@ -49,13 +49,13 @@ libpcap_write_session_header_block(FILE *fp, /**< File pointer */
const char *comment, /**< Comment on the section, Optinon 1 opt_comment
* A UTF-8 string containing a comment that is associated to the current block.
*/
- const char *hw, /**< HW, Optinon 2 shb_hardware
+ const char *hw, /**< HW, Optinon 2 shb_hardware
* An UTF-8 string containing the description of the hardware used to create this section.
*/
- const char *os, /**< Operating system name, Optinon 3 shb_os
+ const char *os, /**< Operating system name, Optinon 3 shb_os
* An UTF-8 string containing the name of the operating system used to create this section.
*/
- const char *appname, /**< Application name, Optinon 4 shb_userappl
+ const char *appname, /**< Application name, Optinon 4 shb_userappl
* An UTF-8 string containing the name of the application used to create this section.
*/
guint64 section_length,
@@ -90,6 +90,7 @@ extern gboolean
libpcap_write_enhanced_packet_block(FILE *fp,
const struct pcap_pkthdr *phdr,
guint32 interface_id,
+ guint ts_mul,
const u_char *pd,
long *bytes_written,
int *err);