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
f3fa809e
Commit
f3fa809e
authored
Sep 07, 2014
by
Marko Hauptvogel
Committed by
Alexandre Julliard
Sep 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Implement icmpv6 create function.
parent
3186e72f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
icmp.c
dlls/iphlpapi/icmp.c
+31
-0
iphlpapi.spec
dlls/iphlpapi/iphlpapi.spec
+1
-1
No files found.
dlls/iphlpapi/icmp.c
View file @
f3fa809e
...
...
@@ -148,6 +148,37 @@ static int in_cksum(u_short *addr, int len)
*/
/***********************************************************************
* Icmp6CreateFile (IPHLPAPI.@)
*/
HANDLE
WINAPI
Icmp6CreateFile
(
VOID
)
{
icmp_t
*
icp
;
int
sid
=
socket
(
AF_INET6
,
SOCK_RAW
,
IPPROTO_ICMPV6
);
if
(
sid
<
0
)
{
/* Mac OS X supports non-privileged ICMP via SOCK_DGRAM type. */
sid
=
socket
(
AF_INET6
,
SOCK_DGRAM
,
IPPROTO_ICMPV6
);
}
if
(
sid
<
0
)
{
ERR_
(
winediag
)(
"Failed to use ICMPV6 (network ping), this requires special permissions.
\n
"
);
SetLastError
(
ERROR_ACCESS_DENIED
);
return
INVALID_HANDLE_VALUE
;
}
icp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
icp
));
if
(
icp
==
NULL
)
{
close
(
sid
);
SetLastError
(
IP_NO_RESOURCES
);
return
INVALID_HANDLE_VALUE
;
}
icp
->
sid
=
sid
;
icp
->
default_opts
.
OptionsSize
=
IP_OPTS_UNKNOWN
;
return
(
HANDLE
)
icp
;
}
/***********************************************************************
* IcmpCreateFile (IPHLPAPI.@)
*/
HANDLE
WINAPI
IcmpCreateFile
(
VOID
)
...
...
dlls/iphlpapi/iphlpapi.spec
View file @
f3fa809e
...
...
@@ -150,7 +150,7 @@
#@ stub GetUnicastIpAddressEntry
#@ stub GetUnicastIpAddressTable
@ stdcall GetUniDirectionalAdapterInfo( ptr ptr )
#@ stub Icmp6CreateFile
@ stdcall Icmp6CreateFile()
#@ stub Icmp6ParseReplies
#@ stub Icmp6SendEcho2
@ stdcall IcmpCloseHandle(ptr)
...
...
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