diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2009-06-27 12:41:06 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2009-06-27 12:41:06 +0000 |
commit | 6ce8546ecdc8925371fc88bb4e544354d57fbd07 (patch) | |
tree | 263b7783977db9a4b30fced9b3c1b5d4c95159d5 /wiretap/pcap-common.h | |
parent | 11a65d398b5fc6037c67d9e97a3cf3896929f971 (diff) | |
download | wireshark-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.h | 2 |
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); |