kernelbase: Reimplement LocaleNameToLCID() using the locale.nls data.
[wine.git] / dlls / wpcap / unixlib.h
blob8cd64ef02105b6b473393aa9fffc4c34db14985f
1 /*
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
20 struct sockaddr_hdr
22 unsigned short sa_family;
25 struct pcap_address
27 struct pcap_address *next;
28 struct sockaddr_hdr *addr;
29 struct sockaddr_hdr *netmask;
30 struct sockaddr_hdr *broadaddr;
31 struct sockaddr_hdr *dstaddr;
34 struct pcap_interface
36 struct pcap_interface *next;
37 char *name;
38 char *description;
39 struct pcap_address *addresses;
40 unsigned int flags;
43 struct pcap_pkthdr_win32
45 struct
47 int tv_sec;
48 int tv_usec;
49 } ts;
50 unsigned int caplen;
51 unsigned int len;
54 struct pcap
56 void *handle;
57 struct pcap_pkthdr_win32 hdr;
61 struct compile_params
63 struct pcap *pcap;
64 void *program;
65 const char *buf;
66 int optimize;
67 unsigned int mask;
70 struct create_params
72 const char *src;
73 char *errbuf;
74 struct pcap **ret;
77 struct datalink_name_to_val_params
79 const char *name;
82 struct datalink_val_to_description_params
84 int link;
85 const char **ret;
88 struct datalink_val_to_name_params
90 int link;
91 const char **ret;
94 struct dump_params
96 unsigned char *user;
97 const struct pcap_pkthdr_win32 *hdr;
98 const unsigned char *packet;
101 struct dump_open_params
103 struct pcap *pcap;
104 const char *name;
105 void **ret;
108 struct findalldevs_params
110 struct pcap_interface **devs;
111 char *errbuf;
114 struct geterr_params
116 struct pcap *pcap;
117 char **ret;
120 struct getnonblock_params
122 struct pcap *pcap;
123 char *errbuf;
126 struct lib_version_params
128 char *version;
129 unsigned int size;
132 struct list_datalinks_params
134 struct pcap *pcap;
135 int **buf;
138 struct list_tstamp_types_params
140 struct pcap *pcap;
141 int **types;
144 struct lookupnet_params
146 const char *device;
147 unsigned int *net;
148 unsigned int *mask;
149 char *errbuf;
152 struct next_ex_params
154 struct pcap *pcap;
155 struct pcap_pkthdr_win32 **hdr;
156 const unsigned char **data;
159 struct open_live_params
161 const char *source;
162 int snaplen;
163 int promisc;
164 int to_ms;
165 char *errbuf;
166 struct pcap **ret;
169 struct sendpacket_params
171 struct pcap *pcap;
172 const unsigned char *buf;
173 int size;
176 struct set_buffer_size_params
178 struct pcap *pcap;
179 int size;
182 struct set_datalink_params
184 struct pcap *pcap;
185 int link;
188 struct set_promisc_params
190 struct pcap *pcap;
191 int enable;
194 struct set_rfmon_params
196 struct pcap *pcap;
197 int enable;
200 struct set_snaplen_params
202 struct pcap *pcap;
203 int len;
206 struct set_timeout_params
208 struct pcap *pcap;
209 int timeout;
212 struct set_tstamp_precision_params
214 struct pcap *pcap;
215 int precision;
218 struct set_tstamp_type_params
220 struct pcap *pcap;
221 int type;
224 struct setfilter_params
226 struct pcap *pcap;
227 void *program;
230 struct setnonblock_params
232 struct pcap *pcap;
233 int nonblock;
234 char *errbuf;
237 struct stats_params
239 struct pcap *pcap;
240 void *stats;
243 struct statustostr_params
245 int status;
246 const char **ret;
249 struct tstamp_type_name_to_val_params
251 const char *name;
254 struct tstamp_type_val_to_description_params
256 int val;
257 const char **ret;
260 struct tstamp_type_val_to_name_params
262 int val;
263 const char **ret;
266 enum pcap_funcs
268 unix_activate,
269 unix_breakloop,
270 unix_can_set_rfmon,
271 unix_close,
272 unix_compile,
273 unix_create,
274 unix_datalink,
275 unix_datalink_name_to_val,
276 unix_datalink_val_to_description,
277 unix_datalink_val_to_name,
278 /* unix_dispatch, */
279 unix_dump,
280 unix_dump_open,
281 unix_findalldevs,
282 unix_free_datalinks,
283 unix_free_tstamp_types,
284 unix_freealldevs,
285 unix_freecode,
286 unix_get_tstamp_precision,
287 unix_geterr,
288 unix_getnonblock,
289 unix_lib_version,
290 unix_list_datalinks,
291 unix_list_tstamp_types,
292 unix_lookupnet,
293 /* unix_loop, */
294 unix_major_version,
295 unix_minor_version,
296 unix_next_ex,
297 unix_open_live,
298 unix_sendpacket,
299 unix_set_buffer_size,
300 unix_set_datalink,
301 unix_set_promisc,
302 unix_set_rfmon,
303 unix_set_snaplen,
304 unix_set_timeout,
305 unix_set_tstamp_precision,
306 unix_set_tstamp_type,
307 unix_setfilter,
308 unix_setnonblock,
309 unix_snapshot,
310 unix_stats,
311 unix_statustostr,
312 unix_tstamp_type_name_to_val,
313 unix_tstamp_type_val_to_description,
314 unix_tstamp_type_val_to_name,