Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

pcap-encap.h
1 /* pcap-encap.h
2 * Declarations for routines to handle pcap/pcapng linktype values
3 *
4 * Wiretap Library
5 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
6 *
7 * File format support for pcapng file format
8 * Copyright (c) 2007 by Ulf Lamping <ulf.lamping@web.de>
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13 #ifndef __W_PCAP_ENCAP_H__
14 #define __W_PCAP_ENCAP_H__
15
16 #include <glib.h>
17 #include <wiretap/wtap.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22
23 WS_DLL_PUBLIC int wtap_pcap_encap_to_wtap_encap(int encap);
24 WS_DLL_PUBLIC int wtap_wtap_encap_to_pcap_encap(int encap);
25 WS_DLL_PUBLIC gboolean wtap_encap_requires_phdr(int encap);
26
27 #ifdef __cplusplus
28 }
29 #endif /* __cplusplus */
30
31 #endif