Francois Gouget
631fde70b8
inetmib1: Fix the IPv4 address network order for comparisons.
...
compareUdpRow() was already performing the byte-swaps but
compareIpAddrRow() and compareIpForwardRow() need them too.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Francois Gouget
85c6caf65b
inetmib1: Avoid overflows in IPv4 address comparisons.
...
The difference between two ULONGs may not fit in an int, causing
comparison errors.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-16 22:05:33 +01:00
Eric Pouech
adf47c60e6
inetmib1: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 10:59:02 +01:00
Bernhard Übelacker
9145b551b2
inetmib1: Fix endianess issue with dwLocalAddr and dwLocalPort.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52224
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-17 17:56:00 +01:00
Alexandre Julliard
ea6eea0bba
inetmib1: Make bsearch() callback functions cdecl.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-22 09:58:00 +02:00
Alexandre Julliard
7fa73a79af
inetmib1: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-06 09:01:57 +02:00
Michael Stefaniuc
c9329d6898
inetmib1: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Alexandre Julliard
d6976d7e00
inetmib1: Don't bother to free memory at process exit.
2013-05-15 10:20:16 +02:00
Francois Gouget
3fe2d6e5fd
include: Update the nldef.h and *mib.h headers.
2011-12-15 10:49:17 +01:00
Frédéric Delanoy
699fb02d10
inetmib1: Avoid idempotent operation in findSupportedQuery function (Clang).
2011-10-14 20:26:42 +02:00
Gerald Pfeifer
eb087ae860
inetmib1: Remove unused parameter pPduType from mapStructEntryToValue.
2011-05-25 17:53:48 +02:00
Juan Lang
960a1a9ab7
inetmib1: Copy an IP net row's physical address using a type-specific helper function, rather than using a generic helper function which made an invalid alignment assumption.
2009-12-09 12:19:09 +01:00
Juan Lang
950202a59b
inetmib1: Return SNMP_ERRORSTATUS_NOSUCHNAME for an interface's description if it has none.
2009-12-09 12:19:02 +01:00
Juan Lang
91d62162da
inetmib1: Return SNMP_ERRORSTATUS_NOSUCHNAME for an interface's physical address if it has none.
2009-12-08 12:35:55 +01:00
Juan Lang
632b759ffe
inetmib1: Return error value from MIB copy functions.
2009-12-08 12:35:45 +01:00
Juan Lang
7060f8961a
inetmib1: Don't claim a value is dynamic when it isn't.
2009-12-08 12:35:38 +01:00
Rob Shearman
d0f93223b1
inetmib1: Fix off-by-one error in findNextOidInTable.
...
index is 1-based, so take that into account when calculating the
pointer to pass into the compare function.
2009-12-02 16:31:22 +01:00
Juan Lang
6a025c5a32
inetmib1: Rename a poorly named variable.
2009-05-18 14:31:06 +02:00
Juan Lang
f95324c69e
inetmib1: Don't query the same OID twice if it returns SNMP_ERRORSTATUS_NOSUCHNAME the first time.
2009-05-15 10:27:25 +02:00
Juan Lang
9b65338ef9
inetmib1: Make sure the successor to an item doesn't have an identical key as it, to prevent infinite loops in table enumeration.
2009-05-15 10:27:14 +02:00
Juan Lang
52722e6638
inetmib1: Fix memory leaks.
2009-05-13 12:02:13 +02:00
Juan Lang
782efb5702
inetmib1: Return errors from SnmpExtensionQuery.
2009-05-08 12:20:57 +02:00
Juan Lang
1c547cdc44
inetmib1: Return error codes from internal query functions.
2009-05-08 12:20:52 +02:00
Juan Lang
a548d5a29f
inetmib1: Check return values from SnmpUtilOid functions in utility functions.
2009-05-08 12:20:41 +02:00
Rico Schüller
c62529a7ae
inetmib1: Fix wrong arguments.
2008-08-05 14:09:37 +02:00
Francois Gouget
eb16f43bdf
Add some API documentation stubs to make winapi_check happy.
2008-07-28 11:34:45 +02:00
Alexandre Julliard
5530977fdb
inetmib1: Check for failure of the iphlpapi functions instead of blindly trusting them.
2008-07-22 19:48:45 +02:00
Juan Lang
4b45b24d9d
inetmib1: Free memory when DLL is unloaded.
2008-06-30 12:37:46 +02:00
Juan Lang
3646816247
inetmib1: Don't prefer the native version, it doesn't do much anyway.
2008-06-30 12:37:42 +02:00
Juan Lang
8f66c13e35
inetmib1: Support the MIB2 UDP table.
2008-06-30 12:37:37 +02:00
Juan Lang
cf3d35cf15
inetmib1: Make table searching function into a generic helper.
2008-06-30 12:37:32 +02:00
Juan Lang
9e919b8ae9
inetmib1: Sort the tables keyed by IP address, and use bsearch to find entries in them.
2008-06-25 23:31:05 +02:00
Juan Lang
677946941c
inetmib1: Support the MIB2 UDP statistics.
2008-06-25 23:30:38 +02:00
Juan Lang
0fb70c6d8e
inetmib1: Use a helper function to set the Oid with an item.
2008-06-25 23:30:26 +02:00
Juan Lang
81b0db2493
inetmib1: Use a helper function to set the Oid with an integer instance.
2008-06-25 23:30:22 +02:00
Juan Lang
d3f0e8c9db
inetmib1: Use a helper function to set the Oid with an IP address-based instance.
2008-06-25 23:30:19 +02:00
Juan Lang
e5afadab3f
inetmib1: Support the MIB2 IP net (ARP) table.
2008-06-25 23:29:56 +02:00
Juan Lang
d3baf1dcda
inetmib1: Support the MIB2 IP route table.
2008-06-25 23:29:49 +02:00
Juan Lang
74310cb0e3
inetmib1: Support the MIB2 TCP statistics.
2008-06-25 23:29:45 +02:00
Juan Lang
297190fde2
inetmib1: Use a helper function to get the item and instance of the MIB2 IP address table.
2008-06-25 23:29:33 +02:00
Juan Lang
969bc943ac
inetmib1: Use a helper function to get the item from the Oid.
2008-06-25 23:29:22 +02:00
Juan Lang
3aa93652a4
inetmib1: Use a helper function to get the item and instance of the MIB2 interface table.
2008-06-25 23:29:09 +02:00
Juan Lang
ea20d6b793
inetmib1: Support the MIB2 IP address table.
2008-06-25 11:03:06 +02:00
Juan Lang
7d85506a9d
inetmib1: Support the MIB2 ICMP statistics.
2008-06-25 11:02:49 +02:00
Juan Lang
b77719c7fb
inetmib1: Support the MIB2 IP statistics.
2008-06-25 11:02:25 +02:00
Juan Lang
c531c11734
inetmib1: Support the MIB2 interface table.
2008-06-25 11:00:39 +02:00
Juan Lang
f913252ea2
inetmib1: Support querying the MIB2 number of interfaces.
2008-06-25 10:59:28 +02:00
Juan Lang
dedff1329f
inetmib1: Implement SnmpExtensionQuery.
2008-06-25 10:59:07 +02:00
Juan Lang
f28cd51d0d
inetmib1: Add initialization function for getting the MIB2 number of interfaces.
2008-06-25 10:58:52 +02:00
Juan Lang
709a0a46e2
inetmib1: Add a mechanism for initializing supported OIDs, and use it in SnmpExtensionInit.
2008-06-25 10:58:37 +02:00