Commit Graph

51 Commits

Author SHA1 Message Date
Alex Henrie bd7d771433 wpcap: Remove unused variable ptr from build_win32_description (cppcheck).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-21 10:34:24 +01:00
Alexandre Julliard 5784c80ba1 wpcap: Convert the Unix library to the __wine_unix_call interface.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-23 18:59:25 +01:00
Hans Leidekker 487ec2d456 wpcap: Accept interfaces without associated IPv4 or IPv6 address.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-11 19:43:07 +02:00
Hans Leidekker 622b0e29a6 wpcap: Map Unix interfaces to Windows adapters.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37167
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 18:03:11 +02:00
Hans Leidekker a999d57d6a wpcap: Convert pcap_pkthdr structures.
Structure layout is different on 64-bit.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51818
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-04 16:10:30 +02:00
Hans Leidekker be9362190c wpcap: Wrap native handles in a structure.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-04 16:10:25 +02:00
Hans Leidekker efbb3091d2 wpcap: Get rid of the wine_ prefix.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Hans Leidekker 7a774f7569 wpcap: Use CRT memory allocators.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Hans Leidekker 1fc4d54c5f wpcap: Implement some more functions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Hans Leidekker 67b95d4ab7 wpcap: Move pcap support to a new Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-10 20:33:34 +02:00
Alexandre Julliard 732d0db63b wpcap: Avoid deprecated pcap_lookupdev().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:25 +02:00
Vijay Kiran Kamuju 660399b8fd wpcap: Fix compile warnings for redefinition of PCAP_OPENFLAG_PROMISCUOUS.
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-06 07:13:53 -05:00
Dmitry Timoshkov 40c9b46500 wpcap: Fix compilation with recent pcap/pcap.h versions.
Recent libpcap versions have added inclusion of pcap/socket.h
to pcap.h that includes sys/socket.h and other system .h files
that lead to conflicts with winsock2.h.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-01 17:48:26 +01:00
Alistair Leslie-Hughes d6fc811877 wpcap: Implement pcap_dump_open and pcap_dump.
Based off a patch by Jianqiu Zhang.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-10 12:22:06 +02:00
André Hentschel 28173f0693 wpcap: Fix build with newer pcap versions.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-21 15:19:40 +02:00
Jianqiu Zhang eacc448f6c wpcap: Fix crash on pcap_loop.
Signed-off-by: Jianqiu Zhang <zhangjianqiu_133@yeah.net>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:02:24 +09:00
André Hentschel 04d72a3e47 wpcap: Partially implement pcap_parsesrcstr. 2015-09-02 18:36:43 +09:00
André Hentschel e141ecf89d wpcap: Implement pcap_findalldevs_ex. 2014-08-21 12:22:17 +02:00
André Hentschel b2962fb87e wpcap: Implement wsockinit. 2014-08-20 13:12:13 +02:00
André Hentschel f0f57c22bf wpcap: Implement pcap_setnonblock. 2014-08-20 13:10:53 +02:00
André Hentschel 1c460fcd63 wpcap: Implement pcap_sendpacket. 2014-08-20 13:10:50 +02:00
André Hentschel 1c6902679b wpcap: Implement pcap_next_ex. 2014-08-20 13:10:46 +02:00
André Hentschel daae8422a0 wpcap: Implement pcap_next. 2014-08-20 13:10:41 +02:00
André Hentschel 4de7047873 wpcap: Implement pcap_getnonblock. 2014-08-20 13:10:35 +02:00
André Hentschel c070c46ed4 wpcap: Implement pcap_open. 2014-08-20 13:10:28 +02:00
André Hentschel 2b9cade4b8 wpcap: Implement pcap_get_airpcap_handle. 2014-08-19 14:51:22 +02:00
André Hentschel e5e8760591 wpcap: Implement pcap_set_datalink. 2014-08-19 14:51:03 +02:00
André Hentschel e227f7d84d wpcap: Implement pcap_datalink_val_to_description. 2014-08-19 14:50:57 +02:00
André Hentschel d6c4ed0878 wpcap: Implement pcap_list_datalinks. 2014-08-19 14:50:52 +02:00
André Hentschel ea18520e6c wpcap: Implement pcap_datalink_name_to_val. 2014-08-19 14:50:45 +02:00
André Hentschel 235bbd0f30 wpcap: Implement pcap_close. 2014-08-19 14:50:37 +02:00
André Hentschel 6284a3e202 wpcap: Implement pcap_datalink_val_to_name. 2014-08-19 14:50:31 +02:00
André Hentschel 2789538bd5 wpcap: Implement pcap_breakloop. 2014-08-18 13:26:04 +02:00
André Hentschel d45f9144a1 wpcap: Implement pcap_loop. 2014-08-18 13:25:51 +02:00
André Hentschel 927f8bee46 wpcap: Implement pcap_dispatch. 2014-08-18 13:25:28 +02:00
André Hentschel eaad4fea89 wpcap: Implement pcap_snapshot. 2014-08-18 13:21:49 +02:00
André Hentschel 03d067183f wpcap: Implement pcap_freecode. 2014-08-18 13:21:42 +02:00
André Hentschel c180d522ae wpcap: Trace strings when possible. 2014-08-18 13:21:33 +02:00
André Hentschel 1ed9760bdf wpcap: Implement pcap_setfilter. 2014-08-15 17:03:34 +02:00
André Hentschel 297a69a4b5 wpcap: Implement pcap_compile. 2014-08-15 17:02:52 +02:00
André Hentschel 53912aed73 wpcap: Implement pcap_lookupnet. 2014-08-15 17:02:44 +02:00
André Hentschel 29cdb71d98 wpcap: Implement pcap_lookupdev. 2014-08-15 17:02:39 +02:00
André Hentschel fa229c205d wpcap: Implement pcap_datalink. 2014-08-15 17:01:37 +02:00
André Hentschel e7bf85ccae wpcap: Add stub for pcap_setbuff. 2014-08-15 17:01:31 +02:00
André Hentschel 5d0e67855d wpcap: Implement pcap_stats. 2014-08-15 17:01:22 +02:00
André Hentschel 8738eb31de wpcap: Implement pcap_open_live. 2014-08-15 16:59:27 +02:00
André Hentschel efb1d1d849 wpcap: Implement pcap_geterr. 2014-08-15 16:59:21 +02:00
André Hentschel b1c54557d7 wpcap: Implement pcap_freealldevs. 2014-08-11 23:55:27 +02:00
André Hentschel ca1aa1cfa2 wpcap: Implement pcap_findalldevs. 2014-08-11 23:55:25 +02:00
André Hentschel 0cbd82f629 wpcap: Implement pcap_major_version and pcap_minor_version. 2014-08-11 23:55:24 +02:00