Commit graph

55 commits

Author SHA1 Message Date
Alexandre Julliard acad49573a makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
Paul Gofman 79165b1624 nsi: Implement NsiCancelChangeNotification(). 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 b8fa6de2c2 nsi: Cache nsi device handle. 2023-07-31 18:22:09 +09:00
Paul Gofman 64c6819553 nsi/tests: Add test for change notifications. 2023-07-31 18:22:09 +09:00
Paul Gofman e06093cbae nsi: Add stub for NsiCancelChangeNotification. 2023-07-31 18:22:09 +09:00
Paul Gofman 671412d3bb nsi: Add stubs for NsiRequestChangeNotification[Ex]. 2023-07-31 18:22:08 +09:00
Francois Gouget 31792f4370 nsi: Add some margin to the tables size in NsiAllocateAndGetTable().
The table size typically keeps increasing such that in some cases the
size we got is already too small by the time we try to get the table
content in the next iteration.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54328
2023-01-19 19:17:27 +01:00
Francois Gouget cc32eb6c0d nsi: Return an error if NsiAllocateAndGetTable() fails to allocate the tables.
err must be set if the last attempt to allocate the tables fails.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54328
2023-01-19 19:17:25 +01:00
Huw Davies fad925d582 nsi: Update struct nsi_tcp_conn_dynamic for Windows 11. 2022-10-14 21:52:55 +02:00
Paul Gofman 7ef04f4118 nsi: Allocate a small buffer at once in NsiAllocateAndGetTable().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-17 16:49:17 +02:00
Eric Pouech 4defa8d460 nsi/tests: 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:23 +02:00
Eric Pouech 4481d0359c nsi: 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-02-21 18:55:22 +01:00
Fabian Maurer b6a93c9676 nsi/tests: Avoid "misleading indentation" warnings.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-28 21:10:20 +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
Alexandre Julliard 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Francois Gouget d5dd192027 nsi/tests: Improve the error messages.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-03 21:43:03 +02:00
Huw Davies e91b19bf38 iphlpapi: Implement GetUdpStatisticsEx() on top of nsi.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-18 11:07:41 +02:00
Huw Davies d6278ea021 nsiproxy: Implement UDP stats get_all_parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-18 11:07:39 +02:00
Huw Davies 7841c8af1a nsiproxy: Implement UDP endpoint enumerate_all.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-18 11:07:20 +02:00
Huw Davies e152d40641 nsiproxy: Add support for TCP pid lookup.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:43:20 +02:00
Huw Davies 40a60061d7 nsiproxy: Add support for IPv6 scope ids.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:43:18 +02:00
Huw Davies 14fc764756 nsiproxy: Implement TCP connections enumerate_all.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:43:15 +02:00
Huw Davies 4716138d07 iphlpapi: Implement GetTcpStatisticsEx() on top of nsi.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-13 11:38:14 +02:00
Huw Davies c9680e8991 nsiproxy: Implement TCP stats get_all_parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-13 11:38:12 +02:00
Huw Davies cf434fa313 nsiproxy: Implement IPv6 icmpstats get_all_parameters on linux.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-12 17:30:21 +02:00
Huw Davies 23ee1ebea6 nsiproxy: Implement IPv4 icmpstats get_all_parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-12 17:30:21 +02:00
Huw Davies 91494ae6f2 iphlpapi: Implement GetIpStatisticsEx() on top of nsi.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-11 23:00:50 +02:00
Huw Davies a784950260 nsiproxy: Implement IP compartment get_all_paramters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-11 23:00:50 +02:00
Huw Davies 68498fc3e9 nsiproxy: Implement IPv6 ipstats get_all_parameters on linux.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-11 23:00:50 +02:00
Huw Davies 2f3fc13c8c nsiproxy: Implement IPv4 ipstats get_all_parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-11 23:00:50 +02:00
Huw Davies ae3e512b77 iphlpapi: Implement GetIpNetTable2() on top of nsi.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-10 17:53:54 +02:00
Huw Davies c09c65f65c nsiproxy: Implement IPv4 neighbour enumerate_all.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-10 17:53:54 +02:00
Huw Davies 17e2d5c1ca dnsapi: Add support for DnsConfigSearchList.
This doesn't appear to be implemented on Windows, however it will be
needed by iphlpapi.dll.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-03 23:40:55 +02:00
Huw Davies 8f207fe7a8 iphlpapi: Implement GetIpForwardTable2().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-02 11:28:33 +02:00
Huw Davies f1793fd8bc nsiproxy: Implement IPv4 forward enumerate_all.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-02 11:28:31 +02:00
Huw Davies 2f3ab0b242 iphlpapi: Implement GetUnicastIpAddressTable() on top of nsi.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 12:16:10 +02:00
Huw Davies 4c7c7d07d4 nsiproxy: Implement IP unicast get_all_parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 12:15:59 +02:00
Huw Davies 0978421102 nsiproxy: Implement IP unicast enumerate_all.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 12:14:03 +02:00
Huw Davies ecbd997819 nsiproxy: Implement NDIS index to luid get_parameter.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-02 16:53:50 +02:00
Huw Davies f5238be330 nsiproxy: Implement NDIS ifinfo get_parameter for a few parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies 794ecdc524 nsi: Implement NsiGetParameterEx().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies b0ceee3476 nsiproxy: Implement NDIS ifinfo get_all_parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies 0f25a94672 nsi: Implement NsiGetAllParametersEx().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-01 22:34:31 +02:00
Huw Davies f579cea53b nsi: Implement NsiAllocateAndGetTable() and NsiFreeTable().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-30 20:01:20 +02:00
Huw Davies bc4db065c0 nsi: Implement NsiEnumerateObjectsAllParameterEx().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-29 19:55:22 +02:00
Huw Davies f4a0b90f03 nsi: Add a stub implementation of NsiGetParameterEx().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-29 15:32:46 +02:00
Huw Davies 4ed3eb477f nsi: Add a stub implementation of NsiGetAllParametersEx().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:28 +02:00
Huw Davies 2bde6ccddb nsi: Add a stub implementation of NsiEnumerateObjectsAllParametersEx().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:28 +02:00
Huw Davies 687650db1b nsi: Add a stub implementation of NsiEnumerateObjectsAllParameters().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-28 19:43:28 +02:00