1 /* capture_wpcap_packet.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 2001 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef CAPTURE_WPCAP_PACKET_H
24 #define CAPTURE_WPCAP_PACKET_H
28 #endif /* __cplusplus */
30 extern void wpcap_packet_load(void);
32 /* get the packet.dll version info */
33 extern char *wpcap_packet_get_version(void);
35 /* open the interface */
36 extern void * wpcap_packet_open(char *if_name);
38 /* close the interface */
39 extern void wpcap_packet_close(void * adapter);
41 extern int wpcap_packet_request(void *a, ULONG Oid, int set, char *value, unsigned int *length);
43 extern int wpcap_packet_request_uint(void *a, ULONG Oid, UINT *value);
45 extern int wpcap_packet_request_ulong(void *a, ULONG Oid, ULONG *value);
49 #endif /* __cplusplus */
51 #endif /* CAPTURE_WPCAP_PACKET_H */