summaryrefslogtreecommitdiff
path: root/wiretap/pcap-common.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-09-01 09:43:10 +0000
committerGuy Harris <guy@alum.mit.edu>2011-09-01 09:43:10 +0000
commite9fc1b72aabaae01cd6cad613dfc88168d8aed9a (patch)
treec1bdbe16d5579966f05db9cb334a115e011e08ff /wiretap/pcap-common.h
parent10a3cb6e0f30290ccce97c01d482f05d083915a6 (diff)
downloadwireshark-e9fc1b72aabaae01cd6cad613dfc88168d8aed9a.tar.gz
Use guint8 rather than guchar for raw octets and pointers to arrays of
same. Add to wiretap/pcap-common.c a routine to fill in the pseudo-header for ATM (by looking at the VPI, VCI, and packet data, and guessing) and Ethernet (setting the FCS length appropriately). Use it for both pcap and pcap-ng files. svn path=/trunk/; revision=38840
Diffstat (limited to 'wiretap/pcap-common.h')
-rw-r--r--wiretap/pcap-common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/wiretap/pcap-common.h b/wiretap/pcap-common.h
index c3102ee3f0..587fdfb837 100644
--- a/wiretap/pcap-common.h
+++ b/wiretap/pcap-common.h
@@ -34,8 +34,12 @@ extern int pcap_process_pseudo_header(FILE_T fh, int file_type, int wtap_encap,
guint packet_size, gboolean check_packet_size, struct wtap_pkthdr *phdr,
union wtap_pseudo_header *pseudo_header, int *err, gchar **err_info);
+extern void pcap_fill_in_pseudo_header(int file_type, int wtap_encap,
+ guint8 *pd, int length, union wtap_pseudo_header *pseudo_header,
+ int fcs_len);
+
extern void pcap_read_post_process(int wtap_encap, guint packet_size,
- gboolean bytes_swapped, guchar *pd);
+ gboolean bytes_swapped, guint8 *pd);
extern int pcap_get_phdr_size(int encap,
const union wtap_pseudo_header *pseudo_header);