Zebediah Figura : ws2_32: Move the getsockopt(IP_MULTICAST_IF) implementation to ntdll.
Module: wine Branch: master Commit: 946c4649e07e7a77936b5a48812d17e6b962f199 URL: https://source.winehq.org/git/wine.git/?a=commit;h=946c4649e07e7a77936b5a488... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Wed Jul 7 20:16:40 2021 -0500 ws2_32: Move the getsockopt(IP_MULTICAST_IF) implementation to ntdll. Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/socket.c | 3 +++ dlls/ws2_32/socket.c | 2 ++ include/wine/afd.h | 1 + 3 files changed, 6 insertions(+) diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c index eeb495b82c0..63f9bab36de 100644 --- a/dlls/ntdll/unix/socket.c +++ b/dlls/ntdll/unix/socket.c @@ -1750,6 +1750,9 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc return do_setsockopt( handle, io, IPPROTO_IP, IP_HDRINCL, in_buffer, in_size ); #endif + case IOCTL_AFD_WINE_GET_IP_MULTICAST_IF: + return do_getsockopt( handle, io, IPPROTO_IP, IP_MULTICAST_IF, out_buffer, out_size ); + default: { if ((code >> 16) == FILE_DEVICE_NETWORK) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index a354e6a31a5..f8784b094ae 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -2440,6 +2440,8 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level, return server_getsockopt( s, IOCTL_AFD_WINE_GET_IP_HDRINCL, optval, optlen ); case WS_IP_MULTICAST_IF: + return server_getsockopt( s, IOCTL_AFD_WINE_GET_IP_MULTICAST_IF, optval, optlen ); + case WS_IP_MULTICAST_LOOP: case WS_IP_MULTICAST_TTL: case WS_IP_OPTIONS: diff --git a/include/wine/afd.h b/include/wine/afd.h index 4e76bbce6e2..ad597b9814b 100644 --- a/include/wine/afd.h +++ b/include/wine/afd.h @@ -190,6 +190,7 @@ struct afd_get_events_params #define IOCTL_AFD_WINE_SET_IP_DROP_SOURCE_MEMBERSHIP WINE_AFD_IOC(245) #define IOCTL_AFD_WINE_GET_IP_HDRINCL WINE_AFD_IOC(246) #define IOCTL_AFD_WINE_SET_IP_HDRINCL WINE_AFD_IOC(247) +#define IOCTL_AFD_WINE_GET_IP_MULTICAST_IF WINE_AFD_IOC(248) struct afd_create_params {
participants (1)
-
Alexandre Julliard