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
25extern unsigned wtap_max_snaplen_for_encap(int wtap_encap);
26
27extern int pcap_process_pseudo_header(FILE_T fh, bool is_nokia,
28 int wtap_encap, unsigned packet_size, wtap_rec *rec,
29 int *err, char **err_info);
30
31extern void pcap_read_post_process(bool is_nokia, int wtap_encap,
32 wtap_rec *rec, bool bytes_swapped, int fcs_len);
33
41extern unsigned pcap_get_phdr_size(int encap,
42 const union wtap_pseudo_header *pseudo_header);
43
53extern bool pcap_write_phdr(wtap_dumper *wdh, int wtap_encap,
54 const union wtap_pseudo_header *pseudo_header, int *err);
55
56#endif
unsigned pcap_get_phdr_size(int encap, const union wtap_pseudo_header *pseudo_header)
Retrieves the size of the pseudo-header for a given encapsulation type and pseudo-header.
Definition pcap-common.c:2729
unsigned wtap_max_snaplen_for_encap(int wtap_encap)
Get the maximum snapshot length for a given capture encapsulation type.
Definition pcap-common.c:787
bool pcap_write_phdr(wtap_dumper *wdh, int wtap_encap, const union wtap_pseudo_header *pseudo_header, int *err)
Writes a packet header to a dump file.
Definition pcap-common.c:2835
Wiretap dumper handle and associated state.
Definition wtap_module.h:163
Definition file_wrappers.c:96
Definition wtap.h:1512
Definition wtap.h:1281