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.

classification
Title: SO_MARK support for Linux
Type: enhancement Stage: resolved
Components: Extension Modules Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: jpv, neologix, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2014-09-10 01:42 by jpv, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-so_mark.patch jpv, 2014-09-10 01:42 Patch for python 2.7 and 3.4
Messages (4)
msg226673 - (view) Author: (jpv) Date: 2014-09-10 01:42
Please add support for SO_MARK in socket module.

From man 7 socket:

SO_MARK (since Linux 2.6.25): Set the mark for each packet sent through this  socket  (similar to  the  netfilter  MARK target but socket-based).  Changing the mark can be used for mark-based routing without netfilter or for packet    filtering. Setting   this   option   requires   the CAP_NET_ADMIN capability.
msg227073 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-09-18 22:19
New changeset ca0aa0d89273 by Charles-François Natali in branch 'default':
Issue #22378: socket module: add SO_MARK.
https://hg.python.org/cpython/rev/ca0aa0d89273
msg227074 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2014-09-18 22:20
Thanks, I committed a simpler version of the patch.
msg227075 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-09-18 22:21
> Patch for python 2.7 and 3.4

Only Python 3.5 accept new features.
History
Date User Action Args
2022-04-11 14:58:07adminsetgithub: 66572
2014-09-18 22:21:51vstinnersetnosy: + vstinner
messages: + msg227075
2014-09-18 22:20:56neologixsetstatus: open -> closed
resolution: fixed
messages: + msg227074

stage: test needed -> resolved
2014-09-18 22:19:45python-devsetnosy: + python-dev
messages: + msg227073
2014-09-12 22:38:56terry.reedysetstage: test needed
versions: + Python 3.5, - Python 2.7, Python 3.4
2014-09-12 12:19:40pitrousetnosy: + neologix
2014-09-10 01:42:53jpvcreate