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: Only use SOCK_RAW when defined
Type: enhancement Stage: resolved
Components: Extension Modules Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: EdSchouten, berker.peksag, matrixise, python-dev
Priority: normal Keywords: patch

Created on 2016-08-07 10:37 by EdSchouten, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sock_raw.diff EdSchouten, 2016-08-07 10:37 Patch for making the use of SOCK_RAW optional review
Messages (3)
msg272117 - (view) Author: Ed Schouten (EdSchouten) * Date: 2016-08-07 10:37
POSIX only requires socket types SOCK_STREAM, SOCK_DGRAM and SOCK_SEQPACKET to be present. SOCK_RAW is optional, as it is placed between [RS] tags in the specification:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html

It looks like Python's socketmodule.c does try to use it unconditionally. Comply to POSIX by only exposing it optionally, just like we do for some of the other socket types (SOCK_RDM, etc).
msg272161 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-08-08 11:05
New changeset 535f88ad80d8 by Berker Peksag in branch 'default':
Issue #27702: Only expose SOCK_RAW when defined
https://hg.python.org/cpython/rev/535f88ad80d8
msg272162 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-08-08 11:06
Thanks!
History
Date User Action Args
2022-04-11 14:58:34adminsetgithub: 71889
2016-08-08 11:06:29berker.peksagsetstatus: open -> closed

type: enhancement
title: [Patch] Only use SOCK_RAW when defined -> Only use SOCK_RAW when defined
nosy: + berker.peksag

messages: + msg272162
resolution: fixed
stage: resolved
2016-08-08 11:05:43python-devsetnosy: + python-dev
messages: + msg272161
2016-08-07 12:03:08matrixisesetnosy: + matrixise
2016-08-07 10:37:13EdSchoutencreate