xref: /reactos/dll/win32/iphlpapi/merge-notes.txt (revision c501d811)
1GetAdaptersInfo --
2Wine uses: Software\\Wine\\Wine\\Config\\Network
3     -- Wins support is todo so this part isn't so important.
4     -- Overall, workable
5Wine uses ansi functions
6
7-- Done --
8GetNetworkParams --
9     -- Make workable interface for _res
10        -- Wine based on real _res
11	-- Reactos based on my enumerator funcs
12
13-- Done -- Prints route info on windows
14ROUTE PRINT:
15
16iphlpapi_main.c:137 - ppIfTable 0104bd80, bOrder 1, heap 0xa0000000, flags 0x00000001
17 - AllocateAndGetIfTableFromStack
18iphlpapi_main.c:898 - pIfTable 0104bd00, pdwSize 0104bd00, bOrder 1
19 - GetIfTable
20(tcpip/main.c:168)(TiCreateFileObject) No EA information in IRP.
21 - We need a special case of no EA information to handle these ioctls in
22   tcpip.sys
23iphlpapi_main.c:939 - returning 122
24iphlpapi_main.c:898 - pIfTable 0104bd00, pdwSize 0104bd00, bOrder 1
25 - GetIfTable again
26(tcpip/main.c:168)(TiCreateFileObject) No EA information in IRP.
27(tcpip/main.c:168)(TiCreateFileObject) No EA information in IRP.
28getInterfaceIndexTable: numInterfaces: 0
29iphlpapi_main.c:939 - returning 0
30iphlpapi_main.c:149 - returning 0
31iphlpapi_main.c:213 - ppIpForwardTable 0104bd78, bOrder 1, heap 0xa0000000, flags 0x00000001
32 - AllocateAndGetIpForwardTableFromStack
33iphlpapi_main.c:1151 - pIpForwardTable 00000000, pdwSize 0104bd00, bOrder 1
34 - GetIpForwardTable
35iphlpapi_main.c:1214 - returning 122
36iphlpapi_main.c:1151 - pIpForwardTable a0001d68, pdwSize 0104bd00, bOrder 1
37 - GetIpForwardTable again
38iphlpapi_main.c:1214 - returning 122
39iphlpapi_main.c:225 - returning 122
40
41Overall architecture of the ifenum and ipstats functions.
42
43Right now, I rely heavily on a couple of enumeration functions.
44What I need to do is consolidate them and reduce traffic on the ioctl.
45
46There are two things I need to do:
47
481. Lookup an interface by index (or name)
492. Get the IP info
50
51I have too many functions that loop over various things.
52
53What I need are the get** functions from ipstats (which I think are ok)
54And then to change the detritus in ifenum to be all based on
55getInterfaceIndexTable and getInterfaceMibByIndex, getInterfaceMibByName
56
57Implementing name functions:
58
59Ok here's what i can synthesize from unclegarlic and vizzini:
60
61the IP_ADAPTER_INFO struct should contain the guid part of the registry key
62name that holds the adapter
63
64the snmp-style info functions should return a nice name, which is also from
65the registry.
66
67In no case is the adapter OID for name used.  According to vizzini, this
68OID is never used and probably almost never implemented.
69
70This is different from the wine case because there are two different names
71returned from the underlying layer.
72