2010-02-23 03:50:42 +00:00
|
|
|
/* pcap-encap.h
|
2018-01-09 00:38:10 +00:00
|
|
|
* Declarations for routines to handle pcap/pcapng linktype values
|
2010-02-23 03:50:42 +00:00
|
|
|
*
|
|
|
|
* Wiretap Library
|
|
|
|
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
|
|
|
|
*
|
2018-01-09 00:38:10 +00:00
|
|
|
* File format support for pcapng file format
|
2010-02-23 03:50:42 +00:00
|
|
|
* Copyright (c) 2007 by Ulf Lamping <ulf.lamping@web.de>
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2010-02-23 03:50:42 +00:00
|
|
|
*/
|
|
|
|
|
2011-06-04 21:20:57 +00:00
|
|
|
#ifndef __W_PCAP_ENCAP_H__
|
|
|
|
#define __W_PCAP_ENCAP_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <wiretap/wtap.h>
|
|
|
|
|
2012-09-14 20:23:18 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC int wtap_pcap_encap_to_wtap_encap(int encap);
|
|
|
|
WS_DLL_PUBLIC int wtap_wtap_encap_to_pcap_encap(int encap);
|
|
|
|
WS_DLL_PUBLIC gboolean wtap_encap_requires_phdr(int encap);
|
2012-09-14 20:23:18 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
2011-06-04 21:20:57 +00:00
|
|
|
|
|
|
|
#endif
|