Paul Gofman
ee06925319
nsiproxy.sys: Fix ipv6 route table parsing on Linux.
2024-02-26 22:44:35 +01:00
Alexandre Julliard
0c102b1a0b
nsiproxy.sys: Remove DECLSPEC_HIDDEN usage.
2023-11-24 14:04:53 +01:00
Alexandre Julliard
acad49573a
makefiles: Always use the global SOURCES variable for .c files.
2023-11-01 22:44:03 +01:00
Sven Baars
d20aca6b70
nsiproxy.sys: Return STATUS_SUCCESS from ipv6_forward_enumerate_all() on non-Linux.
...
This restores behavior from before 5a7d75cd34
.
2023-10-27 11:39:27 -05:00
Francois Gouget
9878b47bd0
nsiproxy.sys: Add a trailing linefeed to a TRACE() message.
2023-10-10 10:14:08 +02:00
Helix Graziani
5a7d75cd34
nsiproxy.sys: Implement ipv6_forward_enumerate_all.
2023-10-06 15:40:15 +02:00
Alexandre Julliard
aa15f41d04
makedep: Make the spec file optional for native modules.
2023-09-05 15:20:38 +02:00
Alexandre Julliard
20afe43832
Remove unused NONAMELESS defines.
2023-08-15 18:56:45 +02:00
Paul Gofman
a58f3e0401
nsiproxy.sys: Implement change notifications for NSI_IP_UNICAST_TABLE.
2023-08-01 21:51:13 +09:00
Paul Gofman
a72f91f5f5
nsi: Forward request to nsiproxy from NsiRequestChangeNotification().
2023-08-01 21:51:13 +09:00
Paul Gofman
7b243afc63
nsiproxy.sys: Detect wireless interface type on Linux.
2023-07-27 11:54:03 +09:00
Paul Gofman
1ea5d470a2
nsiproxy.sys: Detect PPP interface type from flags on Linux.
...
VPN interfaces often have ARPHRD_NONE in ifr_hwaddr.sa_data
but IFF_POINTOPOINT flag set.
2023-05-24 21:08:32 +02:00
Alex Henrie
3ab7d745fe
nsiproxy: Avoid calling RtlInitUnicodeString on a static constant.
2023-02-07 17:46:18 +01:00
Alexandre Julliard
2a366cddd7
nsiproxy.sys: Use the Unix call helpers.
2022-11-24 22:20:20 +01:00
Hans Leidekker
fa8a5692c2
nsiproxy.sys: Support media connect state on Linux.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53499
2022-08-09 15:53:58 +02:00
Alexandre Julliard
194e09baec
makefiles: Add separate variables for Unix flags and libraries.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Paul Gofman
9a11957bab
nsiproxy.sys: Add static ARP entries which are always present on Windows.
...
Some apps (Roon or SCP: Secret Laboratory are examples) depend on ARP
table always containing some entries if there is a network adapter present.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53175
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-27 10:34:12 +02:00
Paul Gofman
6b151e6937
nsiproxy.sys: Strip trailing end of line for iface name on Linux.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-21 18:53:18 +02:00
Huw Davies
f5627617ee
nsiproxy: Pass a ptr to receive the ICMP handle.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
2022-06-21 18:53:18 +02:00
Huw Davies
7bd58ba131
nsiproxy: Use an unsigned integer for the ICMP handles.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
2022-06-21 18:53:18 +02:00
Paul Gofman
50c27f88e3
nsiproxy.sys: Update interface table only if LUID is not found in convert_unix_name_to_luid().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-17 16:49:15 +02:00
Paul Gofman
1f3c1fdbc7
nsiproxy.sys: Update interface table only if LUID is not found in convert_luid_to_unix_name().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-17 16:49:13 +02:00
Paul Gofman
8e756fe5ac
nsiproxy.sys: Finish search once found in convert_luid_to_unix_name().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-17 16:49:12 +02:00
Paul Gofman
42bf766866
nsiproxy.sys: Update interface table only if find_entry_from_{luid|index} fails.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-17 16:49:10 +02:00
Chip Davis
2264663c74
nsiproxy.sys: Implement IPv6 ipstats get_all_parameters on Mac OS and BSD.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-13 22:11:41 +02:00
Chip Davis
84e9696078
nsiproxy.sys: Implement IPv6 icmpstats get_all_parameters on Mac OS and BSD.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-13 22:11:41 +02:00
Chip Davis
0a70e1ac63
configure: Check for struct icmpstat.
...
NetBSD no longer has statistics structures. Instead, it stores them as
arrays of integer counters. It's backwards compatible with the old
statistics structures, but the struct definitions are missing. This has
likely been broken on NetBSD for quite some time as a result.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-13 22:11:41 +02:00
Eric Pouech
d0833a0edf
nsiproxy: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 11:37:40 +02:00
Eric Pouech
73974636bd
nsiproxy: Add intermediate variables for sscanf on ULONG.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 11:37:36 +02:00
Eric Pouech
ff51493574
nsiproxy: Don't use long types for local types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 11:37:33 +02:00
Eric Pouech
f34f38bc20
nsiproxy: Don't use long types in internal structure / helpers.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 11:37:30 +02:00
Paul Gofman
6ba4c31e9d
nsiproxy: Avoid redundant pid mapping in tcp_conns_enumerate_all().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-23 18:42:13 +01:00
Eric Pouech
03ad57d2d0
nsiproxy.sys: Explicitly check for recvmsg() failure.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-11 09:31:46 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Huw Davies
65f04bcc97
nsiproxy: Allow the name length to be IFNAMSIZ - 1.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52214
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-23 09:59:04 +01:00
Alex Henrie
06923f61e2
nsiproxy: Fix use after free in icmp_send_echo (scan-build).
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-21 10:26:43 +01:00
Alex Henrie
cf7dd52091
nsiproxy: Fix memory leaks on error paths in get_ipv6_addr_scope_table (cppcheck).
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-20 10:13:52 +01:00
Alexandre Julliard
e5d69d9ee6
configure: Assume that sys/ioctl.h is available on Unix.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 18:43:51 +01:00
Alexandre Julliard
a7ac3de3b3
configure: Assume that sys/socket.h is available on Unix.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 18:43:51 +01:00
Alexandre Julliard
13ec7952e0
configure: Assume that unistd.h is available on Unix.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 18:43:51 +01:00
Alexandre Julliard
f8faa8ced5
configure: Assume that dirent.h is available on Unix.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 18:43:50 +01:00
Gabriel Ivăncescu
215c9275a8
nsiproxy: Fill the reply with the exact ICMP_ECHO_REPLY in the output buffer.
...
Because iphlpapi has no opportunity to convert the reply in async mode.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 11:57:59 +01:00
Gabriel Ivăncescu
2b13a6be44
nsiproxy: Use a context and fill the reply using a family op.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 11:57:34 +01:00
Gabriel Ivăncescu
5cd42975c3
nsiproxy: Fill the reply when it's not pending on the unix-side.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 11:57:27 +01:00
Gabriel Ivăncescu
5e8bd4d38e
nsiproxy: Move set_reply_ip_status to a family op.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-26 11:57:14 +01:00
Jacek Caban
a7ecf08040
include: Don't use DECLSPEC_HIDDEN for NTSYSAPI in Unix libs.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-05 20:09:20 +02:00
Huw Davies
19a6d409c0
nsiproxy: Implement the ability to cancel the listener.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-05 11:31:48 +02:00
Huw Davies
881577deaf
nsiproxy: Add support for parsing other icmp packets.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-05 11:31:47 +02:00
Huw Davies
fffd222b3d
nsiproxy: Parse any received ICMP_ECHO_REPLY.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-05 11:31:47 +02:00
Huw Davies
aa73a91125
nsiproxy: Wait for an icmp reply.
...
This patch doesn't yet recv() that reply.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-05 11:31:47 +02:00