Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e6f491aa
Commit
e6f491aa
authored
Jan 07, 2004
by
Juan Lang
Committed by
Alexandre Julliard
Jan 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the dwBCastAddr member of MIB_IPADDRROW, added a test program.
parent
502f6c56
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
3 deletions
+28
-3
configure
configure
+0
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/iphlpapi/Makefile.in
+2
-0
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+8
-3
.cvsignore
dlls/iphlpapi/tests/.cvsignore
+4
-0
Makefile.in
dlls/iphlpapi/tests/Makefile.in
+13
-0
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+0
-0
No files found.
configure
View file @
e6f491aa
This diff is collapsed.
Click to expand it.
configure.ac
View file @
e6f491aa
...
...
@@ -1515,6 +1515,7 @@ dlls/icmp/Makefile
dlls/imagehlp/Makefile
dlls/imm32/Makefile
dlls/iphlpapi/Makefile
dlls/iphlpapi/tests/Makefile
dlls/kernel/Makefile
dlls/kernel/tests/Makefile
dlls/lzexpand/Makefile
...
...
dlls/iphlpapi/Makefile.in
View file @
e6f491aa
...
...
@@ -10,6 +10,8 @@ C_SRCS = \
iphlpapi_main.c
\
ipstats.c
SUBDIRS
=
tests
@MAKE_DLL_RULES@
### Dependencies:
dlls/iphlpapi/iphlpapi_main.c
View file @
e6f491aa
...
...
@@ -602,7 +602,7 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
memset
(
pAdapterInfo
,
0
,
size
);
if
(
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"
\\
Software
\\
Wine
\\
Wine
\\
Config
\\
Network"
,
0
,
KEY_READ
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
Network"
,
0
,
KEY_READ
,
&
hKey
)
==
ERROR_SUCCESS
)
{
DWORD
size
=
sizeof
(
primaryWINS
.
String
);
unsigned
long
addr
;
...
...
@@ -1042,7 +1042,7 @@ DWORD WINAPI GetIpAddrTable(PMIB_IPADDRTABLE pIpAddrTable, PULONG pdwSize, BOOL
ret
=
ERROR_INSUFFICIENT_BUFFER
;
}
else
{
DWORD
ndx
;
DWORD
ndx
,
bcast
;
pIpAddrTable
->
dwNumEntries
=
0
;
for
(
ndx
=
0
;
ndx
<
table
->
numIndexes
;
ndx
++
)
{
...
...
@@ -1051,8 +1051,13 @@ DWORD WINAPI GetIpAddrTable(PMIB_IPADDRTABLE pIpAddrTable, PULONG pdwSize, BOOL
getInterfaceIPAddrByIndex
(
table
->
indexes
[
ndx
]);
pIpAddrTable
->
table
[
ndx
].
dwMask
=
getInterfaceMaskByIndex
(
table
->
indexes
[
ndx
]);
/* the dwBCastAddr member isn't the broadcast address, it indicates
* whether the interface uses the 1's broadcast address (1) or the
* 0's broadcast address (0).
*/
bcast
=
getInterfaceBCastAddrByIndex
(
table
->
indexes
[
ndx
]);
pIpAddrTable
->
table
[
ndx
].
dwBCastAddr
=
getInterfaceBCastAddrByIndex
(
table
->
indexes
[
ndx
])
;
(
bcast
&
pIpAddrTable
->
table
[
ndx
].
dwMask
)
?
1
:
0
;
/* FIXME: hardcoded reasm size, not sure where to get it */
pIpAddrTable
->
table
[
ndx
].
dwReasmSize
=
65535
;
pIpAddrTable
->
table
[
ndx
].
unused1
=
0
;
...
...
dlls/iphlpapi/tests/.cvsignore
0 → 100644
View file @
e6f491aa
Makefile
iphlpapi.ok
iphlpapi_test.exe.spec.c
testlist.c
dlls/iphlpapi/tests/Makefile.in
0 → 100644
View file @
e6f491aa
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
iphlpapi.dll
IMPORTS
=
iphlpapi
CTESTS
=
\
iphlpapi.c
@MAKE_TEST_RULES@
### Dependencies:
dlls/iphlpapi/tests/iphlpapi.c
0 → 100644
View file @
e6f491aa
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment