Commit 77a21c6e authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Check for some more IP socket options at compile time.

NetBSD doesn't provide these. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51843
parent ca7684f3
...@@ -1998,11 +1998,15 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc ...@@ -1998,11 +1998,15 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
case IOCTL_AFD_WINE_SET_IP_ADD_MEMBERSHIP: case IOCTL_AFD_WINE_SET_IP_ADD_MEMBERSHIP:
return do_setsockopt( handle, io, IPPROTO_IP, IP_ADD_MEMBERSHIP, in_buffer, in_size ); return do_setsockopt( handle, io, IPPROTO_IP, IP_ADD_MEMBERSHIP, in_buffer, in_size );
#ifdef IP_ADD_SOURCE_MEMBERSHIP
case IOCTL_AFD_WINE_SET_IP_ADD_SOURCE_MEMBERSHIP: case IOCTL_AFD_WINE_SET_IP_ADD_SOURCE_MEMBERSHIP:
return do_setsockopt( handle, io, IPPROTO_IP, IP_ADD_SOURCE_MEMBERSHIP, in_buffer, in_size ); return do_setsockopt( handle, io, IPPROTO_IP, IP_ADD_SOURCE_MEMBERSHIP, in_buffer, in_size );
#endif
#ifdef IP_BLOCK_SOURCE
case IOCTL_AFD_WINE_SET_IP_BLOCK_SOURCE: case IOCTL_AFD_WINE_SET_IP_BLOCK_SOURCE:
return do_setsockopt( handle, io, IPPROTO_IP, IP_BLOCK_SOURCE, in_buffer, in_size ); return do_setsockopt( handle, io, IPPROTO_IP, IP_BLOCK_SOURCE, in_buffer, in_size );
#endif
case IOCTL_AFD_WINE_GET_IP_DONTFRAGMENT: case IOCTL_AFD_WINE_GET_IP_DONTFRAGMENT:
{ {
...@@ -2066,8 +2070,10 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc ...@@ -2066,8 +2070,10 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
case IOCTL_AFD_WINE_SET_IP_DROP_MEMBERSHIP: case IOCTL_AFD_WINE_SET_IP_DROP_MEMBERSHIP:
return do_setsockopt( handle, io, IPPROTO_IP, IP_DROP_MEMBERSHIP, in_buffer, in_size ); return do_setsockopt( handle, io, IPPROTO_IP, IP_DROP_MEMBERSHIP, in_buffer, in_size );
#ifdef IP_ADD_SOURCE_MEMBERSHIP
case IOCTL_AFD_WINE_SET_IP_DROP_SOURCE_MEMBERSHIP: case IOCTL_AFD_WINE_SET_IP_DROP_SOURCE_MEMBERSHIP:
return do_setsockopt( handle, io, IPPROTO_IP, IP_DROP_SOURCE_MEMBERSHIP, in_buffer, in_size ); return do_setsockopt( handle, io, IPPROTO_IP, IP_DROP_SOURCE_MEMBERSHIP, in_buffer, in_size );
#endif
#ifdef IP_HDRINCL #ifdef IP_HDRINCL
case IOCTL_AFD_WINE_GET_IP_HDRINCL: case IOCTL_AFD_WINE_GET_IP_HDRINCL:
...@@ -2201,8 +2207,10 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc ...@@ -2201,8 +2207,10 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
case IOCTL_AFD_WINE_SET_IP_TTL: case IOCTL_AFD_WINE_SET_IP_TTL:
return do_setsockopt( handle, io, IPPROTO_IP, IP_TTL, in_buffer, in_size ); return do_setsockopt( handle, io, IPPROTO_IP, IP_TTL, in_buffer, in_size );
#ifdef IP_UNBLOCK_SOURCE
case IOCTL_AFD_WINE_SET_IP_UNBLOCK_SOURCE: case IOCTL_AFD_WINE_SET_IP_UNBLOCK_SOURCE:
return do_setsockopt( handle, io, IPPROTO_IP, IP_UNBLOCK_SOURCE, in_buffer, in_size ); return do_setsockopt( handle, io, IPPROTO_IP, IP_UNBLOCK_SOURCE, in_buffer, in_size );
#endif
#ifdef IP_UNICAST_IF #ifdef IP_UNICAST_IF
case IOCTL_AFD_WINE_GET_IP_UNICAST_IF: case IOCTL_AFD_WINE_GET_IP_UNICAST_IF:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment