Move pseudo-header routines from libpcap.c to pcap-common.c, for use

with pcap-NG files.

svn path=/trunk/; revision=28184
This commit is contained in:
Guy Harris 2009-04-27 19:39:06 +00:00
parent c1e9d8244b
commit a60cae6935
3 changed files with 1089 additions and 1325 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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);