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
e5ec9aeb
Commit
e5ec9aeb
authored
Mar 10, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Implemented AllocateAndGetIpNetTableFromStack for Solaris.
parent
8f481bef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
ipstats.c
dlls/iphlpapi/ipstats.c
+29
-0
No files found.
dlls/iphlpapi/ipstats.c
View file @
e5ec9aeb
...
...
@@ -1280,6 +1280,35 @@ DWORD WINAPI AllocateAndGetIpNetTableFromStack(PMIB_IPNETTABLE *ppIpNetTable, BO
}
else
ret
=
ERROR_NOT_SUPPORTED
;
}
#elif defined(HAVE_SYS_TIHDR_H) && defined(T_OPTMGMT_ACK)
{
void
*
data
;
int
fd
,
len
,
namelen
;
mib2_ipNetToMediaEntry_t
*
entry
;
char
name
[
64
];
if
((
fd
=
open_streams_mib
(
NULL
))
!=
-
1
)
{
if
((
data
=
read_mib_entry
(
fd
,
MIB2_IP
,
MIB2_IP_MEDIA
,
&
len
)))
{
for
(
entry
=
data
;
(
char
*
)(
entry
+
1
)
<=
(
char
*
)
data
+
len
;
entry
++
)
{
row
.
dwPhysAddrLen
=
min
(
entry
->
ipNetToMediaPhysAddress
.
o_length
,
MAXLEN_PHYSADDR
);
memcpy
(
row
.
bPhysAddr
,
entry
->
ipNetToMediaPhysAddress
.
o_bytes
,
row
.
dwPhysAddrLen
);
row
.
dwAddr
=
entry
->
ipNetToMediaNetAddress
;
row
.
dwType
=
entry
->
ipNetToMediaType
;
namelen
=
min
(
sizeof
(
name
)
-
1
,
entry
->
ipNetToMediaIfIndex
.
o_length
);
memcpy
(
name
,
entry
->
ipNetToMediaIfIndex
.
o_bytes
,
namelen
);
name
[
namelen
]
=
0
;
getInterfaceIndexByName
(
name
,
&
row
.
dwIndex
);
if
(
!
(
table
=
append_ipnet_row
(
heap
,
flags
,
table
,
&
count
,
&
row
)))
break
;
}
HeapFree
(
GetProcessHeap
(),
0
,
data
);
}
close
(
fd
);
}
else
ret
=
ERROR_NOT_SUPPORTED
;
}
#elif defined(HAVE_SYS_SYSCTL_H) && defined(NET_RT_DUMP)
{
int
mib
[]
=
{
CTL_NET
,
PF_ROUTE
,
0
,
AF_INET
,
NET_RT_FLAGS
,
RTF_LLINFO
};
...
...
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