diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2012-12-20 15:20:10 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2012-12-20 15:20:10 +0000 |
commit | 9a2f4c8e9da59c9d5bef6ef987e03802e0c25dc6 (patch) | |
tree | fdb4c6e0e23bd429c12a6ffef870196f78f5148a /pcapio.h | |
parent | 7e84abf005afa5952b046d11584d3ff36522c721 (diff) | |
download | wireshark-9a2f4c8e9da59c9d5bef6ef987e03802e0c25dc6.tar.gz |
Don't use an pcap structures in pcapio.[ch].
Currently, pcapio is only used by dumpcap, which is only compiled
if there is pcap support. However, making pcapio independent from
libpcap allows it also to be used from text2pcap, which does not
rely on libpcap.
svn path=/trunk/; revision=46637
Diffstat (limited to 'pcapio.h')
-rw-r--r-- | pcapio.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -34,8 +34,11 @@ libpcap_write_file_header(FILE *fp, int linktype, int snaplen, gboolean ts_nsecs /** Write a record for a packet to a dump file. Returns TRUE on success, FALSE on failure. */ extern gboolean -libpcap_write_packet(FILE *fp, const struct pcap_pkthdr *phdr, const u_char *pd, - long *bytes_written, int *err); +libpcap_write_packet(FILE *fp, + guint32 sec, guint32 usec, + guint32 caplen, guint32 len, + const unsigned char *pd, + long *bytes_written, int *err); /** Write a section header block (SHB) * @@ -85,10 +88,11 @@ libpcap_write_interface_statistics_block(FILE *fp, extern gboolean libpcap_write_enhanced_packet_block(FILE *fp, - const struct pcap_pkthdr *phdr, + guint32 sec, guint32 usec, + guint32 caplen, guint32 len, guint32 interface_id, guint ts_mul, - const u_char *pd, + const unsigned char *pd, guint32 flags, long *bytes_written, int *err); |