| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
pcap-common.h
Go to the documentation of this file.
1
14#ifndef __W_PCAP_COMMON_H__
15#define __W_PCAP_COMMON_H__
16
17#include "wtap.h"
18
19extern unsigned wtap_max_snaplen_for_encap(int wtap_encap);
20
21extern int pcap_process_pseudo_header(FILE_T fh, bool is_nokia,
22 int wtap_encap, unsigned packet_size, wtap_rec *rec,
23 int *err, char **err_info);
24
25extern void pcap_read_post_process(bool is_nokia, int wtap_encap,
26 wtap_rec *rec, bool bytes_swapped, int fcs_len);
27
28extern unsigned pcap_get_phdr_size(int encap,
29 const union wtap_pseudo_header *pseudo_header);
30
31extern bool pcap_write_phdr(wtap_dumper *wdh, int wtap_encap,
32 const union wtap_pseudo_header *pseudo_header, int *err);
33
34#endif
wtap_dumper
Wiretap dumper handle and associated state.
Definition wtap_module.h:163
wtap_reader
Definition file_wrappers.c:97
wtap_rec
Definition wtap.h:1512
wtap_pseudo_header
Definition wtap.h:1281
wtap.h