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
ea038894
Commit
ea038894
authored
Oct 01, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Introduce IOCTL_AFD_ACCEPT_INTO.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cb1594cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
afd.h
include/wine/afd.h
+1
-0
sock.c
server/sock.c
+21
-0
No files found.
include/wine/afd.h
View file @
ea038894
...
...
@@ -25,6 +25,7 @@
#define IOCTL_AFD_CREATE CTL_CODE(FILE_DEVICE_NETWORK, 200, METHOD_BUFFERED, FILE_WRITE_ACCESS)
#define IOCTL_AFD_ACCEPT CTL_CODE(FILE_DEVICE_NETWORK, 201, METHOD_BUFFERED, FILE_WRITE_ACCESS)
#define IOCTL_AFD_ACCEPT_INTO CTL_CODE(FILE_DEVICE_NETWORK, 202, METHOD_BUFFERED, FILE_WRITE_ACCESS)
#define IOCTL_AFD_ADDRESS_LIST_CHANGE CTL_CODE(FILE_DEVICE_NETWORK, 323, METHOD_BUFFERED, 0)
...
...
server/sock.c
View file @
ea038894
...
...
@@ -1108,6 +1108,27 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
return
0
;
}
case
IOCTL_AFD_ACCEPT_INTO
:
{
static
const
int
access
=
FILE_READ_ATTRIBUTES
|
FILE_WRITE_ATTRIBUTES
|
FILE_READ_DATA
;
struct
sock
*
acceptsock
;
obj_handle_t
handle
;
if
(
get_req_data_size
()
!=
sizeof
(
handle
))
{
set_error
(
STATUS_BUFFER_TOO_SMALL
);
return
0
;
}
handle
=
*
(
obj_handle_t
*
)
get_req_data
();
if
(
!
(
acceptsock
=
(
struct
sock
*
)
get_handle_obj
(
current
->
process
,
handle
,
access
,
&
sock_ops
)))
return
0
;
if
(
accept_into_socket
(
sock
,
acceptsock
))
acceptsock
->
wparam
=
handle
;
release_object
(
acceptsock
);
return
0
;
}
case
IOCTL_AFD_ADDRESS_LIST_CHANGE
:
if
((
sock
->
state
&
FD_WINE_NONBLOCKING
)
&&
async_is_blocking
(
async
))
{
...
...
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