This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ximaera
Recipients ximaera
Date 2011-09-25.17:12:18
SpamBayes Score 2.5195703e-08
Marked as misclassified No
Message-id <1316970740.88.0.976956666008.issue13045@psf.upfronthosting.co.za>
In-reply-to
Content
Currently the Python implementation of socket.getsockopt allows only option name, level name and buffer size as its arguments. However, IEEE Standard 1003.1-2008 allows one further argument -- an actual buffer to modify at the kernel level. POSIX does not prohibit the kernel from reading this buffer before modification, and the contents of the buffer may be used together with option and level names to specify an exact socket option to return.

In fact, this is how some applications already work, ipset (http://ipset.netfilter.org/) being a noticeable example.

The patch, written against Python 3.2 and aiming at providing this functionality, is attached. It may also apply to previous Python versions, though it's not tested against anything except Python 3.2.
History
Date User Action Args
2011-09-25 17:12:20ximaerasetrecipients: + ximaera
2011-09-25 17:12:20ximaerasetmessageid: <1316970740.88.0.976956666008.issue13045@psf.upfronthosting.co.za>
2011-09-25 17:12:20ximaeralinkissue13045 messages
2011-09-25 17:12:20ximaeracreate