Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1e263e66
Commit
1e263e66
authored
Jan 25, 2007
by
Mark Adams
Committed by
Alexandre Julliard
Jan 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Filter out no-ip addresses when building ip address table.
parent
a91d6919
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ifenum.c
dlls/iphlpapi/ifenum.c
+10
-2
No files found.
dlls/iphlpapi/ifenum.c
View file @
1e263e66
...
...
@@ -696,7 +696,11 @@ static DWORD enumIPAddresses(PDWORD pcAddresses, struct ifconf *ifc)
if
(
ioctlRet
==
0
)
{
ifPtr
=
ifc
->
ifc_buf
;
while
(
ifPtr
&&
ifPtr
<
ifc
->
ifc_buf
+
ifc
->
ifc_len
)
{
numAddresses
++
;
struct
ifreq
*
ifr
=
(
struct
ifreq
*
)
ifPtr
;
if
(
ifr
->
ifr_addr
.
sa_family
==
AF_INET
)
numAddresses
++
;
ifPtr
+=
ifreq_len
((
struct
ifreq
*
)
ifPtr
);
}
}
...
...
@@ -752,6 +756,11 @@ DWORD getIPAddrTable(PMIB_IPADDRTABLE *ppIpAddrTable, HANDLE heap, DWORD flags)
while
(
!
ret
&&
ifPtr
&&
ifPtr
<
ifc
.
ifc_buf
+
ifc
.
ifc_len
)
{
struct
ifreq
*
ifr
=
(
struct
ifreq
*
)
ifPtr
;
ifPtr
+=
ifreq_len
(
ifr
);
if
(
ifr
->
ifr_addr
.
sa_family
!=
AF_INET
)
continue
;
ret
=
getInterfaceIndexByName
(
ifr
->
ifr_name
,
&
(
*
ppIpAddrTable
)
->
table
[
i
].
dwIndex
);
memcpy
(
&
(
*
ppIpAddrTable
)
->
table
[
i
].
dwAddr
,
ifr
->
ifr_addr
.
sa_data
+
2
,
...
...
@@ -770,7 +779,6 @@ DWORD getIPAddrTable(PMIB_IPADDRTABLE *ppIpAddrTable, HANDLE heap, DWORD flags)
(
*
ppIpAddrTable
)
->
table
[
i
].
unused1
=
0
;
(
*
ppIpAddrTable
)
->
table
[
i
].
wType
=
0
;
ifPtr
+=
ifreq_len
(
ifr
);
i
++
;
}
}
...
...
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