[PATCH 4/4] ntdll: Fixup ICMP packet id if SOCK_DGRAM fallback is used.

Zebediah Figura zfigura at codeweavers.com
Fri Jul 8 17:24:29 CDT 2022


On 7/5/22 14:53, Paul Gofman wrote:
> From: Paul Gofman <pgofman at codeweavers.com>
> 
> Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
> ---
>   dlls/ntdll/unix/socket.c | 95 ++++++++++++++++++++++++++++++++++++++++
>   dlls/ws2_32/tests/sock.c |  2 +-
>   server/protocol.def      | 23 +++++++++-
>   server/sock.c            | 70 +++++++++++++++++++++++++++++
>   4 files changed, 187 insertions(+), 3 deletions(-)
> 

This is awfully complicated. Would it be possible to just get the kernel 
to give us the right ID back, perhaps by adding a new socket option?

For that matter, I guess the same goes for the first part of the 
series—if we could get a way to get a SOCK_RAW + IPPROTO_ICMP socket, 
presumably one where the kernel filters out anything unsafe, that'd be a 
lot nicer than fixing things up in Wine...



More information about the wine-devel mailing list