summaryrefslogtreecommitdiff
path: root/wiretap/pcap-common.h
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2009-06-27 12:41:06 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2009-06-27 12:41:06 +0000
commit6ce8546ecdc8925371fc88bb4e544354d57fbd07 (patch)
tree263b7783977db9a4b30fced9b3c1b5d4c95159d5 /wiretap/pcap-common.h
parent11a65d398b5fc6037c67d9e97a3cf3896929f971 (diff)
downloadwireshark-6ce8546ecdc8925371fc88bb4e544354d57fbd07.tar.gz
This patch
* adds an encapsulation argument to pcap_write_phdr. * writes the pseudo header when writing pcapng files. This fixes a bug where you could not write pcapng files when using encapsulations requiring pseudo headers. svn path=/trunk/; revision=28859
Diffstat (limited to 'wiretap/pcap-common.h')
-rw-r--r--wiretap/pcap-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pcap-common.h b/wiretap/pcap-common.h
index c8f1944ca9..473c852aa8 100644
--- a/wiretap/pcap-common.h
+++ b/wiretap/pcap-common.h
@@ -33,5 +33,5 @@ extern int pcap_process_pseudo_header(wtap *wth, int encap, FILE_T fh, guint pac
extern int pcap_get_phdr_size(int encap,
const union wtap_pseudo_header *pseudo_header);
-extern gboolean pcap_write_phdr(wtap_dumper *wdh,
+extern gboolean pcap_write_phdr(wtap_dumper *wdh, int encap,
const union wtap_pseudo_header *pseudo_header, int *err);