ws2_32: SO_OOBINLINE sockets must always return TRUE to SIOCATMARK request

Bruno Jesus 00cpxxx at gmail.com
Tue Sep 13 07:33:46 CDT 2011


When a socket sets OOBINLINE it wants urgent data to be received
in-band. Windows sockets always return TRUE when a socket is
configured as OOBINLINE because all data is treated like normal data.
Fixes the annoying telnet protocol bug in telnet applications.

The code was separated from FIONREAD because new changes will be made,
I'm working with André Hentschel to close other SIOCATMARK issues. If
this patch gets accepted please keep the variables oob and atmark,
they will be used in the future.

Fixes bug #11621 and maybe #18372.
Tested telnet software: CICS, NetTerm, putty and SecureCRT.

Bibliography:
http://msdn.microsoft.com/en-us/library/ms741621%28v=vs.85%29.aspx -
SIOCATMARK returns FALSE if URGENT DATA
http://msdn.microsoft.com/en-us/library/ms740102%28v=vs.85%29.aspx -
See last  paragraph
http://msdn.microsoft.com/en-us/library/ms738573%28v=vs.85%29.aspx -
See SIOCATMARK remark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SO_OOBINLINE-sockets-must-always-return-TRUE--3.patch
Type: text/x-patch
Size: 3661 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110913/752818c8/attachment-0001.bin>


More information about the wine-patches mailing list