Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
pcap-encap.h
Go to the documentation of this file.
1
13#ifndef __W_PCAP_ENCAP_H__
14#define __W_PCAP_ENCAP_H__
15
16#include "wtap.h"
17#include "ws_symbol_export.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22
29WS_DLL_PUBLIC int wtap_pcap_encap_to_wtap_encap(int encap);
30
38
45WS_DLL_PUBLIC bool wtap_encap_requires_phdr(int encap);
46
47#ifdef __cplusplus
48}
49#endif /* __cplusplus */
50
51#endif
int wtap_wtap_encap_to_pcap_encap(int encap)
Converts a Wireshark encapsulation type to a PCAP encapsulation type.
Definition pcap-common.c:719
WS_DLL_PUBLIC int wtap_pcap_encap_to_wtap_encap(int encap)
Converts a PCAP encapsulation type to a Wireshark encapsulation type.
Definition pcap-common.c:707
WS_DLL_PUBLIC bool wtap_encap_requires_phdr(int encap)
Checks if a given encapsulation type requires a pseudo-header.
Definition pcap-common.c:2708