[New-bugs-announce] [issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)
report at bugs.python.org
Mon Aug 22 05:26:52 CEST 2011
New submission from Michael Farrell <micolous+py at gmail.com>:
Recently, iptables has added support for transparent proxies using a new TPROXY target on Linux2. This requires a new option in setsockopts, IP_TRANSPARENT. There's some background on the feature here:
I've created a patch to the header regen scripts on Linux2 that should expose this functionality to Python. They'll need to be run to generate the headers again.
I notice that `_socket` doesn't include the names of socket options from this location, instead using a local database. I had trouble trying to get `linux/in.h` included in that file, so I included a work-around which defines it statically for now.
It needs some work but it causes a lot of breakage when I try to do this -- and I don't know enough about the Linux sockets API to fix this properly.
components: Library (Lib)
title: Missing new setsockopts in Linux (eg: IP_TRANSPARENT)
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file22984/extra_linux_sockopts.diff
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce