2 * Copyright 2011, 2014 André Hentschel
3 * Copyright 2021 Hans Leidekker for CodeWeavers
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 struct pcap_address
*next
;
23 struct sockaddr
*addr
;
24 struct sockaddr
*netmask
;
25 struct sockaddr
*broadaddr
;
26 struct sockaddr
*dstaddr
;
31 struct pcap_interface
*next
;
34 struct pcap_address
*addresses
;
38 struct pcap_interface_offsets
40 unsigned int name_offset
;
41 unsigned int name_len
;
42 unsigned int description_offset
;
43 unsigned int description_len
;
47 struct pcap_pkthdr_win32
58 struct pcap_stat_win32
62 unsigned int ps_ifdrop
;
65 unsigned int ps_netdrop
;
68 struct activate_params
73 struct breakloop_params
83 struct can_set_rfmon_params
96 unsigned int *program_len
;
97 struct bpf_insn
*program_insns
;
110 struct datalink_params
115 struct datalink_name_to_val_params
120 struct datalink_val_to_description_params
124 unsigned int *buflen
;
127 struct datalink_val_to_name_params
131 unsigned int *buflen
;
137 const struct pcap_pkthdr_win32
*hdr
;
138 const unsigned char *packet
;
141 struct dump_close_params
146 struct dump_open_params
153 struct findalldevs_params
156 unsigned int *buflen
;
166 struct getnonblock_params
172 struct get_tstamp_precision_params
183 struct lib_version_params
189 struct list_datalinks_params
196 struct list_tstamp_types_params
203 struct lookupnet_params
211 struct major_version_params
216 struct minor_version_params
221 struct next_ex_params
224 struct pcap_pkthdr_win32
*hdr
;
225 const unsigned char **data
;
228 struct open_live_params
238 struct sendpacket_params
241 const unsigned char *buf
;
245 struct set_buffer_size_params
251 struct set_datalink_params
257 struct set_promisc_params
263 struct set_rfmon_params
269 struct set_snaplen_params
275 struct set_timeout_params
281 struct set_tstamp_precision_params
287 struct set_tstamp_type_params
293 struct setfilter_params
296 unsigned int program_len
;
297 struct bpf_insn
*program_insns
;
300 struct setnonblock_params
307 struct snapshot_params
315 struct pcap_stat_win32 stat
;
318 struct tstamp_type_name_to_val_params
323 struct tstamp_type_val_to_description_params
327 unsigned int *buflen
;
330 struct tstamp_type_val_to_name_params
334 unsigned int *buflen
;
347 unix_datalink_name_to_val
,
348 unix_datalink_val_to_description
,
349 unix_datalink_val_to_name
,
354 unix_get_tstamp_precision
,
360 unix_list_tstamp_types
,
367 unix_set_buffer_size
,
373 unix_set_tstamp_precision
,
374 unix_set_tstamp_type
,
379 unix_tstamp_type_name_to_val
,
380 unix_tstamp_type_val_to_description
,
381 unix_tstamp_type_val_to_name
,