2005-05-20 22:16:47 +00:00
|
|
|
/* capture_wpcap_packet.h
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
2008-01-08 22:54:51 +00:00
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2005-05-20 22:16:47 +00:00
|
|
|
* Copyright 2001 Gerald Combs
|
|
|
|
*
|
|
|
|
*
|
2018-04-30 07:47:58 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2005-05-20 22:16:47 +00:00
|
|
|
|
|
|
|
#ifndef CAPTURE_WPCAP_PACKET_H
|
|
|
|
#define CAPTURE_WPCAP_PACKET_H
|
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
2005-05-20 22:16:47 +00:00
|
|
|
|
|
|
|
extern void wpcap_packet_load(void);
|
|
|
|
|
2005-05-21 09:41:57 +00:00
|
|
|
/* get the packet.dll version info */
|
|
|
|
extern char *wpcap_packet_get_version(void);
|
|
|
|
|
2005-05-20 22:16:47 +00:00
|
|
|
/* open the interface */
|
2005-05-21 00:10:17 +00:00
|
|
|
extern void * wpcap_packet_open(char *if_name);
|
2005-05-20 22:16:47 +00:00
|
|
|
|
|
|
|
/* close the interface */
|
2005-05-21 00:10:17 +00:00
|
|
|
extern void wpcap_packet_close(void * adapter);
|
2005-05-20 22:16:47 +00:00
|
|
|
|
2005-05-21 00:10:17 +00:00
|
|
|
extern int wpcap_packet_request(void *a, ULONG Oid, int set, char *value, unsigned int *length);
|
2005-05-20 22:16:47 +00:00
|
|
|
|
2005-05-21 00:10:17 +00:00
|
|
|
extern int wpcap_packet_request_uint(void *a, ULONG Oid, UINT *value);
|
2005-05-20 22:16:47 +00:00
|
|
|
|
2005-05-21 00:10:17 +00:00
|
|
|
extern int wpcap_packet_request_ulong(void *a, ULONG Oid, ULONG *value);
|
2005-05-20 22:16:47 +00:00
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
2005-05-20 22:16:47 +00:00
|
|
|
|
|
|
|
#endif /* CAPTURE_WPCAP_PACKET_H */
|