diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-04-27 19:39:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-04-27 19:39:06 +0000 |
commit | a60cae69353514af4c23f3a5dfcb480bf19da69f (patch) | |
tree | 20f85d8a286e1a149c9d7634d7cbb214d9f3b0b8 /wiretap/pcap-common.h | |
parent | c1e9d8244b998a77c5074312459cc1736aab7f15 (diff) |
Move pseudo-header routines from libpcap.c to pcap-common.c, for use
with pcap-NG files.
svn path=/trunk/; revision=28184
Diffstat (limited to 'wiretap/pcap-common.h')
-rw-r--r-- | wiretap/pcap-common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wiretap/pcap-common.h b/wiretap/pcap-common.h index efe11c476d..2df92014b6 100644 --- a/wiretap/pcap-common.h +++ b/wiretap/pcap-common.h @@ -32,3 +32,13 @@ struct encap_map { extern const struct encap_map pcap_to_wtap_map[]; extern int wtap_wtap_encap_to_pcap_encap(int encap); + +extern int pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size, + struct wtap_pkthdr *phdr, union wtap_pseudo_header *pseudo_header, + int *err, gchar **err_info); + +extern int pcap_get_phdr_size(int encap, + const union wtap_pseudo_header *pseudo_header); + +extern gboolean pcap_write_phdr(wtap_dumper *wdh, + const union wtap_pseudo_header *pseudo_header, int *err); |